Closed
Bug 838855
Opened 11 years ago
Closed 11 years ago
"ele is null" with layout.css.devPixelsPerPx = 2
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
FIXED
Firefox 21
People
(Reporter: jruderman, Assigned: mconley)
References
Details
(Keywords: regression)
Attachments
(1 file, 2 obsolete files)
2.12 KB,
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
Running Firefox with user_pref("layout.css.devPixelsPerPx", '2.0'); triggers JavaScript error: chrome://browser/content/browser.js, line 12304: ele is null At http://hg.mozilla.org/mozilla-central/annotate/beca57e612fd/browser/base/content/browser.js#l5033 (This is on a non-Retina MBP, running Mac OS X 10.7.) Probably a regression from bug 647216, which enabled CAN_DRAW_IN_TITLEBAR on Mac.
Comment 1•11 years ago
|
||
It's probably because there is no appmenu-button on OSX, http://hg.mozilla.org/mozilla-central/annotate/beca57e612fd/browser/base/content/browser.js#l5039
Assignee | ||
Comment 3•11 years ago
|
||
This seems to do the job, but I'd like to do more testing with it first. I'll request review tomorrow.
Assignee | ||
Updated•11 years ago
|
Attachment #711545 -
Attachment description: WIP Patch v1 → Patch v1
Attachment #711545 -
Flags: review?(dao)
Comment 4•11 years ago
|
||
Comment on attachment 711545 [details] [diff] [review] Patch v1 > let appmenuButtonBox = $("appmenu-button-container"); > let captionButtonsBox = $("titlebar-buttonbox"); >+#ifdef MENUBAR_CAN_AUTOHIDE > this._sizePlaceholder("appmenu-button", rect(appmenuButtonBox).width); >+#endif Please declare appmenuButtonBox depending on MENUBAR_CAN_AUTOHIDE as well.
Updated•11 years ago
|
Component: Widget: Cocoa → General
Product: Core → Firefox
Assignee | ||
Comment 5•11 years ago
|
||
Done.
Attachment #711545 -
Attachment is obsolete: true
Attachment #711545 -
Flags: review?(dao)
Attachment #711845 -
Flags: review?(dao)
Comment 6•11 years ago
|
||
Comment on attachment 711845 [details] [diff] [review] Patch v2 >+ let captionButtonsBox = $("titlebar-buttonbox"); >+#ifdef MENUBAR_CAN_AUTOHIDE > let appmenuButtonBox = $("appmenu-button-container"); >- let captionButtonsBox = $("titlebar-buttonbox"); > this._sizePlaceholder("appmenu-button", rect(appmenuButtonBox).width); >+#endif > this._sizePlaceholder("caption-buttons", rect(captionButtonsBox).width); And now move the captionButtonsBox declaration down such that this code is ordered nicely ;)
Assignee | ||
Comment 7•11 years ago
|
||
Good call. Thanks. :)
Attachment #711845 -
Attachment is obsolete: true
Attachment #711845 -
Flags: review?(dao)
Assignee | ||
Updated•11 years ago
|
Attachment #711847 -
Flags: review?(dao)
Updated•11 years ago
|
Attachment #711847 -
Flags: review?(dao) → review+
Assignee | ||
Comment 8•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b436db64121f
Comment 10•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b436db64121f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 21
You need to log in
before you can comment on or make changes to this bug.
Description
•