Open Bug 1819011 Opened 2 years ago Updated 2 years ago

[WebExtensions] Add a way to navigate to about:home from an extension

Categories

(WebExtensions :: General, enhancement, P5)

Firefox 112
enhancement

Tracking

(Not tracked)

People

(Reporter: vsr4493, Unassigned)

References

(Depends on 1 open bug)

Details

Steps to reproduce:

There should be a way for an extension to redirect the current tab to about:home.

Use-case:
The most common use-case is for extensions having new-tab-page overrides to provide an option for the user to opt-out, while preserving other functionality (i.e., not disable the extension.

On other browsers ~ This is a common-enough use case that most extensions on Chrome end up using chrome-search://local-ntp/local-ntp.html as the fallback URL.

Relates to:
https://bugzilla.mozilla.org/show_bug.cgi?id=1269456
Note: The issue above mentions that it can be done on a case-by-case basis for URLs which are not highly privileged, hence the separate issue.

Actual results:

Currently, any call to browser.tabs.update({ url: 'about:home' }) fails with an error likely due to https://bugzilla.mozilla.org/show_bug.cgi?id=1227462

Expected results:

The current tab should be redirected to about:home.

The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Product: Firefox → WebExtensions
Severity: -- → N/A
Status: UNCONFIRMED → NEW
Component: Untriaged → General
Depends on: 1269456
Ever confirmed: true
Priority: -- → P5
See Also: → 1420405
You need to log in before you can comment on or make changes to this bug.