Closed
Bug 871322
Opened 11 years ago
Closed 11 years ago
Customize... isn't accessible on second time when Bookmarks button is removed
Categories
(Firefox :: Bookmarks & History, defect)
Tracking
()
VERIFIED
FIXED
Firefox 24
Tracking | Status | |
---|---|---|
firefox22 | --- | unaffected |
firefox23 | + | verified |
firefox24 | --- | verified |
People
(Reporter: Virtual, Assigned: mconley)
References
Details
(Keywords: nightly-community, regression)
Attachments
(1 file, 1 obsolete file)
838 bytes,
patch
|
mak
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Like it title. After backing out patches from bug #748894 in bug #867343 "Customize.." in toolbar context menu isn't accessible, because it's greyed out and browser window looks like in window mode, not like it should be in maximized state. It happens when you remove Bookmarks button from toolbar.
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 1•11 years ago
|
||
Also Error Console shows this error
Error: TypeError: this.button is null
Source File: chrome://browser/content/browser.js
Line: 2931
Blocks: 867343
Keywords: regression
Comment 2•11 years ago
|
||
This is also breaking things that use the "aftercustomization" event to rebuild themselves after toolbar customization (i.e. the download button panel).
Comment 3•11 years ago
|
||
Steps to repeat:
1. Create new profile.
2. Open toolbar "Customize..." window (toolbar context menu).
3. Remove Bookmark toolbar button from toolbar.
4. Click "Done".
5. Attempt to open toolbar "Customize..." window.
Expected result:
The "Customize..." window opens.
Actual result:
"Customize..." is greyed out/disabled.
Also, "Toolbar layout..." is also disabled.
Closing/restarting the browser re-enables "Customize...".
Keeping the Bookmark button on the toolbar does not trigger the bug nor does it appear that other customizations trigger this bug.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mconley
Assignee | ||
Comment 4•11 years ago
|
||
It looks like we're attempting to manipulate this._button after it's been deleted in BookmarkingUI.customizeDone. Patch coming.
Assignee | ||
Updated•11 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee | ||
Comment 5•11 years ago
|
||
The original bookmark star button did a check for this.star, and returned early if it didn't exist. Because we don't do that check anymore, we exposed ourselves to potentially using this._button *after* it'd been deleted.
Attachment #748652 -
Flags: review?(mak77)
Comment 6•11 years ago
|
||
Wouldn't that still have a problem if the button was never on the toolbar? this._button would always be null in that case, and customizeChange/customizeDone are always called unchecked. Checking this.button in _updateToolbarStyle() seems like the safest route.
Also, IMHO, deleting this._button first in customizeDone makes sense to have a fresh reference to the button. I'd say the same should also go for customizeChange. If the button is removed, then immediately added back, is it the same element?
Comment 7•11 years ago
|
||
Comment on attachment 748652 [details] [diff] [review]
Patch v1
Review of attachment 748652 [details] [diff] [review]:
-----------------------------------------------------------------
the reason to delete this._button is that the original element has been recreated, so the getter must acquire a new handle.
I think you should rather reintroduce an early return if (!this.button) in _updateToolbarStyle
Attachment #748652 -
Flags: review?(mak77) → review-
Assignee | ||
Comment 8•11 years ago
|
||
Yep, you're right, this is the right approach.
Attachment #748652 -
Attachment is obsolete: true
Attachment #748821 -
Flags: review?(mak77)
Updated•11 years ago
|
Attachment #748821 -
Flags: review?(mak77) → review+
Assignee | ||
Comment 9•11 years ago
|
||
Pushed to mozilla-inbound as https://hg.mozilla.org/integration/mozilla-inbound/rev/249c9abe3e2b
Assignee | ||
Updated•11 years ago
|
status-firefox23:
--- → affected
tracking-firefox23:
--- → ?
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 748821 [details] [diff] [review]
Patch v2
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Bug 867343
User impact if declined: If the user moves the bookmarks menu button from their toolbar into the palette, they will be unable to re-enter customization mode until a browser restart. If the user already has the bookmarks menu button in their palette, they will only be able to enter customization mode once until a browser restart.
Testing completed (on m-c, etc.): All on m-c
Risk to taking this patch (and alternatives if risky): Extremely little risk.
String or IDL/UUID changes made by this patch: None.
Attachment #748821 -
Flags: approval-mozilla-aurora?
Comment 11•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
Updated•11 years ago
|
status-firefox22:
--- → unaffected
Updated•11 years ago
|
Attachment #748821 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•11 years ago
|
status-firefox24:
--- → fixed
Assignee | ||
Comment 12•11 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
Comment 13•11 years ago
|
||
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
Verified as fixed on Firefox 23 beta 9 (buildID: 20130725195523) and latest Nightly (buildID: 20130725171558).
Comment 14•11 years ago
|
||
Verified as fixed on Firefox 24 beta 2:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
Build ID: 20130812173056
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Keywords: nightly-community
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
QA Contact: Virtual
You need to log in
before you can comment on or make changes to this bug.
Description
•