You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is handled relatively to the current extension URL in Firefox, while it is handled absolutely in Chrome.
In Safari it is always handled absolutely, and generally speaking in Google Chrome as well, while some APIs in Firefox, they are handled relatively. like the action.setIcon API and devtools.panels.create API as can be seen in #270. However, the notifications.create API sets them absolutely in Firefox as well.
Going forward
Preferably this path handling should be the same across browsers and APIs.
We should figure out the current path behaviour in Chrome and Firefox and see if there are any additional inconsistencies.
While allowing relative APIs gives additional ways of setting paths, developers can assume the path handling is the same as in manifest.json, in which case bugs are created.
So it seems to make the most sense to always handle them as absolute. However, this can give breaking changes which we want to delay to a new manifest version.
The text was updated successfully, but these errors were encountered:
Current behaviour
The behaviour of paths across APIs and browsers currently is not unified.
For example:
Is handled relatively to the current extension URL in Firefox, while it is handled absolutely in Chrome.
In Safari it is always handled absolutely, and generally speaking in Google Chrome as well, while some APIs in Firefox, they are handled relatively. like the
action.setIcon
API anddevtools.panels.create
API as can be seen in #270. However, thenotifications.create
API sets them absolutely in Firefox as well.Going forward
Preferably this path handling should be the same across browsers and APIs.
We should figure out the current path behaviour in Chrome and Firefox and see if there are any additional inconsistencies.
While allowing relative APIs gives additional ways of setting paths, developers can assume the path handling is the same as in
manifest.json
, in which case bugs are created.So it seems to make the most sense to always handle them as absolute. However, this can give breaking changes which we want to delay to a new manifest version.
The text was updated successfully, but these errors were encountered: