Closed Bug 747245 Opened 12 years ago Closed 12 years ago

ASSERTION: "Oops! You're asking for a weak reference to an object that doesn't support that." when using BugzillaJS add-on

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: cpeterson, Assigned: khuey)

Details

Attachments

(1 file)

I am testing BugzillaJS 2.0.3 with a Debug build of Nightly 14.0a1 (2012-04-19).

STR:
1. Install BugzillaJS 2.0.3 add-on: https://addons.mozilla.org/en-US/firefox/addon/bugzillajs/
2. Using a Debug build, watch the firefox log then load any Bugzilla page, such as https://bugzilla.mozilla.org

ER:
No assertion failures.

AR:
Dozens of "You're asking for a weak reference to an object that doesn't support that" assertion failures.


###!!! ASSERTION: Oops!  You're asking for a weak reference to an object that doesn't support that.: 'factoryPtr', file nsWeakReference.cpp, line 111
warning: The global `postMessage()` function in content scripts is deprecated in favor of the `self.postMessage()` function, which works the same. Replace calls to `postMessage()` with calls to `self.postMessage()`.For more info on `self.on`, see <https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/addon-development/web-content.html>.
###!!! ASSERTION: Oops!  You're asking for a weak reference to an object that doesn't support that.: 'factoryPtr', file nsWeakReference.cpp, line 111
warning: The global `postMessage()` function in content scripts is deprecated in favor of the `self.postMessage()` function, which works the same. Replace calls to `postMessage()` with calls to `self.postMessage()`.For more info on `self.on`, see <https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/addon-development/web-content.html>.
###!!! ASSERTION: Oops!  You're asking for a weak reference to an object that doesn't support that.: 'factoryPtr', file nsWeakReference.cpp, line 111
warning: The global `postMessage()` function in content scripts is deprecated in favor of the `self.postMessage()` function, which works the same. Replace calls to `postMessage()` with calls to `self.postMessage()`.For more info on `self.on`, see <https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/addon-development/web-content.html>.
###!!! ASSERTION: Oops!  You're asking for a weak reference to an object that doesn't support that.: 'factoryPtr', file nsWeakReference.cpp, line 111
###!!! ASSERTION: Oops!  You're asking for a weak reference to an object that doesn't support that.: 'factoryPtr', file nsWeakReference.cpp, line 111
###!!! ASSERTION: Oops!  You're asking for a weak reference to an object that doesn't support that.: 'factoryPtr', file nsWeakReference.cpp, line 111
###!!! ASSERTION: Oops!  You're asking for a weak reference to an object that doesn't support that.: 'factoryPtr', file nsWeakReference.cpp, line 111
###!!! ASSERTION: Oops!  You're asking for a weak reference to an object that doesn't support that.: 'factoryPtr', file nsWeakReference.cpp, line 111
###!!! ASSERTION: Oops!  You're asking for a weak reference to an object that doesn't support that.: 'factoryPtr', file nsWeakReference.cpp, line 111
###!!! ASSERTION: Oops!  You're asking for a weak reference to an object that doesn't support that.: 'factoryPtr', file nsWeakReference.cpp, line 111
###!!! ASSERTION: Oops!  You're asking for a weak reference to an object that doesn't support that.: 'factoryPtr', file nsWeakReference.cpp, line 111
Toggling BugzillaJS on and off makes these assertion failures go away.
Assignee: nobody → khuey
Component: General → XPConnect
OS: Mac OS X → All
QA Contact: general → xpconnect
Hardware: x86 → All
Attached patch PatchSplinter Review
Attachment #617629 - Flags: review?(bent.mozilla)
Attachment #617629 - Flags: review?(bent.mozilla) → review+
Attachment #617629 - Flags: approval-mozilla-central+
https://hg.mozilla.org/mozilla-central/rev/142fe408f5b4
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: