From 7ba43d541242db4da5b88fd364efb02d6f34cafd Mon Sep 17 00:00:00 2001 From: Richard Bloor Date: Fri, 26 Jul 2024 15:11:20 +1200 Subject: [PATCH 1/2] runtime.getURL fixes --- .../mozilla/add-ons/webextensions/api/runtime/geturl/index.md | 2 +- files/en-us/mozilla/firefox/releases/130/index.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/files/en-us/mozilla/add-ons/webextensions/api/runtime/geturl/index.md b/files/en-us/mozilla/add-ons/webextensions/api/runtime/geturl/index.md index 6ad66c1d9ae261a..d94d81fbb87e80e 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/runtime/geturl/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/runtime/geturl/index.md @@ -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 diff --git a/files/en-us/mozilla/firefox/releases/130/index.md b/files/en-us/mozilla/firefox/releases/130/index.md index 571b39de275714f..813c2f216e93d07 100644 --- a/files/en-us/mozilla/firefox/releases/130/index.md +++ b/files/en-us/mozilla/firefox/releases/130/index.md @@ -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 include the prefix `moz-extension:` on the return URL (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 From 8b8fb5e3e91680a7b1f847ad3cd53dbb690649cc Mon Sep 17 00:00:00 2001 From: rebloor Date: Thu, 1 Aug 2024 14:41:59 +1200 Subject: [PATCH 2/2] Feedback update --- files/en-us/mozilla/firefox/releases/130/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/mozilla/firefox/releases/130/index.md b/files/en-us/mozilla/firefox/releases/130/index.md index 813c2f216e93d07..b3f02ed2d849e01 100644 --- a/files/en-us/mozilla/firefox/releases/130/index.md +++ b/files/en-us/mozilla/firefox/releases/130/index.md @@ -58,7 +58,7 @@ 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 include the prefix `moz-extension:` on the return URL (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)). +- {{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