Bug 1839316: part 5) Guard the "fetchpriority" attribute behind a pref. r=kershaw,webidl,smaug,saschanaz

Allows landing the previous parts in order to avoid future
merge-conflicts.

Differential Revision: https://phabricator.services.mozilla.com/D185296
This commit is contained in:
Mirko Brodesser 2023-08-09 13:50:29 +00:00
Родитель 5cade38f47
Коммит 42ee9192af
3 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -30,7 +30,7 @@ interface HTMLScriptElement : HTMLElement {
attribute DOMString referrerPolicy;
[CEReactions, Throws]
attribute DOMString text;
[CEReactions]
[Pref="network.fetchpriority.enabled", CEReactions]
attribute DOMString fetchPriority;
static boolean supports(DOMString type);

Просмотреть файл

@ -11728,6 +11728,13 @@
value: false
mirror: always
# Indicates whether the `fetchpriority` attribute for elements which support it
# (e.g. `<script>`) is enabled.
- name: network.fetchpriority.enabled
type: bool
value: false
mirror: always
# Enables `<link rel="preload">` tag and `Link: rel=preload` response header
# handling.
- name: network.preload

Просмотреть файл

@ -0,0 +1,2 @@
[attr-script-fetchpriority.html]
prefs: [network.fetchpriority.enabled:true]