Closed Bug 1426872 Opened 6 years ago Closed 6 years ago

Wrong/changes tab id when attach tab to other window

Categories

(WebExtensions :: Frontend, defect)

57 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1398272

People

(Reporter: drive4ik, Unassigned)

Details

Attachments

(2 files)

Attached file firefox-bug-tab-id.zip
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20171206182557

Steps to reproduce:

Hi!

When you attach tab to other window, events browser.tabs.onAttached/onDetached called with wrong tab id and this tab created in 

When you move a tab to a new window (attach), it's ID is changed by increment.
This happens only when there is a connected event browser.tabs.onUpdated. In case you are not subscribed to this even, the bug is absent.
The same thing happens when you call the function browser.tabs.move.

Please, see gif in attach archive.

This bug replicates on FF 57,58,59. In FF 56 this bug not replicated.


Actual results:

When you move a tab to a new window (attach), it's ID is changed by increment.


Expected results:

When you move a tab to a new window (attach), it's ID can not to be changed.
Attached image attached-tab-bug.gif
preview bug
Status: UNCONFIRMED → RESOLVED
Closed: 6 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

Creator:
Created:
Updated:
Size: