Skip to content

Commit

Permalink
runtime.getURL fixes (#35136)
Browse files Browse the repository at this point in the history
* runtime.getURL fixes

* Feedback update
  • Loading branch information
rebloor authored Aug 5, 2024
1 parent f2088b8 commit 157de3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ browser.runtime.getURL(

### Return value

`string`. The fully-qualified URL to the resource.
`string`. The fully-qualified URL to the resource. For example, `moz-extension://e15cdd35-f9b7-4786-a39d-7d801bd2709e/help/open-in-container.html`.

## Browser compatibility

Expand Down
2 changes: 2 additions & 0 deletions files/en-us/mozilla/firefox/releases/130/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ This article provides information about the changes in Firefox 130 that affect d

## Changes for add-on developers

- {{WebExtAPIRef("runtime.getURL")}} (and the deprecated {{WebExtAPIRef("extension.getURL")}}) have been updated to prefix the supplied path string with the extension's `moz-extension:` origin (in line with the behavior of Chrome). In addition, {{WebExtAPIRef("runtime.getURL")}} no longer strips `/.`, `./`, and `../.` strings from the input URL ([Firefox bug 1795082](https://bugzil.la/1795082)).

### Removals

### Other
Expand Down

0 comments on commit 157de3a

Please sign in to comment.