Closed
Bug 1289274
Opened 8 years ago
Closed 8 years ago
chrome.windows.create doesn't accept both "url" and "tabId" options
Categories
(WebExtensions :: General, defect)
WebExtensions
General
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: wbamberg, Unassigned)
Details
Attachments
(1 file)
2.07 KB,
application/zip
|
Details |
I've attached a WebExtension that does this: chrome.browserAction.onClicked.addListener((tab) => { chrome.windows.create({ url: "https://example.com", tabId: tab.id }); }); In Firefox this fails with: "Unchecked lastError value: Error: `tabId` may not be used in conjunction with `url`" In Chrome it works as expected.
Comment 1•8 years ago
|
||
This is intentional. I do wonder what you mean by "as expected", though.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 2•8 years ago
|
||
> I do wonder what you mean by "as expected", though. In Chrome, if I call this, it opens a new window containing 2 tabs: * https://example.com * the tab identified by tab.id, moved from its old window I didn't see any indication in the Chrome docs that these options are supposed to be mutually exclusive.
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•