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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: wbamberg, Unassigned)

Details

Attachments

(1 file)

Attached file window-create.zip
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.
This is intentional.

I do wonder what you mean by "as expected", though.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
> 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.
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: