Closed Bug 334894 Opened 19 years ago Closed 9 years ago

Adding pref observer in during parse causes "no xbl binding" error

Categories

(Firefox :: Settings UI, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: boogs, Unassigned)

Details

Adding a preference observer via nsIPrefBranch2.addObserver causes "no xbl binding" error at: http://lxr.mozilla.org/mozilla1.8/source/browser/base/content/browser.js#783 Was not able to understand why, or get a consistent repro. On one of our test systems, it happened at least 50% of the time. We suspect that it was because this system had massive amounts of pref data caused by a greasemonkey script. *blink* *blink* ;) Moving the addObserver call to the xul window's onload event solved the problem.
What does "during parse" mean? Do you have a testcase? This is from an extension, I'm guessing?
Sorry, by "during parse" I mean, from the top-level script inside a <script> block overlayed in browser.xul. I don't have a testcase. Darin and Ben have been urging me to file bugs, even w/o testcases or repros. If you can't repro by filling up prefs.js and adding an observer in a browser.xul overlay, let me know and I'll try to make a repro.
Is this still valid? If yes, test case would be cool.
Going to mark wfm as we're phasing out XUL add-ons, the link is dead, fixing the link to point to dxr points to a code comment... so there isn't really enough here to fix anything.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.