Closed Bug 1106689 Opened 11 years ago Closed 6 years ago

Error loading XHR addon source

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: jryans, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file pinterest.xpi
Some addons load scripts from a remote server, such as the attached Pinterest addon. STR: 1. Visit some page with the addon installed 2. Open Debugger 3. Reload page The sources list now has two new entries under "Add-on SDK", the names of which are the entire script contents that the addon added. If you try to view one of these sources, the debugger says "Error loading source: loadSourceError". In the Browser Console, you get: Got an exception during SA_onSource: Request failed for 'javascript:var body=document.body;if(body){body.setAttribute("data-pinterest-extension-installed", "ff1.35")};': Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIChannel.asyncOpen]: fetch@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/DevToolsUtils.js:530:25 SourceActor.prototype._getSourceText/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/actors/script.js:2524:29 resolve@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/deprecated-sync-thenables.js:40:40 then@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/deprecated-sync-thenables.js:20:43 then@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/deprecated-sync-thenables.js:58:9 SourceActor.prototype._getSourceText@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/actors/script.js:2502:12 resolve@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/deprecated-sync-thenables.js:40:40 then@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/deprecated-sync-thenables.js:20:43 then@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/deprecated-sync-thenables.js:58:9 SourceActor.prototype.onSource@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/actors/script.js:2602:12 DSC_onPacket@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/main.js:1485:15 ChildDebuggerTransport.prototype.receiveMessage@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/transport/transport.js:708:5
Product: Firefox → DevTools

The addon attached was detected as "corrupt" (likely because it's many years old) but I installed the new one and no longer see the problem.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: