diff --git a/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/resourcetype/index.md b/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/resourcetype/index.md index a69309cffa531b1..aa961bcae95fef5 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/resourcetype/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/declarativenetrequest/resourcetype/index.md @@ -23,6 +23,8 @@ Values of this type are strings. Possible values are: - : Resources loaded to be rendered as image, except for `imageset` on browsers that support that type (see browser compatibility below). - `imageset` - : Images loaded by a {{HTMLElement("picture")}} element or given in an `` element's [`srcset`](/en-US/docs/Web/HTML/Reference/Elements/img#srcset) attribute. +- `json` + - : JSON modules loaded through an [import statement](/en-US/docs/Web/JavaScript/Reference/Statements/import). - `main_frame` - : Top-level documents loaded into a tab. - `media` diff --git a/files/en-us/mozilla/add-ons/webextensions/api/webrequest/resourcetype/index.md b/files/en-us/mozilla/add-ons/webextensions/api/webrequest/resourcetype/index.md index 1208c6ae70293c2..8dac4455619539d 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/webrequest/resourcetype/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/webrequest/resourcetype/index.md @@ -25,6 +25,8 @@ Values of this type are strings. Possible values are: - : Resources loaded to be rendered as image, except for `imageset` on browsers that support that type (see browser compatibility below). - `imageset` - : Images loaded by a {{HTMLElement("picture")}} element or given in an `` element's [`srcset`](/en-US/docs/Web/HTML/Reference/Elements/img#srcset) attribute. +- `json` + - : JSON modules loaded through an [import statement](/en-US/docs/Web/JavaScript/Reference/Statements/import). - `main_frame` - : Top-level documents loaded into a tab. - `media` diff --git a/files/en-us/mozilla/firefox/releases/138/index.md b/files/en-us/mozilla/firefox/releases/138/index.md index dc4da40c6255c95..feb58d9e6644925 100644 --- a/files/en-us/mozilla/firefox/releases/138/index.md +++ b/files/en-us/mozilla/firefox/releases/138/index.md @@ -83,6 +83,7 @@ No notable changes - `groupId` to {{WebExtAPIRef("tabs.Tab")}}. ([Firefox bug 1959713](https://bugzil.la/1959713)) - `groupId` to {{WebExtAPIRef("tabs.query")}}. ([Firefox bug 1959715](https://bugzil.la/1959715)) - `groupId` to {{WebExtAPIRef("tabs.onUpdated")}}. ([Firefox bug 1959716](https://bugzil.la/1959716) +- The `json` resource type is now supported in both {{WebExtAPIRef("webRequest.ResourceType")}} and {{WebExtAPIRef("declarativeNetRequest.ResourceType")}} in Firefox, with import attributes enabled by default. Previously, it was reported as `script`. ([Firefox bug 1858078](https://bugzil.la/1858078) and [Firefox bug 1950836](https://bugzil.la/1950836)) ## Experimental web features