-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Labels
implemented: firefoxImplemented in FirefoxImplemented in Firefoxsupportive: chromeSupportive from ChromeSupportive from Chromesupportive: safariSupportive from SafariSupportive from Safaritopic: navigationUsing an extension to navigate a web context.Using an extension to navigate a web context.
Description
Background
On Firefox, the tabs.update()
function can have a loadReplace parameter, which allows developers to specify whether the new URL should replace the old URL in the tab's navigation history, like this:
browser.tabs.update(
tabId,
{ url: url, loadReplace: true });
}
It's not implemented in other browsers. However, replacing the navigation history is a pretty common use case.
You can call window.location.replace()
in content.js
for sure, but it's still beneficial when you want to call it before content.js
is loaded.
Proposal
It would be great if this loadReplace
parameter were standardized and extensions could specify it in Safari, Chrome, etc.
Misc
- This is the ticket of when the Firefox team added it: https://bugzilla.mozilla.org/show_bug.cgi?id=1397383
- To developers in Apple: The feedback FB14005791 I sent last month is about this proposal.
fregante
Metadata
Metadata
Assignees
Labels
implemented: firefoxImplemented in FirefoxImplemented in Firefoxsupportive: chromeSupportive from ChromeSupportive from Chromesupportive: safariSupportive from SafariSupportive from Safaritopic: navigationUsing an extension to navigate a web context.Using an extension to navigate a web context.