Closed Bug 1412498 Opened 7 years ago Closed 7 years ago

Error: Illegal URL: about:newtab occur using browser.tabs.update({url: "about:newtab"});

Categories

(WebExtensions :: General, defect)

defect
Not set
normal

Tracking

(firefox58 affected)

RESOLVED DUPLICATE of bug 1275209
Tracking Status
firefox58 --- affected

People

(Reporter: magicp.jp, Unassigned)

References

(Depends on 1 open bug)

Details

Steps to reproduce:
- Run as follows.
browser.tabs.update({url: "about:newtab"});

Actual Results:
Error: Illegal URL: about:newtab

The following code works.
browser.tabs.update({url: "about:home"});
browser.tabs.update({url: "about:blank"});


Expected Results:
It works.
Non-privileged URLs (about:home, about:newtab, about:blank) are allowed.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
> Duplicate of bug: 1275209
wontfix? Can I use the following...

browser.browserSettings.newTabPageOverride.get({}).then(result => {
  browser.tabs.update({
    "url": result.value
  });
});
Flags: needinfo?(kmaglione+bmo)
Again, bug: 1275209 has been reported about tabs.create. But, it works using tabs.create({}) (no parameter)

This is for tabs.update, is not duplicate of bug: 1275209.
Flags: needinfo?(kmaglione+bmo)
The permissions logic for tabs.create and tabs.update is the same.
Depends on: 1269456
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.