Closed
Bug 838855
Opened 12 years ago
Closed 12 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)
(deleted),
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•12 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•12 years ago
|
||
This seems to do the job, but I'd like to do more testing with it first. I'll request review tomorrow.
Updated•12 years ago
|
Assignee | ||
Updated•12 years ago
|
Attachment #711545 -
Attachment description: WIP Patch v1 → Patch v1
Attachment #711545 -
Flags: review?(dao)
Comment 4•12 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•12 years ago
|
Component: Widget: Cocoa → General
Product: Core → Firefox
Assignee | ||
Comment 5•12 years ago
|
||
Done.
Attachment #711545 -
Attachment is obsolete: true
Attachment #711545 -
Flags: review?(dao)
Attachment #711845 -
Flags: review?(dao)
Comment 6•12 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•12 years ago
|
||
Good call. Thanks. :)
Attachment #711845 -
Attachment is obsolete: true
Attachment #711845 -
Flags: review?(dao)
Assignee | ||
Updated•12 years ago
|
Attachment #711847 -
Flags: review?(dao)
Updated•12 years ago
|
Attachment #711847 -
Flags: review?(dao) → review+
Assignee | ||
Comment 8•12 years ago
|
||
Comment 10•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 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
•