Closed Bug 1088096 Opened 10 years ago Closed 10 years ago

Exception... "Unexpected error" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" when accessing unsafeWindow from content script in latest nightly build

Categories

(Add-on SDK Graveyard :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1086979

People

(Reporter: xefbfbd, Unassigned)

Details

Using addon sdk 1.17 from https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/jetpack-sdk-latest.zip Steps to reproduce: 1. md testunsafewindow 2. cd testunsafewindow 3. cfx init 4. using the example code on this page: https://developer.mozilla.org/en-US/Add-ons/SDK/Guides/Content_Scripts/Interacting_with_page_scripts#Access_objects_defined_by_page_scripts 5. cfx run -b /path/to/nightly Actual results: console.error: testunsafewindow: Message: [Exception... "Unexpected error" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///path/to/profile/extensions/jid1-YyElmFQgpWXccw@jetpack.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/content/sandbox.js line 164 > Function :: anonymous :: line 1" data: no] Stack: anonymous@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///path/to/profile/extensions/jid1-YyElmFQgpWXccw@jetpack.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/content/sandbox.js line 164 > Function:1:0@javascript:console.log(unsafeWindow.foo);:1:0 Expected results: console.log: testunsafewindow: hello from page script Last good build was 20141020030200 https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014-10-20-03-02-00-mozilla-central/ broken since 20141021030208 https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014-10-21-03-02-08-mozilla-central/
this looks like a dupe of bug 1086979, reopen if you disagree/that doesn't fix it..
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.