Firebug扩展上下文.sourceCache.load(href)返回'重新加载页面以获取的源代码:http

Firebug extension context.sourceCache.load(href) returns 'Reload the page to get source for: http://'

本文关键字:加载 获取 http 源代码 新加载 load sourceCache 上下文 扩展 href 返回      更新时间:2023-09-26

Firefox 32.0.1Firebug 2.0.4Windows 7

我正在为Firebug编写Fx扩展,代码如下:Firebug.currentContext.sourceCache.load(href)返回"重新加载页面以获取源:http://domain.com/style.css"

有什么想法吗?

我认为除非启用Net面板,否则这种情况总是会发生。我建议在content/firebug/debugger/script/sourceFile.js中做一些类似loadFromSourceCache()的事情。

此外,请注意https://github.com/firebug/firebug.next/-最好在内置的开发工具上构建扩展,而不是在Firebug上。