Closed Bug 1325818 Opened 7 years ago Closed 7 years ago

tab.openerTabId is null in tabs.onCreated callback

Categories

(WebExtensions :: General, defect)

50 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1238314

People

(Reporter: zmstefan, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36

Steps to reproduce:

I have this code in background script of my Firefox WebExtension:

chrome.tabs.onCreated.addListener(function (tab) {
    console.log("OPENER ID: " + tab.openerTabId);
});


And yes, openerTab is still present when new tab is created (new tab is created by clicking on some link in openerTab).


Actual results:

Console output is : "OPENER ID: undefined" each time new tab is created.


Expected results:

It should be : "OPENER ID: " + tab.openerTabId each time new tab is created.
Component: Untriaged → WebExtensions: General
Product: Firefox → Toolkit
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.