Closed
Bug 933984
Opened 12 years ago
Closed 12 years ago
"this._mutationObserver is undefined" from new tab page
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 28
| Tracking | Status | |
|---|---|---|
| firefox26 | --- | unaffected |
| firefox27 | --- | fixed |
| firefox28 | --- | fixed |
People
(Reporter: jruderman, Assigned: adw)
References
Details
(Keywords: regression, Whiteboard: [qa-])
Attachments
(1 file)
|
749 bytes,
patch
|
Gavin
:
review+
bajaj
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
JavaScript error: chrome://browser/content/newtab/newTab.js, line 454: this._mutationObserver is undefined
I think this is actually
http://hg.mozilla.org/mozilla-central/annotate/ad2a5a4f53ec/browser/base/content/newtab/page.js#l149
which was added in bug 910036.
Fuzzing hits this frequently, but I don't have a reproducible testcase.
| Assignee | ||
Comment 1•12 years ago
|
||
Thanks, Jesse.
(In reply to Jesse Ruderman from comment #0)
> I think this is actually
> http://hg.mozilla.org/mozilla-central/annotate/ad2a5a4f53ec/browser/base/
> content/newtab/page.js#l149
Yes, I'm seeing that, too. (Is there a bug on JS errors not reporting correct file names and line numbers for preprocessed files? I would really like to fix that.)
This is easy to reproduce. Just set browser.newtabpage.enabled to false, restart, open a new tab, and then close it. The problem is that in _init, _mutationObserver is only defined if newtab is enabled, but on unload, _mutationObserver.disconnect() is unconditionally called.
An alternative to this patch would be to define _mutationObserver in init (no leading underscore), which is called even if newtab is disabled. But I think this patch is better since _mutationObserver isn't needed if newtab is disabled.
Updated•12 years ago
|
Attachment #826246 -
Flags: review?(gavin.sharp) → review+
| Assignee | ||
Comment 2•12 years ago
|
||
OS: Mac OS X → All
Hardware: x86_64 → All
Comment 3•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 28
| Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 826246 [details] [diff] [review]
guard against _mutationObserver being undefined
This patch applies cleanly to Aurora.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 910036, which is on Aurora
User impact if declined: low (stray JS error)
Testing completed (on m-c, etc.): bug 910036 has automated test
Risk to taking this patch (and alternatives if risky): very very low
String or IDL/UUID changes made by this patch: none
Attachment #826246 -
Flags: approval-mozilla-aurora?
Updated•12 years ago
|
Updated•12 years ago
|
Attachment #826246 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 5•12 years ago
|
||
Updated•12 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•