View Javadoc
1   /*
2    * Copyright (c) 2002-2026 Gargoyle Software Inc.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * https://www.apache.org/licenses/LICENSE-2.0
8    *
9    * Unless required by applicable law or agreed to in writing, software
10   * distributed under the License is distributed on an "AS IS" BASIS,
11   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   * See the License for the specific language governing permissions and
13   * limitations under the License.
14   */
15  package org.htmlunit;
16  
17  import static org.htmlunit.javascript.configuration.SupportedBrowser.CHROME;
18  import static org.htmlunit.javascript.configuration.SupportedBrowser.EDGE;
19  import static org.htmlunit.javascript.configuration.SupportedBrowser.FF;
20  import static org.htmlunit.javascript.configuration.SupportedBrowser.FF_ESR;
21  
22  import org.htmlunit.javascript.configuration.BrowserFeature;
23  
24  /**
25   * Constants of various features of each {@link BrowserVersion}.
26   *
27   * @author Ahmed Ashour
28   * @author Marc Guillemot
29   * @author Sudhan Moghe
30   * @author Ronald Brill
31   * @author Frank Danek
32   * @author Carsten Steul
33   * @author Anton Demydenko
34   */
35  public enum BrowserVersionFeatures {
36  
37      /** Ignore target when {@code href} is a javascript snippet. */
38      @BrowserFeature({CHROME, EDGE})
39      ANCHOR_SEND_PING_REQUEST,
40  
41      /**
42       * The securitypolicyviolation event for a connection (XMLHttpRequest, fetch) blocked because of
43       * a redirect target is fired after the request has failed (after the error event).
44       */
45      @BrowserFeature({CHROME, EDGE})
46      CSP_CONNECT_REDIRECT_VIOLATION_DELAYED,
47  
48      /**
49       * The form-action directive of the Content-Security-Policy is not checked for the
50       * redirects of a form submission.
51       */
52      @BrowserFeature({FF, FF_ESR})
53      CSP_FORM_ACTION_REDIRECTS_NOT_CHECKED,
54  
55      /**
56       * The content of a Content-Security-Policy meta element is parsed as one policy
57       * (commas are not splitting the content into several policies).
58       */
59      @BrowserFeature({FF, FF_ESR})
60      CSP_META_SINGLE_POLICY,
61  
62      /**
63       * The nonce attribute is only hidden if the page has an enforced policy delivered by a header
64       * (not for report only policies).
65       */
66      @BrowserFeature({FF, FF_ESR})
67      CSP_NONCE_HIDING_ENFORCED_ONLY,
68  
69      /**
70       * Leading and trailing whitespace of the nonce of an element is ignored when matching
71       * the nonce source expressions of the Content-Security-Policy.
72       */
73      @BrowserFeature({CHROME, EDGE})
74      CSP_NONCE_TRIMMED,
75  
76      /** The error event is fired at an object element if the data url is blocked by the object-src directive. */
77      @BrowserFeature({FF, FF_ESR})
78      CSP_OBJECT_BLOCKED_FIRES_ERROR,
79  
80      /**
81       * The Content-Security-Policy violation report (report-uri) uses the Firefox format:
82       * the keys are sorted, the report uris of the original policy are absolute, the script-sample
83       * is only included if not empty and the column-number is always included.
84       */
85      @BrowserFeature({FF, FF_ESR})
86      CSP_REPORT_FIREFOX_FORMAT,
87  
88      /**
89       * If the page upgrades insecure requests (upgrade-insecure-requests), http urls are matching
90       * https source expressions also if the url is not upgraded (loopback hosts).
91       */
92      @BrowserFeature({FF, FF_ESR})
93      CSP_UPGRADE_INSECURE_REQUESTS_MATCHES_HTTPS,
94  
95      /** Background image is 'initial'. */
96      @BrowserFeature({CHROME, EDGE})
97      CSS_BACKGROUND_INITIAL,
98  
99      /** Background image is 'rgba(0, 0, 0, 0)'. */
100     @BrowserFeature({FF, FF_ESR})
101     CSS_BACKGROUND_RGBA,
102 
103     /** Is display style 'block'. */
104     @BrowserFeature({FF, FF_ESR})
105     CSS_DISPLAY_BLOCK,
106 
107     /** The default value of the display property for the 'noscript' tag is 'inline' instead of the default one. */
108     @BrowserFeature({CHROME, EDGE})
109     CSS_NOSCRIPT_DISPLAY_INLINE,
110 
111     /** The default value of the display property for the 'rp' tag is 'none'. */
112     @BrowserFeature({FF, FF_ESR})
113     CSS_RP_DISPLAY_NONE,
114 
115     /** The default value of the display property for the 'rt' tag is always 'ruby-text'. */
116     @BrowserFeature({FF, FF_ESR})
117     CSS_RT_DISPLAY_RUBY_TEXT_ALWAYS,
118 
119     /**
120      * The MIME type of a data url is serialized like the MIME Sniffing Standard does it
121      * (duplicate parameters are ignored, the charset parameter stays in place).
122      */
123     @BrowserFeature({FF, FF_ESR})
124     DATA_URL_MIME_TYPE_STANDARD_SERIALIZATION,
125 
126     /** The context menu MouseEvent has a detail of 1. */
127     @BrowserFeature({FF, FF_ESR})
128     EVENT_CONTEXT_MENU_HAS_DETAIL_1,
129 
130     /** Triggers the onfocus event when focusing the body on load. */
131     @BrowserFeature({FF, FF_ESR})
132     EVENT_FOCUS_ON_LOAD,
133 
134     /** Scroll events are of type 'UIEvent'. */
135     @BrowserFeature({FF, FF_ESR})
136     EVENT_SCROLL_UIEVENT,
137 
138     /** Form elements are able to refer to the for by using the form attribute. */
139     @BrowserFeature({CHROME, EDGE})
140     FORM_IGNORE_REL_NOREFERRER,
141 
142     /** Form submit includes the Cache-Control: max-age=0 header. */
143     @BrowserFeature({CHROME, EDGE})
144     FORM_SUBMISSION_HEADER_CACHE_CONTROL_MAX_AGE,
145 
146     /** Should org.htmlunit.javascript.host.html.HTMLBaseFontElement#isEndTagForbidden(). */
147     @BrowserFeature({FF, FF_ESR})
148     HTMLBASEFONT_END_TAG_FORBIDDEN,
149 
150     /** HtmlCollection.namedItem searches by id first. */
151     @BrowserFeature({CHROME, EDGE})
152     HTMLCOLLECTION_NAMED_ITEM_ID_FIRST,
153 
154     /**
155     /** {@code document.getElementsByName} returns an empty list if called with the empty string.
156      */
157     @BrowserFeature({FF, FF_ESR})
158     HTMLDOCUMENT_ELEMENTS_BY_NAME_EMPTY,
159 
160     /** Removing the active element from the dom tree triggers the onblur event. */
161     @BrowserFeature({CHROME, EDGE})
162     HTMLELEMENT_REMOVE_ACTIVE_TRIGGERS_BLUR_EVENT,
163 
164     /** Handle blank source like empty. */
165     @BrowserFeature({CHROME, EDGE})
166     HTMLIMAGE_BLANK_SRC_AS_EMPTY,
167 
168     /** Empty src attribute sets display to false. */
169     @BrowserFeature({FF, FF_ESR})
170     HTMLIMAGE_EMPTY_SRC_DISPLAY_FALSE,
171 
172     /** Is document.cretaeElement('image') an HTMLElement. */
173     @BrowserFeature({FF, FF_ESR})
174     HTMLIMAGE_HTMLELEMENT,
175 
176     /** Is document.cretaeElement('image') an HTMLUnknownElement. */
177     @BrowserFeature({CHROME, EDGE})
178     HTMLIMAGE_HTMLUNKNOWNELEMENT,
179 
180     /** HTMLInputElement image type is not supported. */
181     @BrowserFeature({CHROME, EDGE})
182     HTMLINPUT_TYPE_IMAGE_IGNORES_CUSTOM_VALIDITY,
183 
184     /** HTMLInputElement month type is supported. */
185     @BrowserFeature({CHROME, EDGE})
186     HTMLINPUT_TYPE_MONTH_SUPPORTED,
187 
188     /** HTMLInputElement week type is supported. */
189     @BrowserFeature({CHROME, EDGE})
190     HTMLINPUT_TYPE_WEEK_SUPPORTED,
191 
192     /** For a stylesheet link report an error if the response type is not text/css. */
193     @BrowserFeature({FF, FF_ESR})
194     HTMLLINK_CHECK_RESPONSE_TYPE_FOR_STYLESHEET,
195 
196     /** If the type is present for a link only use if type is text/css. */
197     @BrowserFeature({CHROME, EDGE})
198     HTMLLINK_CHECK_TYPE_FOR_STYLESHEET,
199 
200     /** Should org.htmlunit.javascript.host.html.HTMLTrackElement#isEndTagForbidden(). */
201     @BrowserFeature({FF, FF_ESR})
202     HTMLTRACK_END_TAG_FORBIDDEN,
203 
204     /** HTML parser supports the 'layer' tag. */
205     @BrowserFeature({CHROME, EDGE})
206     HTML_LAYER_TAG,
207 
208     /** Additionally support dates in format "d/M/yyyy". */
209     @BrowserFeature({FF, FF_ESR})
210     HTTP_COOKIE_EXTENDED_DATE_PATTERNS_1,
211 
212     /** Dates format pattern 2. */
213     @BrowserFeature({CHROME, EDGE})
214     HTTP_COOKIE_EXTENDED_DATE_PATTERNS_2,
215 
216     /** Cookie prefix '__Host-' allows a domain attribute if the domain is the host itself. */
217     @BrowserFeature({FF, FF_ESR})
218     HTTP_COOKIE_HOST_PREFIX_ALLOWS_DOMAIN_OF_HOST,
219 
220     /** Cookie prefix '__Host-' requires only the path '/'; the path attribute is optional. */
221     @BrowserFeature(FF_ESR)
222     HTTP_COOKIE_HOST_PREFIX_PATH_ATTRIBUTE_OPTIONAL,
223 
224     /** Browser sends Sec-ch headers. */
225     @BrowserFeature({CHROME, EDGE})
226     HTTP_HEADER_CH_UA,
227 
228     /** Browser sends Priority headers. */
229     @BrowserFeature({FF, FF_ESR})
230     HTTP_HEADER_PRIORITY,
231 
232     /**
233      * The anchor pathname detects url's starting with one letter as file url's
234      * and replaces them with the file protocol. */
235     @BrowserFeature({CHROME, EDGE})
236     JS_ANCHOR_PATHNAME_DETECT_WIN_DRIVES_URL_REPLACE,
237 
238     /** The anchor pathname prefixes file url's with '/'. */
239     @BrowserFeature({CHROME, EDGE})
240     JS_ANCHOR_PATHNAME_PREFIX_WIN_DRIVES_URL,
241 
242     /** The anchor protocol property converts drive letters to uppercase. */
243     @BrowserFeature({CHROME, EDGE})
244     JS_ANCHOR_PROTOCOL_COLON_UPPER_CASE_DRIVE_LETTERS,
245 
246     /** An area element without a href attribute is focusable. */
247     @BrowserFeature({FF, FF_ESR})
248     JS_AREA_WITHOUT_HREF_FOCUSABLE,
249 
250     /** Sorting an array using a user defined comperator accepts inconsistent iterators. */
251     @BrowserFeature({FF, FF_ESR})
252     JS_ARRAY_SORT_ACCEPTS_INCONSISTENT_COMPERATOR,
253 
254     /** AudioProcessingEvent ctor is callable. */
255     @BrowserFeature({CHROME, EDGE})
256     JS_AUDIO_PROCESSING_EVENT_CTOR,
257 
258     /** toDataURL for canvas returns the CHROME version of the PNG. */
259     @BrowserFeature({CHROME, EDGE})
260     JS_CANVAS_DATA_URL_CHROME_PNG,
261 
262     /** Setting the size of a canvas (clearing the bitmap) resets the origin-clean flag. */
263     @BrowserFeature({CHROME, EDGE})
264     JS_CANVAS_RESIZE_RESETS_ORIGIN_CLEAN,
265 
266     /** ClientHeight for input is 17. */
267     @BrowserFeature({CHROME, EDGE})
268     JS_CLIENTHEIGHT_INPUT_17,
269 
270     /** ClientHeight for input is 18. */
271     @BrowserFeature({FF, FF_ESR})
272     JS_CLIENTHEIGHT_INPUT_18,
273 
274     /** ClientHeight for radio button and checkbox is 14. */
275     @BrowserFeature({FF, FF_ESR})
276     JS_CLIENTHEIGHT_RADIO_CHECKBOX_14,
277 
278     /** ClientHeight for rb is 17. */
279     @BrowserFeature({FF, FF_ESR})
280     JS_CLIENTHEIGHT_RB_17,
281 
282     /** ClientHeight for rt is 9. */
283     @BrowserFeature({FF, FF_ESR})
284     JS_CLIENTHEIGHT_RT_9,
285 
286     /** ClientHeight for ruby is 17. */
287     @BrowserFeature({FF, FF_ESR})
288     JS_CLIENTHEIGHT_RUBY_17,
289 
290     /** ClientWidth for text/password input is 173. */
291     @BrowserFeature({CHROME, EDGE})
292     JS_CLIENTWIDTH_INPUT_TEXT_169,
293 
294     /** ClientWidth for radio button and checkbox is 14. */
295     @BrowserFeature({FF, FF_ESR})
296     JS_CLIENTWIDTH_RADIO_CHECKBOX_14,
297 
298     /** item is enumerated before length property of CSSRuleList. */
299     @BrowserFeature({FF, FF_ESR})
300     JS_CSSRULELIST_ENUM_ITEM_LENGTH,
301 
302     /** Javascript document.evaluate() creates a new result object even if provided as param. */
303     @BrowserFeature({CHROME, EDGE})
304     JS_DOCUMENT_EVALUATE_RECREATES_RESULT,
305 
306     /** The browser has selection {@code rangeCount}. */
307     @BrowserFeature({FF, FF_ESR})
308     JS_DOCUMENT_SELECTION_RANGE_COUNT,
309 
310     /** Javascript {@code Error.stackTraceLimit}. */
311     @BrowserFeature({CHROME, EDGE})
312     JS_ERROR_STACK_TRACE_LIMIT,
313 
314     /** Javascript {@code Error.stackTraceLimit}. */
315     @BrowserFeature({FF, FF_ESR})
316     JS_ERROR_STACK_TRACE_LIMIT_128,
317 
318     /** Javascript InputEvent reads the inputType property from data. */
319     @BrowserFeature({FF, FF_ESR})
320     JS_EVENT_INPUT_CTOR_INPUTTYPE,
321 
322     /** Javascript KeyboardEvent reads the which property from data. */
323     @BrowserFeature({FF, FF_ESR})
324     JS_EVENT_KEYBOARD_CTOR_WHICH,
325 
326     /**
327      * Javascript SecurityPolicyViolationEvent created by the constructor always bubbles,
328      * is composed and is not cancelable (the init values are ignored).
329      */
330     @BrowserFeature({CHROME, EDGE})
331     JS_EVENT_SECURITY_POLICY_VIOLATION_CTOR_BUBBLES_COMPOSED,
332 
333     /**
334      * Javascript SecurityPolicyViolationEvent lineNumber and columnNumber are unsigned
335      * (-1 is converted to 4294967295).
336      */
337     @BrowserFeature({FF, FF_ESR})
338     JS_EVENT_SECURITY_POLICY_VIOLATION_POSITION_UNSIGNED,
339 
340     /** form.dispatchEvent(e) submits the form if the event is of type 'submit'. */
341     @BrowserFeature({FF, FF_ESR})
342     JS_FORM_DISPATCHEVENT_SUBMITS,
343 
344     /** The named properties (ids and names of the options) of HTMLOptionsCollection are enumerable. */
345     @BrowserFeature({CHROME, EDGE})
346     JS_HTMLOPTIONSCOLLECTION_NAMED_PROPERTIES_ENUMERABLE,
347 
348     /** Executes the {@code onload} handler, regardless of the element was already attached to the page. */
349     @BrowserFeature({FF, FF_ESR})
350     JS_IFRAME_ALWAYS_EXECUTE_ONLOAD,
351 
352     /**
353      * Getting the width and height of an image tag without a source returns 16x16;
354      * for invalid values returns 0.
355      */
356     @BrowserFeature({CHROME, EDGE})
357     JS_IMAGE_WIDTH_HEIGHT_RETURNS_16x16_0x0,
358 
359     /**
360      * Getting the width and height of an image tag without a source returns 24x24;
361      * for invalid values returns 0x0.
362      */
363     @BrowserFeature({FF, FF_ESR})
364     JS_IMAGE_WIDTH_HEIGHT_RETURNS_24x24_0x0,
365 
366     /** Indicates that the HTML serialization of a processing instruction ends with '>' instead of '?>'. */
367     @BrowserFeature({FF, FF_ESR})
368     JS_INNER_HTML_PROCESSING_INSTRUCTION_NO_QUESTION_MARK,
369 
370     /** Indicates that innerHTML returns an empty string for empty elements. */
371     @BrowserFeature({CHROME, EDGE})
372     JS_INNER_HTML_VOID_ELEMENT_EMPTY,
373 
374     /**
375      * Indicates that the XML serialization writes boolean attributes of XHTML elements
376      * with an empty value as name="name" (e.g. disabled="disabled").
377      */
378     @BrowserFeature({FF, FF_ESR})
379     JS_INNER_HTML_XHTML_BOOLEAN_ATTRIBUTE_VALUE,
380 
381     /** Indicates that the XML serialization escapes line breaks in attribute values as hex references (
). */
382     @BrowserFeature({FF, FF_ESR})
383     JS_INNER_HTML_XHTML_HEX_LINE_BREAK,
384 
385     /** Indicates that the XML serialization writes the namespace declaration of an attribute after the attribute. */
386     @BrowserFeature({FF, FF_ESR})
387     JS_INNER_HTML_XHTML_NS_DECLARATION_AFTER_ATTRIBUTE,
388 
389     /** Indicates that innerHTML of a script or style element in an XHTML document returns the text as is. */
390     @BrowserFeature({FF, FF_ESR})
391     JS_INNER_HTML_XHTML_RAW_SCRIPT_STYLE,
392 
393     /** Indicates that innerText add a nl when reaching svg element. */
394     @BrowserFeature({FF, FF_ESR})
395     JS_INNER_TEXT_SELECT_EMPTY,
396 
397     /** Indicates that innerText add a nl when reaching svg element. */
398     @BrowserFeature({CHROME, EDGE})
399     JS_INNER_TEXT_SVG_NL,
400 
401     /** The value is ignored when the type of the week/month input is changed. */
402     @BrowserFeature({CHROME, EDGE})
403     JS_INPUT_CHANGE_TYPE_DROPS_VALUE_WEEK_MONTH,
404 
405     /** FF accepts all chars. */
406     @BrowserFeature({FF, FF_ESR})
407     JS_INPUT_NUMBER_ACCEPT_ALL,
408 
409     /** FF comma at end is not an integer. */
410     @BrowserFeature({FF, FF_ESR})
411     JS_INPUT_NUMBER_DOT_AT_END_IS_DOUBLE,
412 
413     /** Indicates that the collation (from the options or for usage 'search') is part of the Intl.Collator locale. */
414     @BrowserFeature({CHROME, EDGE})
415     JS_INTL_COLLATOR_COLLATION_IN_LOCALE,
416 
417     /** Indicates that Intl.v8BreakIterator is supported. */
418     @BrowserFeature({CHROME, EDGE})
419     JS_INTL_V8_BREAK_ITERATOR,
420 
421     /** Setting location.protocol does not navigate if the url is not changed (e.g. 'file:' for an url with port). */
422     @BrowserFeature({FF, FF_ESR})
423     JS_LOCATION_PROTOCOL_UNCHANGED_NO_NAVIGATION,
424 
425     /** Reload sends a referrer header. */
426     @BrowserFeature({CHROME, EDGE})
427     JS_LOCATION_RELOAD_REFERRER,
428 
429     /** Type property of menu returns the current (maybe invalid) value. */
430     @BrowserFeature({FF, FF_ESR})
431     JS_MENU_TYPE_PASS,
432 
433     /**
434      * Object.getOwnPropertyNames() of objects with named properties (e.g. NamedNodeMap, HTMLOptionsCollection)
435      * also lists the named properties hidden by prototype properties.
436      */
437     @BrowserFeature({CHROME, EDGE})
438     JS_NAMED_PROPERTIES_OWN_PROPERTY_NAMES_INCLUDE_HIDDEN,
439 
440     /** Indicates if the String representation of a native function is without newline. */
441     @BrowserFeature({CHROME, EDGE})
442     JS_NATIVE_FUNCTION_TOSTRING_COMPACT,
443 
444     /** Indicates if the String representation of a native function has a newline for empty parameter list. */
445     @BrowserFeature({FF, FF_ESR})
446     JS_NATIVE_FUNCTION_TOSTRING_NL,
447 
448     /** Navigator.doNotTrack returns unspecified if not set. */
449     @BrowserFeature({FF, FF_ESR})
450     JS_NAVIGATOR_DO_NOT_TRACK_UNSPECIFIED,
451 
452     /** PerformanceObserver.supportedEntryTypes returns only the entry types supported by Firefox. */
453     @BrowserFeature({FF, FF_ESR})
454     JS_PERFORMANCE_OBSERVER_ENTRY_TYPES_FF,
455 
456     /** PerformanceObserver.supportedEntryTypes returns a frozen array. */
457     @BrowserFeature({CHROME, EDGE})
458     JS_PERFORMANCE_OBSERVER_ENTRY_TYPES_FROZEN,
459 
460     /** Indicates that the {@code Object.getOwnPropertyDescriptor.get} contains name. */
461     @BrowserFeature({FF, FF_ESR})
462     JS_PROPERTY_DESCRIPTOR_NAME,
463 
464     /**
465      * The User-Agent header is a forbidden request header (fetch() and XMLHttpRequest);
466      * it is no longer part of the forbidden request headers of the Fetch standard.
467      */
468     @BrowserFeature({CHROME, EDGE})
469     JS_REQUEST_HEADER_USER_AGENT_FORBIDDEN,
470 
471     /** script tags created from js as child of templates is processed if added to the dom. */
472     @BrowserFeature({CHROME, EDGE})
473     JS_SCRIPT_IN_TEMPLATE_EXECUTED_ON_ATTACH,
474 
475     /** Javascript selectorText property returns selectors in lower case. */
476     @BrowserFeature({CHROME, EDGE})
477     JS_SELECTOR_TEXT_LOWERCASE,
478 
479     /** Indicates that select.options.remove ignores the call if index is too large. */
480     @BrowserFeature({FF, FF_ESR})
481     JS_SELECT_REMOVE_IGNORE_IF_INDEX_OUTSIDE,
482 
483     /** Whether to add to the storage even preserved words. */
484     @BrowserFeature({FF, FF_ESR})
485     JS_STORAGE_PRESERVED_INCLUDED,
486 
487     /**
488      * File urls of URL objects have no host: the host 'localhost' is removed, setting the protocol to
489      * 'file' removes the host.
490      */
491     @BrowserFeature({FF, FF_ESR})
492     JS_URL_FILE_WITHOUT_HOST,
493 
494     /** A WebSocket blocked by the Content-Security-Policy fires only the error event, no close event. */
495     @BrowserFeature({CHROME, EDGE})
496     JS_WEBSOCKET_CSP_BLOCKED_NO_CLOSE_EVENT,
497 
498     /** window.getComputedStyle works with pseudo selectors without colon in front. */
499     @BrowserFeature({CHROME, EDGE})
500     JS_WINDOW_COMPUTED_STYLE_PSEUDO_ACCEPT_WITHOUT_COLON,
501 
502     /** Javascript InstallTrigger property set to null. */
503     @BrowserFeature({FF, FF_ESR})
504     JS_WINDOW_INSTALL_TRIGGER_NULL,
505 
506     /**
507      * Method window.open() of a local file (file url) from a page that was not loaded from a file
508      * throws an Error.
509      */
510     @BrowserFeature({FF, FF_ESR})
511     JS_WINDOW_OPEN_LOCAL_FILE_THROWS,
512 
513     /** window.open() of a sandboxed document without 'allow-popups' throws an InvalidAccessError. */
514     @BrowserFeature({FF, FF_ESR})
515     JS_WINDOW_OPEN_SANDBOXED_THROWS,
516 
517     /**
518      * Difference of window.outer/inner height is 138.
519      */
520     @BrowserFeature(EDGE)
521     JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_138,
522 
523     /**
524      * Difference of window.outer/inner height is 147.
525      */
526     @BrowserFeature(CHROME)
527     JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_147,
528 
529     /**
530      * Difference of window.outer/inner height is 94.
531      */
532     @BrowserFeature({FF, FF_ESR})
533     JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_94,
534 
535     /** Window.getSelection returns null, if the window is not visible. */
536     @BrowserFeature({FF, FF_ESR})
537     JS_WINDOW_SELECTION_NULL_IF_INVISIBLE,
538 
539     /**
540      * Calling importScripts() of a local file (file url) from a worker of a page that was not loaded from a file
541      * throws a SecurityError (instead of a NetworkError).
542      */
543     @BrowserFeature({FF, FF_ESR})
544     JS_WORKER_IMPORT_SCRIPTS_LOCAL_FILE_SECURITY_ERROR,
545 
546     /**
547      * Calling new Worker() of a local file (file url) from a page that was not loaded from a file does not throw;
548      * the worker is not started and the error event is fired.
549      */
550     @BrowserFeature({FF, FF_ESR})
551     JS_WORKER_LOCAL_FILE_FIRES_ERROR,
552 
553     /** A page loaded from a file is not allowed to start a worker from a local file (SecurityError). */
554     @BrowserFeature({CHROME, EDGE})
555     JS_WORKER_LOCAL_FILE_FORBIDDEN,
556 
557     /** Take care of the response charset when reading a worker script. */
558     @BrowserFeature({CHROME, EDGE})
559     JS_WORKER_SCRIPT_HONORS_CHARSET_HEADER,
560 
561     /** {@code XSLTProcessor.transformToDocument} supports output indent attribute. */
562     @BrowserFeature({CHROME, EDGE})
563     JS_XSLT_TRANSFORM_INDENT,
564 
565     /** Typing a char while the meta key is pressed fires no keypress event and does not insert the char. */
566     @BrowserFeature({FF, FF_ESR})
567     KEYBOARD_EVENT_META_NO_KEYPRESS,
568 
569     /** The key codes of the ';', '=' and '-' keys are 186, 187 and 189 (instead of 59, 61 and 173). */
570     @BrowserFeature({CHROME, EDGE})
571     KEYBOARD_EVENT_OEM_KEY_CODES,
572 
573     /**
574      * The less restrictive referrer policies ('unsafe-url' and 'no-referrer-when-downgrade')
575      * are ignored for cross-site requests (the default policy is used).
576      */
577     @BrowserFeature({FF, FF_ESR})
578     REFERRER_POLICY_IGNORE_CROSS_SITE_RELAXING,
579 
580     /**
581      * Indicates that the Browser handles async and sync network errors the same way.
582      */
583     @BrowserFeature({FF, FF_ESR})
584     XHR_HANDLE_SYNC_NETWORK_ERRORS,
585 
586     /** XMLHttpRequest triggers the load events also if the abort was signaled. */
587     @BrowserFeature({FF, FF_ESR})
588     XHR_LOAD_ALWAYS_AFTER_DONE,
589 
590     /** Indicates if the XMLHttpRequest preflight request includes the 'Sec-Fetch-Mode=cors' header. */
591     @BrowserFeature({CHROME, EDGE})
592     XHR_PREFLIGHT_CORS,
593 
594     /** If state unsent the response text is empty even if the response type is wrong. */
595     @BrowserFeature({FF, FF_ESR})
596     XHR_RESPONSE_TEXT_EMPTY_UNSENT,
597 
598     /** Indicates if the XMLHttpRequest.send() method will throw if aborted. */
599     @BrowserFeature({CHROME, EDGE})
600     XHR_SEND_NETWORK_ERROR_IF_ABORTED,
601 }