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

RESOLVED FIXED in mozilla14

Status

()

Core
XPConnect
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: cpeterson, Assigned: khuey)

Tracking

unspecified
mozilla14
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
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
(Reporter)

Comment 1

5 years ago
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
Created attachment 617629 [details] [diff] [review]
Patch
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
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
You need to log in before you can comment on or make changes to this bug.