Closed
Bug 1337531
Opened 7 years ago
Closed 7 years ago
UI Tour closes PanelUI upon tab switch from about:home
Categories
(Firefox :: Tours, defect)
Firefox
Tours
Tracking
()
RESOLVED
FIXED
People
(Reporter: eoger, Unassigned)
References
()
Details
Attachments
(1 file)
136.81 KB,
image/png
|
Details |
How to reproduce: Prerequisites: - Apply the patch in bug 1334430 comment 6 - The Sync tabs button must be placed in the hamburger menu (default behavior) 1. Navigate to about:home if necessary 2. Open the Hamburger menu -> Synced Tabs then open a synced tab by Ctrl-Clicking or using the middle click. Current behavior: the hamburger menu closes itself. Excepted behavior: the hamburger menu should stay open, because we use preventDefault and stopPropagation in that patch. I get the expected behavior if the current tab is not about:home. Why is this happening? I put a breakpoint in panelUI.js#hide and checked the stacktrace. It looks like the menu is hidden by UITour.jsm#teardownTourForBrowser, although there is not tour going on.
Comment 1•7 years ago
|
||
(In reply to Edouard Oger [:eoger] from comment #0) > 2. Open the Hamburger menu -> Synced Tabs then open a synced tab by > Ctrl-Clicking or using the middle click. Do these actions open the tab in the foreground or background? > Why is this happening? I put a breakpoint in panelUI.js#hide and checked the > stacktrace. I could have told you if you included the stack :P What is the caller of teardownTourForBrowser? UITour shouldn't be tearing down for about:home if about:home remains as the foreground tab. > It looks like the menu is hidden by UITour.jsm#teardownTourForBrowser, > although there is not tour going on. about:home is probably still using UITour from snippets so from the UITour perspective a tour is going on.
Flags: needinfo?(eoger)
Reporter | ||
Comment 2•7 years ago
|
||
> Do these actions open the tab in the foreground or background?
In the foreground, using shift + ctrl click does not trigger the bug.
I attached the stacktrace.
Flags: needinfo?(eoger)
Comment 3•7 years ago
|
||
(In reply to Edouard Oger [:eoger] from comment #2) > In the foreground, using shift + ctrl click does not trigger the bug. Should users really expect the menu item to stay open upon switching tabs? I don't think there is prior art for that even ignoring UITour. For example, the panel closes when restoring a tab from the history subview. To be honest I don't see a likely fix in UITour as it's working as expected for a tour. I think it may be worth understanding why about:home (likely snippets) is using UITour and getting it to stop using the API. This has caused problems for other parts of FxA as well.
URL: about:home
Summary: UI Tour closes PanelUI every time → UI Tour closes PanelUI upon tab switch from about:home
Reporter | ||
Comment 4•7 years ago
|
||
Looks like bug 1349742 fixed the bug
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•