Closed Bug 1414917 Opened 7 years ago Closed 7 years ago

page_action and browser_action popup tab closing should not forcibly activate the tab which was active before

Categories

(WebExtensions :: Android, defect, P3)

57 Branch
defect

Tracking

(firefox57 wontfix)

RESOLVED DUPLICATE of bug 1414379
Tracking Status
firefox57 --- wontfix

People

(Reporter: m_khvoinitsky, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20171027085204

Steps to reproduce:

This issue is specific to Fennec. It works as expected on Desktop Firefox.

1. Install test add-on (attached).
2. Click on pageAction (exclamation mark icon) or browserAction (Menu → Test) (behaviour is the same wrong for both pageAction and browserAction)
3. Pop-up-in-a-tab opens.

Now several wrong scenarios are possible:
* Try to switch to any open tab other than the one which was active before pop-up open.
Expected result:
* The tab of your choice should be active now.
Actual result:
* Pop-up tab loses focus and because of that closes itself.
* After pop-up closed, the tab which was active before pop-up open forcibly activated instead.

Another wrong scenario:
* In an opened pop-up-in-a-tab press "runtime.openOptionsPage()" button (it does exactly what it says)
Expected result:
* Preferences tab should be active now.
Actual result:
* Pop-up tab loses focus and because of that closes itself.
* After pop-up closed, the tab which was active before pop-up open forcibly activated instead.
* Preferences tab is opened somewhere in background.


As for me, the behaviour "when pop-up tab loses focus, it closes" looks OK, but all problems come from the fact that after it closes, previously active tab is forcibly activated. As far as I know, it just doesn't needed: Firefox anyway will activate this tab.
Component: WebExtensions: Untriaged → WebExtensions: Android
Priority: -- → P3
Summary: WebExtensions on Fennec: page_action and browser_action popup tab closing should not forcibly activate the tab which was active before → page_action and browser_action popup tab closing should not forcibly activate the tab which was active before
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: