1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.htmlunit.javascript.configuration;
16
17 import java.util.Map;
18 import java.util.WeakHashMap;
19
20 import org.htmlunit.BrowserVersion;
21 import org.htmlunit.javascript.HtmlUnitScriptable;
22 import org.htmlunit.javascript.host.AudioScheduledSourceNode;
23 import org.htmlunit.javascript.host.BarProp;
24 import org.htmlunit.javascript.host.BatteryManager;
25 import org.htmlunit.javascript.host.BroadcastChannel;
26 import org.htmlunit.javascript.host.Cache;
27 import org.htmlunit.javascript.host.CacheStorage;
28 import org.htmlunit.javascript.host.DOMRect;
29 import org.htmlunit.javascript.host.DOMRectList;
30 import org.htmlunit.javascript.host.Element;
31 import org.htmlunit.javascript.host.External;
32 import org.htmlunit.javascript.host.FontFace;
33 import org.htmlunit.javascript.host.FontFaceSet;
34 import org.htmlunit.javascript.host.Gamepad;
35 import org.htmlunit.javascript.host.GamepadButton;
36 import org.htmlunit.javascript.host.History;
37 import org.htmlunit.javascript.host.ImageBitmap;
38 import org.htmlunit.javascript.host.Location;
39 import org.htmlunit.javascript.host.MessageChannel;
40 import org.htmlunit.javascript.host.MessagePort;
41 import org.htmlunit.javascript.host.MimeType;
42 import org.htmlunit.javascript.host.MimeTypeArray;
43 import org.htmlunit.javascript.host.NamedNodeMap;
44 import org.htmlunit.javascript.host.Navigator;
45 import org.htmlunit.javascript.host.Notification;
46 import org.htmlunit.javascript.host.PerformanceObserver;
47 import org.htmlunit.javascript.host.PerformanceObserverEntryList;
48 import org.htmlunit.javascript.host.PermissionStatus;
49 import org.htmlunit.javascript.host.Permissions;
50 import org.htmlunit.javascript.host.Plugin;
51 import org.htmlunit.javascript.host.PluginArray;
52 import org.htmlunit.javascript.host.PushManager;
53 import org.htmlunit.javascript.host.PushSubscription;
54 import org.htmlunit.javascript.host.PushSubscriptionOptions;
55 import org.htmlunit.javascript.host.ReadableStream;
56 import org.htmlunit.javascript.host.Screen;
57 import org.htmlunit.javascript.host.ScreenOrientation;
58 import org.htmlunit.javascript.host.SharedWorker;
59 import org.htmlunit.javascript.host.Storage;
60 import org.htmlunit.javascript.host.StorageManager;
61 import org.htmlunit.javascript.host.TextDecoder;
62 import org.htmlunit.javascript.host.TextEncoder;
63 import org.htmlunit.javascript.host.Touch;
64 import org.htmlunit.javascript.host.TouchList;
65 import org.htmlunit.javascript.host.URL;
66 import org.htmlunit.javascript.host.URLSearchParams;
67 import org.htmlunit.javascript.host.WebSocket;
68 import org.htmlunit.javascript.host.Window;
69 import org.htmlunit.javascript.host.abort.AbortController;
70 import org.htmlunit.javascript.host.abort.AbortSignal;
71 import org.htmlunit.javascript.host.animations.Animation;
72 import org.htmlunit.javascript.host.animations.AnimationEvent;
73 import org.htmlunit.javascript.host.animations.KeyframeEffect;
74 import org.htmlunit.javascript.host.arrays.Atomics;
75 import org.htmlunit.javascript.host.canvas.CanvasCaptureMediaStream;
76 import org.htmlunit.javascript.host.canvas.CanvasCaptureMediaStreamTrack;
77 import org.htmlunit.javascript.host.canvas.CanvasGradient;
78 import org.htmlunit.javascript.host.canvas.CanvasPattern;
79 import org.htmlunit.javascript.host.canvas.CanvasRenderingContext2D;
80 import org.htmlunit.javascript.host.canvas.ImageBitmapRenderingContext;
81 import org.htmlunit.javascript.host.canvas.ImageData;
82 import org.htmlunit.javascript.host.canvas.IntersectionObserver;
83 import org.htmlunit.javascript.host.canvas.IntersectionObserverEntry;
84 import org.htmlunit.javascript.host.canvas.Path2D;
85 import org.htmlunit.javascript.host.canvas.TextMetrics;
86 import org.htmlunit.javascript.host.canvas.WebGL2RenderingContext;
87 import org.htmlunit.javascript.host.canvas.WebGLActiveInfo;
88 import org.htmlunit.javascript.host.canvas.WebGLBuffer;
89 import org.htmlunit.javascript.host.canvas.WebGLFramebuffer;
90 import org.htmlunit.javascript.host.canvas.WebGLProgram;
91 import org.htmlunit.javascript.host.canvas.WebGLQuery;
92 import org.htmlunit.javascript.host.canvas.WebGLRenderbuffer;
93 import org.htmlunit.javascript.host.canvas.WebGLRenderingContext;
94 import org.htmlunit.javascript.host.canvas.WebGLSampler;
95 import org.htmlunit.javascript.host.canvas.WebGLShader;
96 import org.htmlunit.javascript.host.canvas.WebGLShaderPrecisionFormat;
97 import org.htmlunit.javascript.host.canvas.WebGLSync;
98 import org.htmlunit.javascript.host.canvas.WebGLTexture;
99 import org.htmlunit.javascript.host.canvas.WebGLTransformFeedback;
100 import org.htmlunit.javascript.host.canvas.WebGLUniformLocation;
101 import org.htmlunit.javascript.host.canvas.WebGLVertexArrayObject;
102 import org.htmlunit.javascript.host.crypto.Crypto;
103 import org.htmlunit.javascript.host.crypto.CryptoKey;
104 import org.htmlunit.javascript.host.crypto.SubtleCrypto;
105 import org.htmlunit.javascript.host.css.CSS;
106 import org.htmlunit.javascript.host.css.CSSConditionRule;
107 import org.htmlunit.javascript.host.css.CSSCounterStyleRule;
108 import org.htmlunit.javascript.host.css.CSSFontFaceRule;
109 import org.htmlunit.javascript.host.css.CSSGroupingRule;
110 import org.htmlunit.javascript.host.css.CSSImportRule;
111 import org.htmlunit.javascript.host.css.CSSKeyframeRule;
112 import org.htmlunit.javascript.host.css.CSSKeyframesRule;
113 import org.htmlunit.javascript.host.css.CSSMediaRule;
114 import org.htmlunit.javascript.host.css.CSSNamespaceRule;
115 import org.htmlunit.javascript.host.css.CSSPageRule;
116 import org.htmlunit.javascript.host.css.CSSRule;
117 import org.htmlunit.javascript.host.css.CSSRuleList;
118 import org.htmlunit.javascript.host.css.CSSStyleDeclaration;
119 import org.htmlunit.javascript.host.css.CSSStyleRule;
120 import org.htmlunit.javascript.host.css.CSSStyleSheet;
121 import org.htmlunit.javascript.host.css.CSSSupportsRule;
122 import org.htmlunit.javascript.host.css.CaretPosition;
123 import org.htmlunit.javascript.host.css.ComputedCSSStyleDeclaration;
124 import org.htmlunit.javascript.host.css.MediaList;
125 import org.htmlunit.javascript.host.css.MediaQueryList;
126 import org.htmlunit.javascript.host.css.StyleMedia;
127 import org.htmlunit.javascript.host.css.StyleSheet;
128 import org.htmlunit.javascript.host.css.StyleSheetList;
129 import org.htmlunit.javascript.host.dom.AbstractRange;
130 import org.htmlunit.javascript.host.dom.Attr;
131 import org.htmlunit.javascript.host.dom.CDATASection;
132 import org.htmlunit.javascript.host.dom.CharacterData;
133 import org.htmlunit.javascript.host.dom.Comment;
134 import org.htmlunit.javascript.host.dom.CustomElementRegistry;
135 import org.htmlunit.javascript.host.dom.DOMError;
136 import org.htmlunit.javascript.host.dom.DOMException;
137 import org.htmlunit.javascript.host.dom.DOMImplementation;
138 import org.htmlunit.javascript.host.dom.DOMMatrix;
139 import org.htmlunit.javascript.host.dom.DOMMatrixReadOnly;
140 import org.htmlunit.javascript.host.dom.DOMParser;
141 import org.htmlunit.javascript.host.dom.DOMPoint;
142 import org.htmlunit.javascript.host.dom.DOMPointReadOnly;
143 import org.htmlunit.javascript.host.dom.DOMRectReadOnly;
144 import org.htmlunit.javascript.host.dom.DOMStringList;
145 import org.htmlunit.javascript.host.dom.DOMStringMap;
146 import org.htmlunit.javascript.host.dom.DOMTokenList;
147 import org.htmlunit.javascript.host.dom.Document;
148 import org.htmlunit.javascript.host.dom.DocumentFragment;
149 import org.htmlunit.javascript.host.dom.DocumentType;
150 import org.htmlunit.javascript.host.dom.IdleDeadline;
151 import org.htmlunit.javascript.host.dom.MutationObserver;
152 import org.htmlunit.javascript.host.dom.MutationRecord;
153 import org.htmlunit.javascript.host.dom.Node;
154 import org.htmlunit.javascript.host.dom.NodeFilter;
155 import org.htmlunit.javascript.host.dom.NodeIterator;
156 import org.htmlunit.javascript.host.dom.NodeList;
157 import org.htmlunit.javascript.host.dom.ProcessingInstruction;
158 import org.htmlunit.javascript.host.dom.RadioNodeList;
159 import org.htmlunit.javascript.host.dom.Range;
160 import org.htmlunit.javascript.host.dom.Selection;
161 import org.htmlunit.javascript.host.dom.ShadowRoot;
162 import org.htmlunit.javascript.host.dom.Text;
163 import org.htmlunit.javascript.host.dom.TreeWalker;
164 import org.htmlunit.javascript.host.dom.XPathEvaluator;
165 import org.htmlunit.javascript.host.dom.XPathExpression;
166 import org.htmlunit.javascript.host.dom.XPathNSResolver;
167 import org.htmlunit.javascript.host.dom.XPathResult;
168 import org.htmlunit.javascript.host.draganddrop.DataTransfer;
169 import org.htmlunit.javascript.host.draganddrop.DataTransferItem;
170 import org.htmlunit.javascript.host.draganddrop.DataTransferItemList;
171 import org.htmlunit.javascript.host.event.AudioProcessingEvent;
172 import org.htmlunit.javascript.host.event.BeforeInstallPromptEvent;
173 import org.htmlunit.javascript.host.event.BeforeUnloadEvent;
174 import org.htmlunit.javascript.host.event.BlobEvent;
175 import org.htmlunit.javascript.host.event.ClipboardEvent;
176 import org.htmlunit.javascript.host.event.CloseEvent;
177 import org.htmlunit.javascript.host.event.CompositionEvent;
178 import org.htmlunit.javascript.host.event.CustomEvent;
179 import org.htmlunit.javascript.host.event.DeviceMotionEvent;
180 import org.htmlunit.javascript.host.event.DeviceOrientationEvent;
181 import org.htmlunit.javascript.host.event.DragEvent;
182 import org.htmlunit.javascript.host.event.ErrorEvent;
183 import org.htmlunit.javascript.host.event.Event;
184 import org.htmlunit.javascript.host.event.EventSource;
185 import org.htmlunit.javascript.host.event.EventTarget;
186 import org.htmlunit.javascript.host.event.FocusEvent;
187 import org.htmlunit.javascript.host.event.GamepadEvent;
188 import org.htmlunit.javascript.host.event.HashChangeEvent;
189 import org.htmlunit.javascript.host.event.IDBVersionChangeEvent;
190 import org.htmlunit.javascript.host.event.InputEvent;
191 import org.htmlunit.javascript.host.event.KeyboardEvent;
192 import org.htmlunit.javascript.host.event.MIDIConnectionEvent;
193 import org.htmlunit.javascript.host.event.MIDIMessageEvent;
194 import org.htmlunit.javascript.host.event.MediaEncryptedEvent;
195 import org.htmlunit.javascript.host.event.MediaKeyMessageEvent;
196 import org.htmlunit.javascript.host.event.MediaQueryListEvent;
197 import org.htmlunit.javascript.host.event.MediaStreamEvent;
198 import org.htmlunit.javascript.host.event.MediaStreamTrackEvent;
199 import org.htmlunit.javascript.host.event.MessageEvent;
200 import org.htmlunit.javascript.host.event.MouseEvent;
201 import org.htmlunit.javascript.host.event.MouseScrollEvent;
202 import org.htmlunit.javascript.host.event.MutationEvent;
203 import org.htmlunit.javascript.host.event.OfflineAudioCompletionEvent;
204 import org.htmlunit.javascript.host.event.PageTransitionEvent;
205 import org.htmlunit.javascript.host.event.PointerEvent;
206 import org.htmlunit.javascript.host.event.PopStateEvent;
207 import org.htmlunit.javascript.host.event.PresentationConnectionAvailableEvent;
208 import org.htmlunit.javascript.host.event.PresentationConnectionCloseEvent;
209 import org.htmlunit.javascript.host.event.ProgressEvent;
210 import org.htmlunit.javascript.host.event.PromiseRejectionEvent;
211 import org.htmlunit.javascript.host.event.RTCDataChannelEvent;
212 import org.htmlunit.javascript.host.event.RTCPeerConnectionIceEvent;
213 import org.htmlunit.javascript.host.event.SecurityPolicyViolationEvent;
214 import org.htmlunit.javascript.host.event.SpeechSynthesisEvent;
215 import org.htmlunit.javascript.host.event.StorageEvent;
216 import org.htmlunit.javascript.host.event.SubmitEvent;
217 import org.htmlunit.javascript.host.event.TextEvent;
218 import org.htmlunit.javascript.host.event.TimeEvent;
219 import org.htmlunit.javascript.host.event.TouchEvent;
220 import org.htmlunit.javascript.host.event.TrackEvent;
221 import org.htmlunit.javascript.host.event.TransitionEvent;
222 import org.htmlunit.javascript.host.event.UIEvent;
223 import org.htmlunit.javascript.host.event.WebGLContextEvent;
224 import org.htmlunit.javascript.host.event.WebkitSpeechRecognitionError;
225 import org.htmlunit.javascript.host.event.WebkitSpeechRecognitionEvent;
226 import org.htmlunit.javascript.host.event.WheelEvent;
227 import org.htmlunit.javascript.host.fetch.Headers;
228 import org.htmlunit.javascript.host.fetch.Request;
229 import org.htmlunit.javascript.host.fetch.Response;
230 import org.htmlunit.javascript.host.file.Blob;
231 import org.htmlunit.javascript.host.file.File;
232 import org.htmlunit.javascript.host.file.FileList;
233 import org.htmlunit.javascript.host.file.FileReader;
234 import org.htmlunit.javascript.host.file.FileSystem;
235 import org.htmlunit.javascript.host.file.FileSystemDirectoryEntry;
236 import org.htmlunit.javascript.host.file.FileSystemDirectoryReader;
237 import org.htmlunit.javascript.host.file.FileSystemEntry;
238 import org.htmlunit.javascript.host.file.FileSystemFileEntry;
239 import org.htmlunit.javascript.host.geo.Geolocation;
240 import org.htmlunit.javascript.host.geo.GeolocationCoordinates;
241 import org.htmlunit.javascript.host.geo.GeolocationPosition;
242 import org.htmlunit.javascript.host.geo.GeolocationPositionError;
243 import org.htmlunit.javascript.host.html.Audio;
244 import org.htmlunit.javascript.host.html.HTMLAllCollection;
245 import org.htmlunit.javascript.host.html.HTMLAnchorElement;
246 import org.htmlunit.javascript.host.html.HTMLAreaElement;
247 import org.htmlunit.javascript.host.html.HTMLAudioElement;
248 import org.htmlunit.javascript.host.html.HTMLBRElement;
249 import org.htmlunit.javascript.host.html.HTMLBaseElement;
250 import org.htmlunit.javascript.host.html.HTMLBodyElement;
251 import org.htmlunit.javascript.host.html.HTMLButtonElement;
252 import org.htmlunit.javascript.host.html.HTMLCanvasElement;
253 import org.htmlunit.javascript.host.html.HTMLCollection;
254 import org.htmlunit.javascript.host.html.HTMLDListElement;
255 import org.htmlunit.javascript.host.html.HTMLDataElement;
256 import org.htmlunit.javascript.host.html.HTMLDataListElement;
257 import org.htmlunit.javascript.host.html.HTMLDetailsElement;
258 import org.htmlunit.javascript.host.html.HTMLDialogElement;
259 import org.htmlunit.javascript.host.html.HTMLDirectoryElement;
260 import org.htmlunit.javascript.host.html.HTMLDivElement;
261 import org.htmlunit.javascript.host.html.HTMLDocument;
262 import org.htmlunit.javascript.host.html.HTMLElement;
263 import org.htmlunit.javascript.host.html.HTMLEmbedElement;
264 import org.htmlunit.javascript.host.html.HTMLFieldSetElement;
265 import org.htmlunit.javascript.host.html.HTMLFontElement;
266 import org.htmlunit.javascript.host.html.HTMLFormControlsCollection;
267 import org.htmlunit.javascript.host.html.HTMLFormElement;
268 import org.htmlunit.javascript.host.html.HTMLFrameElement;
269 import org.htmlunit.javascript.host.html.HTMLFrameSetElement;
270 import org.htmlunit.javascript.host.html.HTMLHRElement;
271 import org.htmlunit.javascript.host.html.HTMLHeadElement;
272 import org.htmlunit.javascript.host.html.HTMLHeadingElement;
273 import org.htmlunit.javascript.host.html.HTMLHtmlElement;
274 import org.htmlunit.javascript.host.html.HTMLIFrameElement;
275 import org.htmlunit.javascript.host.html.HTMLImageElement;
276 import org.htmlunit.javascript.host.html.HTMLInputElement;
277 import org.htmlunit.javascript.host.html.HTMLLIElement;
278 import org.htmlunit.javascript.host.html.HTMLLabelElement;
279 import org.htmlunit.javascript.host.html.HTMLLegendElement;
280 import org.htmlunit.javascript.host.html.HTMLLinkElement;
281 import org.htmlunit.javascript.host.html.HTMLMapElement;
282 import org.htmlunit.javascript.host.html.HTMLMarqueeElement;
283 import org.htmlunit.javascript.host.html.HTMLMediaElement;
284 import org.htmlunit.javascript.host.html.HTMLMenuElement;
285 import org.htmlunit.javascript.host.html.HTMLMetaElement;
286 import org.htmlunit.javascript.host.html.HTMLMeterElement;
287 import org.htmlunit.javascript.host.html.HTMLModElement;
288 import org.htmlunit.javascript.host.html.HTMLOListElement;
289 import org.htmlunit.javascript.host.html.HTMLObjectElement;
290 import org.htmlunit.javascript.host.html.HTMLOptGroupElement;
291 import org.htmlunit.javascript.host.html.HTMLOptionElement;
292 import org.htmlunit.javascript.host.html.HTMLOptionsCollection;
293 import org.htmlunit.javascript.host.html.HTMLOutputElement;
294 import org.htmlunit.javascript.host.html.HTMLParagraphElement;
295 import org.htmlunit.javascript.host.html.HTMLParamElement;
296 import org.htmlunit.javascript.host.html.HTMLPictureElement;
297 import org.htmlunit.javascript.host.html.HTMLPreElement;
298 import org.htmlunit.javascript.host.html.HTMLProgressElement;
299 import org.htmlunit.javascript.host.html.HTMLQuoteElement;
300 import org.htmlunit.javascript.host.html.HTMLScriptElement;
301 import org.htmlunit.javascript.host.html.HTMLSelectElement;
302 import org.htmlunit.javascript.host.html.HTMLSlotElement;
303 import org.htmlunit.javascript.host.html.HTMLSourceElement;
304 import org.htmlunit.javascript.host.html.HTMLSpanElement;
305 import org.htmlunit.javascript.host.html.HTMLStyleElement;
306 import org.htmlunit.javascript.host.html.HTMLTableCaptionElement;
307 import org.htmlunit.javascript.host.html.HTMLTableCellElement;
308 import org.htmlunit.javascript.host.html.HTMLTableColElement;
309 import org.htmlunit.javascript.host.html.HTMLTableElement;
310 import org.htmlunit.javascript.host.html.HTMLTableRowElement;
311 import org.htmlunit.javascript.host.html.HTMLTableSectionElement;
312 import org.htmlunit.javascript.host.html.HTMLTemplateElement;
313 import org.htmlunit.javascript.host.html.HTMLTextAreaElement;
314 import org.htmlunit.javascript.host.html.HTMLTimeElement;
315 import org.htmlunit.javascript.host.html.HTMLTitleElement;
316 import org.htmlunit.javascript.host.html.HTMLTrackElement;
317 import org.htmlunit.javascript.host.html.HTMLUListElement;
318 import org.htmlunit.javascript.host.html.HTMLUnknownElement;
319 import org.htmlunit.javascript.host.html.HTMLVideoElement;
320 import org.htmlunit.javascript.host.html.ValidityState;
321 import org.htmlunit.javascript.host.idb.IDBCursor;
322 import org.htmlunit.javascript.host.idb.IDBCursorWithValue;
323 import org.htmlunit.javascript.host.idb.IDBDatabase;
324 import org.htmlunit.javascript.host.idb.IDBFactory;
325 import org.htmlunit.javascript.host.idb.IDBIndex;
326 import org.htmlunit.javascript.host.idb.IDBKeyRange;
327 import org.htmlunit.javascript.host.idb.IDBObjectStore;
328 import org.htmlunit.javascript.host.idb.IDBOpenDBRequest;
329 import org.htmlunit.javascript.host.idb.IDBRequest;
330 import org.htmlunit.javascript.host.idb.IDBTransaction;
331 import org.htmlunit.javascript.host.media.AnalyserNode;
332 import org.htmlunit.javascript.host.media.AudioBuffer;
333 import org.htmlunit.javascript.host.media.AudioBufferSourceNode;
334 import org.htmlunit.javascript.host.media.AudioContext;
335 import org.htmlunit.javascript.host.media.AudioDestinationNode;
336 import org.htmlunit.javascript.host.media.AudioListener;
337 import org.htmlunit.javascript.host.media.AudioNode;
338 import org.htmlunit.javascript.host.media.AudioParam;
339 import org.htmlunit.javascript.host.media.BaseAudioContext;
340 import org.htmlunit.javascript.host.media.BiquadFilterNode;
341 import org.htmlunit.javascript.host.media.ChannelMergerNode;
342 import org.htmlunit.javascript.host.media.ChannelSplitterNode;
343 import org.htmlunit.javascript.host.media.ConstantSourceNode;
344 import org.htmlunit.javascript.host.media.ConvolverNode;
345 import org.htmlunit.javascript.host.media.DelayNode;
346 import org.htmlunit.javascript.host.media.DynamicsCompressorNode;
347 import org.htmlunit.javascript.host.media.GainNode;
348 import org.htmlunit.javascript.host.media.IIRFilterNode;
349 import org.htmlunit.javascript.host.media.InputDeviceCapabilities;
350 import org.htmlunit.javascript.host.media.MediaDeviceInfo;
351 import org.htmlunit.javascript.host.media.MediaDevices;
352 import org.htmlunit.javascript.host.media.MediaElementAudioSourceNode;
353 import org.htmlunit.javascript.host.media.MediaError;
354 import org.htmlunit.javascript.host.media.MediaKeyError;
355 import org.htmlunit.javascript.host.media.MediaKeySession;
356 import org.htmlunit.javascript.host.media.MediaKeyStatusMap;
357 import org.htmlunit.javascript.host.media.MediaKeySystemAccess;
358 import org.htmlunit.javascript.host.media.MediaKeys;
359 import org.htmlunit.javascript.host.media.MediaRecorder;
360 import org.htmlunit.javascript.host.media.MediaSource;
361 import org.htmlunit.javascript.host.media.MediaStream;
362 import org.htmlunit.javascript.host.media.MediaStreamAudioDestinationNode;
363 import org.htmlunit.javascript.host.media.MediaStreamAudioSourceNode;
364 import org.htmlunit.javascript.host.media.MediaStreamTrack;
365 import org.htmlunit.javascript.host.media.OfflineAudioContext;
366 import org.htmlunit.javascript.host.media.OscillatorNode;
367 import org.htmlunit.javascript.host.media.PannerNode;
368 import org.htmlunit.javascript.host.media.PeriodicSyncManager;
369 import org.htmlunit.javascript.host.media.PeriodicWave;
370 import org.htmlunit.javascript.host.media.RemotePlayback;
371 import org.htmlunit.javascript.host.media.ScriptProcessorNode;
372 import org.htmlunit.javascript.host.media.SourceBuffer;
373 import org.htmlunit.javascript.host.media.SourceBufferList;
374 import org.htmlunit.javascript.host.media.StereoPannerNode;
375 import org.htmlunit.javascript.host.media.TextTrack;
376 import org.htmlunit.javascript.host.media.TextTrackCue;
377 import org.htmlunit.javascript.host.media.TextTrackCueList;
378 import org.htmlunit.javascript.host.media.TextTrackList;
379 import org.htmlunit.javascript.host.media.TimeRanges;
380 import org.htmlunit.javascript.host.media.VTTCue;
381 import org.htmlunit.javascript.host.media.VideoPlaybackQuality;
382 import org.htmlunit.javascript.host.media.WaveShaperNode;
383 import org.htmlunit.javascript.host.media.midi.MIDIAccess;
384 import org.htmlunit.javascript.host.media.midi.MIDIInput;
385 import org.htmlunit.javascript.host.media.midi.MIDIInputMap;
386 import org.htmlunit.javascript.host.media.midi.MIDIOutput;
387 import org.htmlunit.javascript.host.media.midi.MIDIOutputMap;
388 import org.htmlunit.javascript.host.media.midi.MIDIPort;
389 import org.htmlunit.javascript.host.media.presentation.Presentation;
390 import org.htmlunit.javascript.host.media.presentation.PresentationAvailability;
391 import org.htmlunit.javascript.host.media.presentation.PresentationConnection;
392 import org.htmlunit.javascript.host.media.presentation.PresentationRequest;
393 import org.htmlunit.javascript.host.media.rtc.RTCCertificate;
394 import org.htmlunit.javascript.host.media.rtc.RTCIceCandidate;
395 import org.htmlunit.javascript.host.media.rtc.RTCPeerConnection;
396 import org.htmlunit.javascript.host.media.rtc.RTCSctpTransport;
397 import org.htmlunit.javascript.host.media.rtc.RTCSessionDescription;
398 import org.htmlunit.javascript.host.media.rtc.RTCStatsReport;
399 import org.htmlunit.javascript.host.network.NetworkInformation;
400 import org.htmlunit.javascript.host.payment.PaymentAddress;
401 import org.htmlunit.javascript.host.payment.PaymentRequest;
402 import org.htmlunit.javascript.host.payment.PaymentResponse;
403 import org.htmlunit.javascript.host.performance.Performance;
404 import org.htmlunit.javascript.host.performance.PerformanceEntry;
405 import org.htmlunit.javascript.host.performance.PerformanceMark;
406 import org.htmlunit.javascript.host.performance.PerformanceMeasure;
407 import org.htmlunit.javascript.host.performance.PerformanceNavigation;
408 import org.htmlunit.javascript.host.performance.PerformanceNavigationTiming;
409 import org.htmlunit.javascript.host.performance.PerformanceResourceTiming;
410 import org.htmlunit.javascript.host.performance.PerformanceTiming;
411 import org.htmlunit.javascript.host.security.Credential;
412 import org.htmlunit.javascript.host.security.CredentialsContainer;
413 import org.htmlunit.javascript.host.security.FederatedCredential;
414 import org.htmlunit.javascript.host.security.PasswordCredential;
415 import org.htmlunit.javascript.host.speech.SpeechSynthesis;
416 import org.htmlunit.javascript.host.speech.SpeechSynthesisErrorEvent;
417 import org.htmlunit.javascript.host.speech.SpeechSynthesisUtterance;
418 import org.htmlunit.javascript.host.speech.SpeechSynthesisVoice;
419 import org.htmlunit.javascript.host.speech.WebkitSpeechGrammar;
420 import org.htmlunit.javascript.host.speech.WebkitSpeechGrammarList;
421 import org.htmlunit.javascript.host.speech.WebkitSpeechRecognition;
422 import org.htmlunit.javascript.host.svg.SVGAElement;
423 import org.htmlunit.javascript.host.svg.SVGAngle;
424 import org.htmlunit.javascript.host.svg.SVGAnimateElement;
425 import org.htmlunit.javascript.host.svg.SVGAnimateMotionElement;
426 import org.htmlunit.javascript.host.svg.SVGAnimateTransformElement;
427 import org.htmlunit.javascript.host.svg.SVGAnimatedAngle;
428 import org.htmlunit.javascript.host.svg.SVGAnimatedBoolean;
429 import org.htmlunit.javascript.host.svg.SVGAnimatedEnumeration;
430 import org.htmlunit.javascript.host.svg.SVGAnimatedInteger;
431 import org.htmlunit.javascript.host.svg.SVGAnimatedLength;
432 import org.htmlunit.javascript.host.svg.SVGAnimatedLengthList;
433 import org.htmlunit.javascript.host.svg.SVGAnimatedNumber;
434 import org.htmlunit.javascript.host.svg.SVGAnimatedNumberList;
435 import org.htmlunit.javascript.host.svg.SVGAnimatedPreserveAspectRatio;
436 import org.htmlunit.javascript.host.svg.SVGAnimatedRect;
437 import org.htmlunit.javascript.host.svg.SVGAnimatedString;
438 import org.htmlunit.javascript.host.svg.SVGAnimatedTransformList;
439 import org.htmlunit.javascript.host.svg.SVGAnimationElement;
440 import org.htmlunit.javascript.host.svg.SVGCircleElement;
441 import org.htmlunit.javascript.host.svg.SVGClipPathElement;
442 import org.htmlunit.javascript.host.svg.SVGComponentTransferFunctionElement;
443 import org.htmlunit.javascript.host.svg.SVGDefsElement;
444 import org.htmlunit.javascript.host.svg.SVGDescElement;
445 import org.htmlunit.javascript.host.svg.SVGElement;
446 import org.htmlunit.javascript.host.svg.SVGEllipseElement;
447 import org.htmlunit.javascript.host.svg.SVGFEBlendElement;
448 import org.htmlunit.javascript.host.svg.SVGFEColorMatrixElement;
449 import org.htmlunit.javascript.host.svg.SVGFEComponentTransferElement;
450 import org.htmlunit.javascript.host.svg.SVGFECompositeElement;
451 import org.htmlunit.javascript.host.svg.SVGFEConvolveMatrixElement;
452 import org.htmlunit.javascript.host.svg.SVGFEDiffuseLightingElement;
453 import org.htmlunit.javascript.host.svg.SVGFEDisplacementMapElement;
454 import org.htmlunit.javascript.host.svg.SVGFEDistantLightElement;
455 import org.htmlunit.javascript.host.svg.SVGFEDropShadowElement;
456 import org.htmlunit.javascript.host.svg.SVGFEFloodElement;
457 import org.htmlunit.javascript.host.svg.SVGFEFuncAElement;
458 import org.htmlunit.javascript.host.svg.SVGFEFuncBElement;
459 import org.htmlunit.javascript.host.svg.SVGFEFuncGElement;
460 import org.htmlunit.javascript.host.svg.SVGFEFuncRElement;
461 import org.htmlunit.javascript.host.svg.SVGFEGaussianBlurElement;
462 import org.htmlunit.javascript.host.svg.SVGFEImageElement;
463 import org.htmlunit.javascript.host.svg.SVGFEMergeElement;
464 import org.htmlunit.javascript.host.svg.SVGFEMergeNodeElement;
465 import org.htmlunit.javascript.host.svg.SVGFEMorphologyElement;
466 import org.htmlunit.javascript.host.svg.SVGFEOffsetElement;
467 import org.htmlunit.javascript.host.svg.SVGFEPointLightElement;
468 import org.htmlunit.javascript.host.svg.SVGFESpecularLightingElement;
469 import org.htmlunit.javascript.host.svg.SVGFESpotLightElement;
470 import org.htmlunit.javascript.host.svg.SVGFETileElement;
471 import org.htmlunit.javascript.host.svg.SVGFETurbulenceElement;
472 import org.htmlunit.javascript.host.svg.SVGFilterElement;
473 import org.htmlunit.javascript.host.svg.SVGForeignObjectElement;
474 import org.htmlunit.javascript.host.svg.SVGGElement;
475 import org.htmlunit.javascript.host.svg.SVGGeometryElement;
476 import org.htmlunit.javascript.host.svg.SVGGradientElement;
477 import org.htmlunit.javascript.host.svg.SVGGraphicsElement;
478 import org.htmlunit.javascript.host.svg.SVGImageElement;
479 import org.htmlunit.javascript.host.svg.SVGLength;
480 import org.htmlunit.javascript.host.svg.SVGLengthList;
481 import org.htmlunit.javascript.host.svg.SVGLineElement;
482 import org.htmlunit.javascript.host.svg.SVGLinearGradientElement;
483 import org.htmlunit.javascript.host.svg.SVGMPathElement;
484 import org.htmlunit.javascript.host.svg.SVGMarkerElement;
485 import org.htmlunit.javascript.host.svg.SVGMaskElement;
486 import org.htmlunit.javascript.host.svg.SVGMatrix;
487 import org.htmlunit.javascript.host.svg.SVGMetadataElement;
488 import org.htmlunit.javascript.host.svg.SVGNumber;
489 import org.htmlunit.javascript.host.svg.SVGNumberList;
490 import org.htmlunit.javascript.host.svg.SVGPathElement;
491 import org.htmlunit.javascript.host.svg.SVGPatternElement;
492 import org.htmlunit.javascript.host.svg.SVGPoint;
493 import org.htmlunit.javascript.host.svg.SVGPointList;
494 import org.htmlunit.javascript.host.svg.SVGPolygonElement;
495 import org.htmlunit.javascript.host.svg.SVGPolylineElement;
496 import org.htmlunit.javascript.host.svg.SVGPreserveAspectRatio;
497 import org.htmlunit.javascript.host.svg.SVGRadialGradientElement;
498 import org.htmlunit.javascript.host.svg.SVGRect;
499 import org.htmlunit.javascript.host.svg.SVGRectElement;
500 import org.htmlunit.javascript.host.svg.SVGSVGElement;
501 import org.htmlunit.javascript.host.svg.SVGScriptElement;
502 import org.htmlunit.javascript.host.svg.SVGSetElement;
503 import org.htmlunit.javascript.host.svg.SVGStopElement;
504 import org.htmlunit.javascript.host.svg.SVGStringList;
505 import org.htmlunit.javascript.host.svg.SVGStyleElement;
506 import org.htmlunit.javascript.host.svg.SVGSwitchElement;
507 import org.htmlunit.javascript.host.svg.SVGSymbolElement;
508 import org.htmlunit.javascript.host.svg.SVGTSpanElement;
509 import org.htmlunit.javascript.host.svg.SVGTextContentElement;
510 import org.htmlunit.javascript.host.svg.SVGTextElement;
511 import org.htmlunit.javascript.host.svg.SVGTextPathElement;
512 import org.htmlunit.javascript.host.svg.SVGTextPositioningElement;
513 import org.htmlunit.javascript.host.svg.SVGTitleElement;
514 import org.htmlunit.javascript.host.svg.SVGTransform;
515 import org.htmlunit.javascript.host.svg.SVGTransformList;
516 import org.htmlunit.javascript.host.svg.SVGUnitTypes;
517 import org.htmlunit.javascript.host.svg.SVGUseElement;
518 import org.htmlunit.javascript.host.svg.SVGViewElement;
519 import org.htmlunit.javascript.host.worker.ServiceWorker;
520 import org.htmlunit.javascript.host.worker.ServiceWorkerContainer;
521 import org.htmlunit.javascript.host.worker.ServiceWorkerRegistration;
522 import org.htmlunit.javascript.host.worker.SyncManager;
523 import org.htmlunit.javascript.host.worker.Worker;
524 import org.htmlunit.javascript.host.xml.FormData;
525 import org.htmlunit.javascript.host.xml.XMLDocument;
526 import org.htmlunit.javascript.host.xml.XMLHttpRequest;
527 import org.htmlunit.javascript.host.xml.XMLHttpRequestEventTarget;
528 import org.htmlunit.javascript.host.xml.XMLHttpRequestUpload;
529 import org.htmlunit.javascript.host.xml.XMLSerializer;
530 import org.htmlunit.javascript.host.xml.XSLTProcessor;
531
532
533
534
535
536
537
538
539
540
541 public final class JavaScriptConfiguration extends AbstractJavaScriptConfiguration {
542
543 @SuppressWarnings("unchecked")
544 static final Class<? extends HtmlUnitScriptable>[] CLASSES_ = new Class[] {
545
546 AbortController.class, AbstractRange.class, Atomics.class, AudioBuffer.class, AudioListener.class,
547 AudioParam.class, BarProp.class, Blob.class, CSS.class, CSSRule.class, CSSRuleList.class,
548 CSSStyleDeclaration.class, Cache.class, CacheStorage.class, CanvasGradient.class, CanvasPattern.class,
549 CanvasRenderingContext2D.class, CaretPosition.class, Credential.class, CredentialsContainer.class, Crypto.class,
550 CryptoKey.class, CustomElementRegistry.class, DOMError.class, DOMException.class, DOMImplementation.class,
551 DOMMatrixReadOnly.class, DOMParser.class, DOMPointReadOnly.class, DOMRectList.class, DOMRectReadOnly.class,
552 DOMStringList.class, DOMStringMap.class, DOMTokenList.class, DataTransfer.class, DataTransferItem.class,
553 DataTransferItemList.class, Event.class, EventTarget.class, External.class, FileList.class, FileSystem.class,
554 FileSystemDirectoryReader.class, FileSystemEntry.class, FontFace.class, FormData.class, Gamepad.class,
555 GamepadButton.class, Geolocation.class, GeolocationCoordinates.class, GeolocationPosition.class,
556 GeolocationPositionError.class, HTMLOptionsCollection.class, Headers.class, History.class, IDBCursor.class,
557 IDBFactory.class, IDBIndex.class, IDBKeyRange.class, IDBObjectStore.class, IdleDeadline.class,
558 ImageBitmap.class, ImageBitmapRenderingContext.class, ImageData.class, InputDeviceCapabilities.class,
559 IntersectionObserver.class, IntersectionObserverEntry.class, KeyframeEffect.class, Location.class,
560 MIDIInputMap.class, MIDIOutputMap.class, MediaDeviceInfo.class, MediaError.class, MediaKeyStatusMap.class,
561 MediaKeySystemAccess.class, MediaKeys.class, MediaList.class, MessageChannel.class, MimeType.class,
562 MimeTypeArray.class, MutationObserver.class, MutationRecord.class, NamedNodeMap.class, Navigator.class,
563 NodeFilter.class, NodeIterator.class, Path2D.class, PaymentAddress.class, PerformanceEntry.class,
564 PerformanceNavigation.class, PerformanceObserver.class, PerformanceObserverEntryList.class,
565 PerformanceTiming.class, PeriodicSyncManager.class, PeriodicWave.class, Permissions.class, Plugin.class,
566 PluginArray.class, Presentation.class, PushManager.class, PushSubscription.class, PushSubscriptionOptions.class,
567 RTCCertificate.class, RTCIceCandidate.class, RTCSessionDescription.class, RTCStatsReport.class,
568 ReadableStream.class, Request.class, Response.class, SVGAngle.class, SVGAnimatedAngle.class,
569 SVGAnimatedBoolean.class, SVGAnimatedEnumeration.class, SVGAnimatedInteger.class, SVGAnimatedLength.class,
570 SVGAnimatedLengthList.class, SVGAnimatedNumber.class, SVGAnimatedNumberList.class,
571 SVGAnimatedPreserveAspectRatio.class, SVGAnimatedRect.class, SVGAnimatedString.class,
572 SVGAnimatedTransformList.class, SVGLength.class, SVGLengthList.class, SVGMatrix.class, SVGNumber.class,
573 SVGNumberList.class, SVGPoint.class, SVGPointList.class, SVGPreserveAspectRatio.class, SVGRect.class,
574 SVGStringList.class, SVGTransform.class, SVGTransformList.class, SVGUnitTypes.class, Selection.class,
575 SpeechSynthesisVoice.class, Storage.class, StorageManager.class, StyleMedia.class, StyleSheet.class,
576 StyleSheetList.class, SubtleCrypto.class, SyncManager.class, TextDecoder.class, TextEncoder.class,
577 TextMetrics.class, TextTrackCueList.class, TimeRanges.class, Touch.class, TouchList.class, TreeWalker.class,
578 URL.class, URLSearchParams.class, ValidityState.class, VideoPlaybackQuality.class, WebGL2RenderingContext.class,
579 WebGLActiveInfo.class, WebGLBuffer.class, WebGLFramebuffer.class, WebGLProgram.class, WebGLQuery.class,
580 WebGLRenderbuffer.class, WebGLRenderingContext.class, WebGLSampler.class, WebGLShader.class,
581 WebGLShaderPrecisionFormat.class, WebGLSync.class, WebGLTexture.class, WebGLTransformFeedback.class,
582 WebGLUniformLocation.class, WebGLVertexArrayObject.class, WebkitSpeechGrammar.class,
583 WebkitSpeechGrammarList.class, XMLSerializer.class, XPathEvaluator.class, XPathEvaluator.class,
584 XPathExpression.class, XPathNSResolver.class, XPathResult.class, XSLTProcessor.class,
585
586 AbortSignal.class, Animation.class, AnimationEvent.class, AudioNode.class, AudioProcessingEvent.class,
587 BaseAudioContext.class, BatteryManager.class, BeforeInstallPromptEvent.class, BeforeUnloadEvent.class,
588 BlobEvent.class, BroadcastChannel.class, CSSCounterStyleRule.class, CSSFontFaceRule.class,
589 CSSGroupingRule.class, CSSImportRule.class, CSSKeyframeRule.class, CSSKeyframesRule.class,
590 CSSNamespaceRule.class, CSSPageRule.class, CSSStyleRule.class, CSSStyleSheet.class, ClipboardEvent.class,
591 CloseEvent.class, ComputedCSSStyleDeclaration.class, CustomEvent.class, DOMMatrix.class, DOMPoint.class,
592 DOMRect.class, DeviceMotionEvent.class, DeviceOrientationEvent.class, ErrorEvent.class, EventSource.class,
593 FederatedCredential.class, File.class, FileReader.class, FileSystemDirectoryEntry.class,
594 FileSystemFileEntry.class, FontFaceSet.class, GamepadEvent.class, HTMLAllCollection.class, HTMLCollection.class,
595 HashChangeEvent.class, IDBCursorWithValue.class, IDBDatabase.class, IDBRequest.class, IDBTransaction.class,
596 IDBVersionChangeEvent.class, MIDIAccess.class, MIDIConnectionEvent.class, MIDIMessageEvent.class,
597 MIDIPort.class, MediaDevices.class, MediaEncryptedEvent.class, MediaKeyError.class, MediaKeyMessageEvent.class,
598 MediaKeySession.class, MediaQueryList.class, MediaQueryListEvent.class, MediaRecorder.class, MediaSource.class,
599 MediaStream.class, MediaStreamEvent.class, MediaStreamTrack.class, MediaStreamTrackEvent.class,
600 MessageEvent.class, MessagePort.class, MutationEvent.class, NetworkInformation.class, Node.class,
601 NodeList.class, Notification.class, OfflineAudioCompletionEvent.class, PageTransitionEvent.class,
602 PasswordCredential.class, PaymentRequest.class, PaymentResponse.class, Performance.class, PerformanceMark.class,
603 PerformanceMeasure.class, PerformanceResourceTiming.class, PermissionStatus.class, PopStateEvent.class,
604 PresentationAvailability.class, PresentationConnection.class, PresentationConnectionAvailableEvent.class,
605 PresentationConnectionCloseEvent.class, PresentationRequest.class, ProgressEvent.class,
606 PromiseRejectionEvent.class, RTCDataChannelEvent.class, RTCPeerConnection.class,
607 RTCPeerConnectionIceEvent.class, RTCSctpTransport.class, Range.class, RemotePlayback.class, Screen.class,
608 ScreenOrientation.class, SecurityPolicyViolationEvent.class, ServiceWorker.class, ServiceWorkerContainer.class,
609 ServiceWorkerRegistration.class, SharedWorker.class, SourceBuffer.class, SourceBufferList.class,
610 SpeechSynthesis.class, SpeechSynthesisEvent.class, SpeechSynthesisUtterance.class, StorageEvent.class,
611 SubmitEvent.class, TextTrack.class, TextTrackCue.class, TextTrackList.class, TimeEvent.class, TrackEvent.class,
612 TransitionEvent.class, UIEvent.class, WebGLContextEvent.class, WebSocket.class, WebkitSpeechRecognition.class,
613 WebkitSpeechRecognitionError.class, WebkitSpeechRecognitionEvent.class, Window.class, Worker.class,
614 XMLHttpRequestEventTarget.class,
615
616 AnalyserNode.class, Attr.class, AudioContext.class, AudioDestinationNode.class, AudioScheduledSourceNode.class,
617 BiquadFilterNode.class, CSSConditionRule.class, CanvasCaptureMediaStream.class,
618 CanvasCaptureMediaStreamTrack.class, ChannelMergerNode.class, ChannelSplitterNode.class, CharacterData.class,
619 CompositionEvent.class, ConvolverNode.class, DelayNode.class, Document.class, DocumentFragment.class,
620 DocumentType.class, DynamicsCompressorNode.class, Element.class, FocusEvent.class, GainNode.class,
621 HTMLFormControlsCollection.class, IDBOpenDBRequest.class, IIRFilterNode.class, InputEvent.class,
622 KeyboardEvent.class, MIDIInput.class, MIDIOutput.class, MediaElementAudioSourceNode.class,
623 MediaStreamAudioDestinationNode.class, MediaStreamAudioSourceNode.class, MouseEvent.class,
624 OfflineAudioContext.class, PannerNode.class, PerformanceNavigationTiming.class, RadioNodeList.class,
625 ScriptProcessorNode.class, SpeechSynthesisErrorEvent.class, StereoPannerNode.class, TextEvent.class,
626 TouchEvent.class, VTTCue.class, WaveShaperNode.class, XMLHttpRequest.class, XMLHttpRequestUpload.class,
627
628 AudioBufferSourceNode.class, CSSMediaRule.class, CSSSupportsRule.class, Comment.class, ConstantSourceNode.class,
629 DragEvent.class, HTMLDocument.class, HTMLElement.class, MouseScrollEvent.class, OscillatorNode.class,
630 PointerEvent.class, ProcessingInstruction.class, SVGElement.class, ShadowRoot.class, Text.class,
631 WheelEvent.class, XMLDocument.class,
632
633 CDATASection.class, HTMLAnchorElement.class, HTMLAreaElement.class, HTMLBRElement.class, HTMLBaseElement.class,
634 HTMLBodyElement.class, HTMLButtonElement.class, HTMLCanvasElement.class, HTMLDListElement.class,
635 HTMLDataElement.class, HTMLDataListElement.class, HTMLDetailsElement.class, HTMLDialogElement.class,
636 HTMLDirectoryElement.class, HTMLDivElement.class, HTMLEmbedElement.class, HTMLFieldSetElement.class,
637 HTMLFontElement.class, HTMLFormElement.class, HTMLFrameElement.class, HTMLFrameSetElement.class,
638 HTMLHRElement.class, HTMLHeadElement.class, HTMLHeadingElement.class, HTMLHtmlElement.class,
639 HTMLIFrameElement.class, HTMLImageElement.class, HTMLInputElement.class, HTMLLIElement.class,
640 HTMLLabelElement.class, HTMLLegendElement.class, HTMLLinkElement.class, HTMLMapElement.class,
641 HTMLMarqueeElement.class, HTMLMediaElement.class, HTMLMenuElement.class, HTMLMetaElement.class,
642 HTMLMeterElement.class, HTMLModElement.class, HTMLOListElement.class, HTMLObjectElement.class,
643 HTMLOptGroupElement.class, HTMLOptionElement.class, HTMLOutputElement.class, HTMLParagraphElement.class,
644 HTMLParamElement.class, HTMLPictureElement.class, HTMLPreElement.class, HTMLProgressElement.class,
645 HTMLQuoteElement.class, HTMLScriptElement.class, HTMLSelectElement.class, HTMLSlotElement.class,
646 HTMLSourceElement.class, HTMLSpanElement.class, HTMLStyleElement.class, HTMLTableCaptionElement.class,
647 HTMLTableCellElement.class, HTMLTableColElement.class, HTMLTableElement.class, HTMLTableRowElement.class,
648 HTMLTableSectionElement.class, HTMLTemplateElement.class, HTMLTextAreaElement.class, HTMLTimeElement.class,
649 HTMLTitleElement.class, HTMLTrackElement.class, HTMLUListElement.class, HTMLUnknownElement.class,
650 SVGAnimationElement.class, SVGClipPathElement.class, SVGComponentTransferFunctionElement.class,
651 SVGDescElement.class, SVGFEBlendElement.class, SVGFEColorMatrixElement.class,
652 SVGFEComponentTransferElement.class, SVGFECompositeElement.class, SVGFEConvolveMatrixElement.class,
653 SVGFEDiffuseLightingElement.class, SVGFEDisplacementMapElement.class, SVGFEDistantLightElement.class,
654 SVGFEDropShadowElement.class, SVGFEFloodElement.class, SVGFEGaussianBlurElement.class, SVGFEImageElement.class,
655 SVGFEMergeElement.class, SVGFEMergeNodeElement.class, SVGFEMorphologyElement.class, SVGFEOffsetElement.class,
656 SVGFEPointLightElement.class, SVGFESpecularLightingElement.class, SVGFESpotLightElement.class,
657 SVGFETileElement.class, SVGFETurbulenceElement.class, SVGFilterElement.class, SVGGradientElement.class,
658 SVGGraphicsElement.class, SVGMPathElement.class, SVGMarkerElement.class, SVGMaskElement.class,
659 SVGMetadataElement.class, SVGPatternElement.class, SVGScriptElement.class, SVGStopElement.class,
660 SVGStyleElement.class, SVGSymbolElement.class, SVGTitleElement.class, SVGViewElement.class,
661
662 HTMLAudioElement.class, HTMLVideoElement.class, SVGAElement.class, SVGAnimateElement.class,
663 SVGAnimateMotionElement.class, SVGAnimateTransformElement.class, SVGDefsElement.class,
664 SVGFEFuncAElement.class, SVGFEFuncBElement.class, SVGFEFuncGElement.class, SVGFEFuncRElement.class,
665 SVGForeignObjectElement.class, SVGGElement.class, SVGGeometryElement.class, SVGImageElement.class,
666 SVGLinearGradientElement.class, SVGRadialGradientElement.class, SVGSVGElement.class, SVGSetElement.class,
667 SVGSwitchElement.class, SVGTextContentElement.class, SVGUseElement.class,
668
669 Audio.class, SVGCircleElement.class, SVGEllipseElement.class, SVGLineElement.class, SVGPathElement.class,
670 SVGPolygonElement.class, SVGPolylineElement.class, SVGRectElement.class, SVGTextPathElement.class,
671 SVGTextPositioningElement.class,
672
673 SVGTSpanElement.class, SVGTextElement.class,
674 };
675
676
677 private static final Map<String, JavaScriptConfiguration> CONFIGURATION_MAP_ = new WeakHashMap<>();
678
679
680
681
682
683 private JavaScriptConfiguration(final BrowserVersion browser) {
684 super(browser, Window.class);
685 }
686
687
688
689
690
691
692
693 @SuppressWarnings("PMD.SingletonClassReturningNewInstance")
694 public static synchronized JavaScriptConfiguration getInstance(final BrowserVersion browserVersion) {
695 if (browserVersion == null) {
696 throw new IllegalArgumentException("BrowserVersion must be provided");
697 }
698 JavaScriptConfiguration configuration = CONFIGURATION_MAP_.get(browserVersion.getNickname());
699
700 if (configuration == null) {
701 configuration = new JavaScriptConfiguration(browserVersion);
702 CONFIGURATION_MAP_.put(browserVersion.getNickname(), configuration);
703 }
704 return configuration;
705 }
706
707 @Override
708 protected Class<? extends HtmlUnitScriptable>[] getClasses() {
709 return CLASSES_;
710 }
711
712
713
714
715 public ClassConfiguration getWindowClassConfiguration() {
716 return getScopeConfiguration();
717 }
718 }