Closed Bug 982620 Opened 11 years ago Closed 11 years ago

UITour: menu button remains in active state after aborting tour

Categories

(Firefox :: General, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 30
Tracking Status
firefox29 --- fixed
firefox30 --- fixed

People

(Reporter: soeren.hentzschel, Assigned: Gijs)

References

()

Details

(Keywords: regression, Whiteboard: [Australis:P3+])

Attachments

(3 files)

Attached image screenshot
STR: 1. Help → Nightly Tour 2. click "Let's go" 3. close the tab Actual result: The menu button has still its active state, see screenshot Expected result: The menu button should not have an active state.
Blocks: fx-UITour
I can reproduce this. Thanks for filing Sören.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hardware: x86 → All
Whiteboard: [Australis:P3+]
Looking...
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
(In reply to :Gijs Kruitbosch from comment #3) > https://hg.mozilla.org/mozilla-central/ > pushloghtml?fromchange=cafe909f7e07&tochange=c8cd1f6b6d2d > > Maybe https://hg.mozilla.org/mozilla-central/rev/d591aee0b095 ? That's the > only UITour bug, but I'm not sure how that'd cause this issue... Backing this out locally fixes it.
Depends on: 966072
Blocks: 966072
No longer blocks: fx-UITour
No longer depends on: 966072
Please doublecheck that this doesn't break anything else... I don't know if we have magical behaviour that depends on us not closing the panel at that point in teardown, or if this messes up on Windows. Works on OS X, though.
Attachment #8391578 - Flags: review?(MattN+bmo)
Comment on attachment 8391578 [details] [diff] [review] Australis' UITour doesn't hide the panel on teardown, causing recreatePopup to break later hideMenu calls, Review of attachment 8391578 [details] [diff] [review]: ----------------------------------------------------------------- I'll attach a test in a few minutes. Please confirm this doesn't regress bug 966072.
Attachment #8391578 - Flags: review?(MattN+bmo) → review+
(In reply to Matthew N. [:MattN] (away March 10 - 11) from comment #6) > Comment on attachment 8391578 [details] [diff] [review] > Australis' UITour doesn't hide the panel on teardown, causing recreatePopup > to break later hideMenu calls, > > Review of attachment 8391578 [details] [diff] [review]: > ----------------------------------------------------------------- > > I'll attach a test in a few minutes. Please confirm this doesn't regress bug > 966072. It doesn't in my testing.
Comment on attachment 8391578 [details] [diff] [review] Australis' UITour doesn't hide the panel on teardown, causing recreatePopup to break later hideMenu calls, Review of attachment 8391578 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/modules/UITour.jsm @@ +554,5 @@ > this.hideHighlight(aWindow); > this.hideInfo(aWindow); > aWindow.PanelUI.panel.removeAttribute("noautohide"); > + // Ensure panel is hidden before calling recreatePopup > + aWindow.PanelUI.hide(); Actually, change this to: this.hideMenu(aWindow, "appMenu"); and remove the line after
Attached patch v.1 testSplinter Review
Here's a test for the fix.
Attachment #8391603 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 8391603 [details] [diff] [review] v.1 test Review of attachment 8391603 [details] [diff] [review]: ----------------------------------------------------------------- rs=me
Attachment #8391603 - Flags: review?(gijskruitbosch+bugs) → review+
Comment on attachment 8391578 [details] [diff] [review] Australis' UITour doesn't hide the panel on teardown, causing recreatePopup to break later hideMenu calls, Note that this patch was replace with a different approach in comment 8 and landed as https://hg.mozilla.org/integration/fx-team/rev/242281e4bcd0 [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 966072 User impact if declined: If a user leaves the tour tab while the menu panel is open, the menu panel button will remain in the depressed state. Testing completed (on m-c, etc.): Locally by Gijs and MattN on Linux and OS X. Risk to taking this patch (and alternatives if risky): Low risk tour-specific additional cleanup String or IDL/UUID changes made by this patch: None
Attachment #8391578 - Flags: approval-mozilla-aurora?
Attachment #8391603 - Flags: approval-mozilla-aurora?
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P3+][fixed-in-fx-team] → [Australis:P3+]
Target Milestone: --- → Firefox 30
Attachment #8391578 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #8391603 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
QA Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: