Last Comment Bug 747245 - ASSERTION: "Oops! You're asking for a weak reference to an object that doesn't support that." when using BugzillaJS add-on
: ASSERTION: "Oops! You're asking for a weak reference to an object that doesn...
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: XPConnect (show other bugs)
: unspecified
: All All
: -- normal (vote)
: mozilla14
Assigned To: Kyle Huey [:khuey] (khuey@mozilla.com)
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-19 16:41 PDT by Chris Peterson [:cpeterson]
Modified: 2012-04-23 14:23 PDT (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Patch (1.03 KB, patch)
2012-04-23 13:51 PDT, Kyle Huey [:khuey] (khuey@mozilla.com)
bent.mozilla: review+
mark.finkle: approval‑mozilla‑central+
Details | Diff | Splinter Review

Description Chris Peterson [:cpeterson] 2012-04-19 16:41:35 PDT
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
Comment 1 Chris Peterson [:cpeterson] 2012-04-19 16:42:56 PDT
Toggling BugzillaJS on and off makes these assertion failures go away.
Comment 2 Kyle Huey [:khuey] (khuey@mozilla.com) 2012-04-23 13:51:39 PDT
Created attachment 617629 [details] [diff] [review]
Patch
Comment 3 Kyle Huey [:khuey] (khuey@mozilla.com) 2012-04-23 14:23:38 PDT
https://hg.mozilla.org/mozilla-central/rev/142fe408f5b4

Note You need to log in before you can comment on or make changes to this bug.