1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436
|
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
* Copyright (C) 2013-2024 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
enum PageOverlayType {
"view",
"document"
};
// These map to ResourceRequestCachePolicy.
enum CachePolicy {
"UseProtocolCachePolicy",
"ReloadIgnoringCacheData",
"ReturnCacheDataElseLoad",
"ReturnCacheDataDontLoad"
};
// FIXME: Strings in an enum should not have the name of the enum as a prefix.
enum ResourceLoadPriority {
"ResourceLoadPriorityVeryLow",
"ResourceLoadPriorityLow",
"ResourceLoadPriorityMedium",
"ResourceLoadPriorityHigh",
"ResourceLoadPriorityVeryHigh"
};
enum AutoFillButtonType {
"None",
"Contacts",
"Credentials",
"StrongPassword",
"CreditCard",
"Loading"
};
enum UserInterfaceLayoutDirection {
"LTR",
"RTL"
};
enum BaseWritingDirection {
"Natural",
"Ltr",
"Rtl"
};
enum EventThrottlingBehavior {
"responsive",
"unresponsive"
};
enum CompositingPolicy {
"normal",
"conservative"
};
[Conditional=VIDEO] enum PlaybackControlsPurpose {
"ControlsManager",
"NowPlaying"
};
[Conditional=VIDEO] enum MediaSessionState {
"Idle",
"Autoplaying",
"Playing",
"Paused",
"Interrupted"
};
enum ContentSizeCategory {
"L",
"XXXL"
};
enum TreeType {
"Tree",
"ShadowIncludingTree",
"ComposedTree"
};
[Conditional=WEBGL] enum SimulatedWebGLContextEvent {
"GPUStatusFailure",
"Timeout"
};
enum AudioSessionCategory {
"None",
"AmbientSound",
"SoloAmbientSound",
"MediaPlayback",
"RecordAudio",
"PlayAndRecord",
"AudioProcessing"
};
enum AudioSessionMode {
"Default",
"VideoChat",
"MoviePlayback"
};
enum RouteSharingPolicy {
"Default",
"LongFormAudio",
"Independent",
"LongFormVideo"
};
enum AutoplayPolicy {
"Default",
"Allow",
"AllowWithoutSound",
"Deny"
};
[Conditional=WEBGL] enum RequestedGPU {
"default",
"low-power",
"high-performance"
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
Conditional=VIDEO,
JSGenerateToJSObject,
] dictionary NowPlayingState {
DOMString title;
unrestricted double duration;
unrestricted double elapsedTime;
unsigned long long uniqueIdentifier;
boolean hasActiveSession;
boolean registeredAsNowPlayingApplication;
boolean haveEverRegisteredAsNowPlayingApplication;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
Conditional=VIDEO,
JSGenerateToJSObject,
] dictionary NowPlayingInfoArtwork {
DOMString src;
DOMString mimeType;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
Conditional=VIDEO,
JSGenerateToJSObject,
] dictionary NowPlayingMetadata {
DOMString title;
DOMString artist;
DOMString album;
DOMString sourceApplicationIdentifier;
NowPlayingInfoArtwork? artwork;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
Conditional=VIDEO,
JSGenerateToJSObject,
] dictionary MediaUsageState {
DOMString mediaURL;
boolean isPlaying;
boolean canShowControlsManager;
boolean canShowNowPlayingControls;
boolean isSuspended;
boolean isInActiveDocument;
boolean isFullscreen;
boolean isMuted;
boolean isMediaDocumentInMainFrame;
boolean isVideo;
boolean isAudio;
boolean hasVideo;
boolean hasAudio;
boolean hasRenderer;
boolean audioElementWithUserGesture;
boolean userHasPlayedAudioBefore;
boolean isElementRectMostlyInMainFrame;
boolean playbackPermitted;
boolean pageMediaPlaybackSuspended;
boolean isMediaDocumentAndNotOwnerElement;
boolean pageExplicitlyAllowsElementToAutoplayInline;
boolean requiresFullscreenForVideoPlaybackAndFullscreenNotPermitted;
boolean isVideoAndRequiresUserGestureForVideoRateChange;
boolean isAudioAndRequiresUserGestureForAudioRateChange;
boolean isVideoAndRequiresUserGestureForVideoDueToLowPowerMode;
boolean isVideoAndRequiresUserGestureForVideoDueToAggressiveThermalMitigation;
boolean noUserGestureRequired;
boolean requiresPlaybackAndIsNotPlaying;
boolean hasEverNotifiedAboutPlaying;
boolean outsideOfFullscreen;
boolean isLargeEnoughForMainContent;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
] dictionary FullscreenInsets {
double top;
double left;
double bottom;
double right;
};
enum HEVCParameterCodec {
"hev1",
"hvc1"
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
JSGenerateToJSObject,
JSGenerateToNativeObject
] dictionary HEVCParameterSet {
HEVCParameterCodec codec;
unsigned short generalProfileSpace;
unsigned short generalProfileIDC;
unsigned long generalProfileCompatibilityFlags;
octet generalTierFlag;
required FrozenArray<octet> generalConstraintIndicatorFlags;
unsigned short generalLevelIDC;
};
enum AV1ConfigurationProfile {
"Main",
"High",
"Professional"
};
enum AV1ConfigurationLevel {
"Level_2_0",
"Level_2_1",
"Level_2_2",
"Level_2_3",
"Level_3_0",
"Level_3_1",
"Level_3_2",
"Level_3_3",
"Level_4_0",
"Level_4_1",
"Level_4_2",
"Level_4_3",
"Level_5_0",
"Level_5_1",
"Level_5_2",
"Level_5_3",
"Level_6_0",
"Level_6_1",
"Level_6_2",
"Level_6_3",
"Level_7_0",
"Level_7_1",
"Level_7_2",
"Level_7_3"
};
enum AV1ConfigurationTier {
"Main",
"High"
};
enum AV1ConfigurationRange {
"VideoRange",
"FullRange"
};
[
JSGenerateToJSObject,
JSGenerateToNativeObject
] dictionary AV1CodecConfigurationRecord {
DOMString codecName;
AV1ConfigurationProfile profile;
AV1ConfigurationLevel level;
AV1ConfigurationTier tier;
octet bitDepth;
octet monochrome;
octet chromaSubsampling;
octet colorPrimaries;
octet transferCharacteristics;
octet matrixCoefficients;
AV1ConfigurationRange videoFullRangeFlag;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
JSGenerateToJSObject,
JSGenerateToNativeObject
] dictionary DoViParameterSet {
DOMString codecName;
unsigned short bitstreamProfileID;
unsigned short bitstreamLevelID;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
JSGenerateToJSObject,
] dictionary VPCodecConfigurationRecord {
DOMString codecName;
octet profile;
octet level;
octet bitDepth;
octet chromaSubsampling;
octet videoFullRangeFlag;
octet colorPrimaries;
octet transferCharacteristics;
octet matrixCoefficients;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
JSGenerateToJSObject,
] dictionary AcceleratedAnimation {
DOMString property;
double speed;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
JSGenerateToJSObject,
JSGenerateToNativeObject
] dictionary CookieData {
DOMString name;
DOMString value;
DOMString domain = "";
DOMString path = "";
double? expires = null;
boolean isHttpOnly = false;
boolean isSecure = false;
boolean isSession = false;
boolean isSameSiteLax = false;
boolean isSameSiteStrict = false;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
JSGenerateToJSObject,
] dictionary TextIndicatorInfo {
DOMRectReadOnly textBoundingRectInRootViewCoordinates;
DOMRectList textRectsInBoundingRectCoordinates;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
Conditional=ATTACHMENT_ELEMENT,
JSGenerateToJSObject,
] dictionary AttachmentThumbnailInfo {
unsigned long width;
unsigned long height;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
] dictionary TextIndicatorOptions {
boolean useBoundingRectAndPaintAllContentForComplexRanges = false;
boolean computeEstimatedBackgroundColor = false;
boolean respectTextColor = false;
boolean useUserSelectAllCommonAncestor = false;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
JSGenerateToJSObject,
] dictionary TextIteratorState {
DOMString text;
Range range;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
] dictionary ImageOverlayText {
required DOMString text;
required DOMPointReadOnly topLeft;
required DOMPointReadOnly topRight;
required DOMPointReadOnly bottomRight;
required DOMPointReadOnly bottomLeft;
boolean hasLeadingWhitespace = true;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
] dictionary ImageOverlayLine {
required DOMPointReadOnly topLeft;
required DOMPointReadOnly topRight;
required DOMPointReadOnly bottomRight;
required DOMPointReadOnly bottomLeft;
sequence<ImageOverlayText> children;
boolean hasTrailingNewline = true;
boolean isVertical = false;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
] dictionary ImageOverlayBlock {
required DOMString text;
required DOMPointReadOnly topLeft;
required DOMPointReadOnly topRight;
required DOMPointReadOnly bottomRight;
required DOMPointReadOnly bottomLeft;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
] dictionary ImageOverlayDataDetector {
required DOMPointReadOnly topLeft;
required DOMPointReadOnly topRight;
required DOMPointReadOnly bottomRight;
required DOMPointReadOnly bottomLeft;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
JSGenerateToJSObject,
] dictionary SelectorFilterHashCounts {
unsigned long ids;
unsigned long classes;
unsigned long tags;
unsigned long attributes;
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
JSGenerateToJSObject,
] dictionary PDFAnnotationRect {
double x;
double y;
double width;
double height;
};
typedef (FetchRequest or FetchResponse) FetchObject;
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
JSGenerateToJSObject,
] dictionary ImageBufferResourceLimits {
unsigned long long acceleratedImageBufferForCanvasCount;
unsigned long long acceleratedImageBufferForCanvasLimit;
unsigned long long globalAcceleratedImageBufferCount;
unsigned long long globalAcceleratedImageBufferLimit;
unsigned long long globalImageBufferForCanvasCount;
unsigned long long globalImageBufferForCanvasLimit;
unsigned long long imageBufferForCanvasCount;
unsigned long long imageBufferForCanvasLimit;
};
enum RenderingMode {
"Unaccelerated",
"Accelerated"
};
enum ContentsFormat {
"RGBA8",
#if defined(ENABLE_PIXEL_FORMAT_RGB10)
"RGBA10",
#endif
#if defined(ENABLE_PIXEL_FORMAT_RGBA16F)
"RGBA16F",
#endif
};
[
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
LegacyNoInterfaceObject,
] interface Internals {
DOMString address(Node node);
boolean nodeNeedsStyleRecalc(Node node);
DOMString styleChangeType(Node node);
DOMString description(any value);
undefined log(DOMString value);
// Animated image pausing testing.
boolean hasPausedImageAnimations(Element element);
undefined markFrontBufferVolatile(Element element);
boolean isFullyActive(Document document);
// Must be called on an element whose enclosingLayer() is self-painting.
boolean isPaintingFrequently(Element element);
undefined incrementFrequentPaintCounter(Element element);
undefined purgeFrontBuffer(Element element);
undefined purgeBackBuffer(Element element);
DOMString elementRenderTreeAsText(Element element);
boolean isPreloaded(DOMString url);
boolean isLoadingFromMemoryCache(DOMString url);
DOMString fetchResponseSource(FetchResponse response);
DOMString xhrResponseSource(XMLHttpRequest xhr);
boolean isSharingStyleSheetContents(HTMLLinkElement a, HTMLLinkElement b);
boolean isStyleSheetLoadingSubresources(HTMLLinkElement link);
undefined clearMemoryCache();
undefined pruneMemoryCacheToSize(long size);
undefined destroyDecodedDataForAllImages();
long memoryCacheSize();
undefined setOverrideCachePolicy(CachePolicy policy);
undefined setOverrideResourceLoadPriority(ResourceLoadPriority priority);
undefined setStrictRawResourceValidationPolicyDisabled(boolean disabled);
ResourceLoadPriority? getResourcePriority(DOMString url);
boolean isFetchObjectContextStopped(FetchObject object);
undefined clearBackForwardCache();
unsigned long backForwardCacheSize();
undefined preventDocumentFromEnteringBackForwardCache();
CSSStyleDeclaration computedStyleIncludingVisitedInfo(Element element);
Node ensureUserAgentShadowRoot(Element host);
Node shadowRoot(Element host);
DOMString shadowRootType(Node root);
DOMString userAgentPart(Element element);
undefined setUserAgentPart(Element element, [AtomString] DOMString part);
Node treeScopeRootNode(Node node);
Node parentTreeScope(Node node);
// Spatial Navigation testing
unsigned long lastSpatialNavigationCandidateCount();
readonly attribute unsigned long inflightBeaconsCount;
// CSS Animation testing.
boolean animationWithIdExists(DOMString id);
unsigned long numberOfActiveAnimations();
undefined suspendAnimations();
undefined resumeAnimations();
boolean animationsAreSuspended();
readonly attribute double animationsInterval;
// Web Animations testing.
sequence<AcceleratedAnimation> acceleratedAnimationsForElement(Element element);
unsigned long numberOfAnimationTimelineInvalidations();
double timeToNextAnimationTick(WebAnimation animation);
// For animations testing, we need a way to get at pseudo elements.
Element? pseudoElement(Element element, DOMString pseudoId);
double preferredRenderingUpdateInterval();
DOMString visiblePlaceholder(Element element);
undefined selectColorInColorChooser(HTMLInputElement element, DOMString colorValue);
sequence<[AtomString] DOMString> formControlStateOfPreviousHistoryItem();
undefined setFormControlStateOfPreviousHistoryItem(sequence<[AtomString] DOMString> values);
DOMRect absoluteLineRectFromPoint(long x, long y);
DOMRect absoluteCaretBounds();
boolean isCaretVisible();
// isCaretBlinkingSuspended() returns whether the frame selection of the context document
// is suspended, while the parameterized method returns the state for a particular document
// (such as an iFrame, for example).
boolean isCaretBlinkingSuspended();
boolean isCaretBlinkingSuspended(Document document);
[Conditional=ACCESSIBILITY_NON_BLINKING_CURSOR] undefined setPrefersNonBlinkingCursor(boolean enabled);
DOMRect boundingBox(Element element);
unsigned long inspectorGridOverlayCount();
unsigned long inspectorFlexOverlayCount();
DOMRectList inspectorHighlightRects();
unsigned long inspectorPaintRectCount();
unsigned long markerCountForNode(Node node, DOMString markerType);
Range? markerRangeForNode(Node node, DOMString markerType, unsigned long index);
DOMString markerDescriptionForNode(Node node, DOMString markerType, unsigned long index);
DOMString dumpMarkerRects(DOMString markerType);
undefined setMarkedTextMatchesAreHighlighted(boolean flag);
undefined invalidateFontCache();
undefined setScrollViewPosition(long x, long y);
// Like Element.scrollTo(), but without constaints, for testing rubber-banding.
undefined unconstrainedScrollTo(Element element, unrestricted double x, unrestricted double y);
// Scrolls the element by the given delta, approximating the async wheel event handling code path where available.
undefined scrollBySimulatingWheelEvent(Element element, unrestricted double deltaX, unrestricted double deltaY);
DOMRect layoutViewportRect();
DOMRect visualViewportRect();
undefined setViewIsTransparent(boolean trnasparent);
DOMString viewBaseBackgroundColor();
undefined setViewBaseBackgroundColor(DOMString colorValue);
undefined setUnderPageBackgroundColorOverride(DOMString colorValue);
DOMString documentBackgroundColor();
boolean displayP3Available();
undefined setPagination(DOMString mode, long gap, optional long pageLength = 0);
unsigned long long lineIndexAfterPageBreak(Element element);
DOMString configurationForViewport(unrestricted float devicePixelRatio, long deviceWidth, long deviceHeight, long availableWidth, long availableHeight);
boolean wasLastChangeUserEdit(Element textField);
boolean elementShouldAutoComplete(HTMLInputElement inputElement);
undefined setAutofilled(HTMLInputElement inputElement, boolean enabled);
undefined setAutofilledAndViewable(HTMLInputElement inputElement, boolean enabled);
undefined setAutofilledAndObscured(HTMLInputElement inputElement, boolean enabled);
undefined setAutofillButtonType(HTMLInputElement inputElement, AutoFillButtonType autoFillButtonType);
AutoFillButtonType autofillButtonType(HTMLInputElement inputElement);
AutoFillButtonType lastAutofillButtonType(HTMLInputElement inputElement);
sequence<DOMString> recentSearches(HTMLInputElement inputElement);
undefined setCanShowPlaceholder(Element element, boolean canShowPlaceholder);
Element insertTextPlaceholder(long width, long height);
undefined removeTextPlaceholder(Element element);
Range? rangeOfString(DOMString text, Range? referenceRange, sequence<DOMString> findOptions);
unsigned long countMatchesForText(DOMString text, sequence<DOMString> findOptions, DOMString markMatches);
unsigned long countFindMatches(DOMString text, sequence<DOMString> findOptions);
DOMString autofillFieldName(Element formControlElement);
boolean isSpellcheckDisabledExceptTextReplacement(HTMLInputElement inputElement);
undefined invalidateControlTints();
undefined scrollElementToRect(Element element, long x, long y, long w, long h);
Range? rangeFromLocationAndLength(Element scope, unsigned long rangeLocation, unsigned long rangeLength);
unsigned long locationFromRange(Element scope, Range range);
unsigned long lengthFromRange(Element scope, Range range);
DOMString rangeAsText(Range range);
DOMString rangeAsTextUsingBackwardsTextIterator(Range range);
Range subrange(Range range, unsigned long rangeLocation, unsigned long rangeLength);
Range? rangeForDictionaryLookupAtLocation(long x, long y);
Range? rangeOfStringNearLocation(Range range, DOMString text, long targetOffset);
sequence<TextIteratorState> statesOfTextIterator(Range range);
DOMString textFragmentDirectiveForRange(Range range);
undefined setDelegatesScrolling(boolean enabled);
unsigned long long lastSpellCheckRequestSequence();
unsigned long long lastSpellCheckProcessedSequence();
undefined advanceToNextMisspelling();
sequence<DOMString> userPreferredLanguages();
// This only overrides the languages inside the WebProcess, not the GPUProcess.
// To override the language more globally, please add something like this to
// your test instead:
// <!-- webkit-test-runner [ language=jp,fr ] -->
undefined setUserPreferredLanguages(sequence<DOMString> languages);
sequence<DOMString> userPreferredAudioCharacteristics();
undefined setUserPreferredAudioCharacteristic(DOMString characteristic);
unsigned long wheelEventHandlerCount();
unsigned long touchEventHandlerCount();
DOMRectList touchEventRectsForEvent(DOMString eventName);
DOMRectList passiveTouchEventListenerRects();
NodeList? nodesFromRect(Document document, long x, long y,
unsigned long topPadding, unsigned long rightPadding, unsigned long bottomPadding, unsigned long leftPadding,
boolean ignoreClipping, boolean allowShadowContent, boolean allowChildFrameContent);
// Calling parserMetaData() with no arguments gets the metadata for the script of the current scope.
DOMString parserMetaData(optional any func);
undefined updateEditorUINowIfScheduled();
readonly attribute boolean sentenceRetroCorrectionEnabled;
boolean hasSpellingMarker(long from, long length);
boolean hasGrammarMarker(long from, long length);
boolean hasAutocorrectedMarker(long from, long length);
boolean hasDictationAlternativesMarker(long from, long length);
boolean hasCorrectionIndicatorMarker(long from, long length);
#if defined(ENABLE_WRITING_TOOLS) && ENABLE_WRITING_TOOLS
boolean hasWritingToolsTextSuggestionMarker(long from, long length);
#endif
boolean hasTransparentContentMarker(long from, long length);
undefined setContinuousSpellCheckingEnabled(boolean enabled);
undefined setAutomaticQuoteSubstitutionEnabled(boolean enabled);
undefined setAutomaticLinkDetectionEnabled(boolean enabled);
undefined setAutomaticDashSubstitutionEnabled(boolean enabled);
undefined setAutomaticTextReplacementEnabled(boolean enabled);
undefined setAutomaticSpellingCorrectionEnabled(boolean enabled);
undefined setMarkerFor(DOMString markerTypeString, long from, long length, DOMString data);
undefined handleAcceptedCandidate(DOMString candidate, unsigned long location, unsigned long length);
undefined changeSelectionListType();
undefined changeBackToReplacedString(DOMString replacedString);
boolean isOverwriteModeEnabled();
undefined toggleOverwriteModeEnabled();
unsigned long numberOfScrollableAreas();
boolean isPageBoxVisible(long pageNumber);
unsigned long imageFrameIndex(HTMLImageElement element);
unsigned long imageFrameCount(HTMLImageElement element);
float imageFrameDurationAtIndex(HTMLImageElement element, unsigned long index);
undefined setImageFrameDecodingDuration(HTMLImageElement element, unrestricted float duration);
undefined resetImageAnimation(HTMLImageElement element);
boolean isImageAnimating(HTMLImageElement element);
[Conditional=ACCESSIBILITY_ANIMATION_CONTROL] undefined setImageAnimationEnabled(boolean enabled);
[Conditional=ACCESSIBILITY_ANIMATION_CONTROL] undefined resumeImageAnimation(HTMLImageElement element);
[Conditional=ACCESSIBILITY_ANIMATION_CONTROL] undefined pauseImageAnimation(HTMLImageElement element);
unsigned long imagePendingDecodePromisesCountForTesting(HTMLImageElement element);
undefined setClearDecoderAfterAsyncFrameRequestForTesting(HTMLImageElement element, boolean enabled);
unsigned long imageDecodeCount(HTMLImageElement element);
unsigned long imageBlankDrawCount(HTMLImageElement element);
DOMString imageLastDecodingOptions(HTMLImageElement element);
unsigned long imageCachedSubimageCreateCount(HTMLImageElement element);
unsigned long remoteImagesCountForTesting();
undefined setAsyncDecodingEnabledForTesting(HTMLImageElement element, boolean enabled);
undefined setForceUpdateImageDataEnabledForTesting(HTMLImageElement element, boolean enabled);
undefined setHeadroomForTesting(HTMLImageElement element, float headroom);
[Conditional=WEB_CODECS] boolean hasPendingActivity(WebCodecsVideoDecoder decoder);
undefined setGridMaxTracksLimit(unsigned long maxTracksLimit);
readonly attribute InternalSettings settings;
readonly attribute unsigned long workerThreadCount;
readonly attribute boolean areSVGAnimationsPaused;
double svgAnimationsInterval(SVGSVGElement element);
sequence<SVGSVGElement> allSVGSVGElements();
boolean testProcessIncomingSyncMessagesWhenWaitingForSyncReply();
undefined setResourceCachingDisabledByWebInspector(boolean disabled);
// Flags for layerTreeAsText.
const unsigned short LAYER_TREE_INCLUDES_VISIBLE_RECTS = 1;
const unsigned short LAYER_TREE_INCLUDES_TILE_CACHES = 2;
const unsigned short LAYER_TREE_INCLUDES_REPAINT_RECTS = 4;
const unsigned short LAYER_TREE_INCLUDES_PAINTING_PHASES = 8;
const unsigned short LAYER_TREE_INCLUDES_CONTENT_LAYERS = 16;
const unsigned short LAYER_TREE_INCLUDES_ACCELERATES_DRAWING = 32;
const unsigned short LAYER_TREE_INCLUDES_CLIPPING = 64;
const unsigned short LAYER_TREE_INCLUDES_BACKING_STORE_ATTACHED = 128;
const unsigned short LAYER_TREE_INCLUDES_ROOT_LAYER_PROPERTIES = 256;
const unsigned short LAYER_TREE_INCLUDES_EVENT_REGION = 512;
const unsigned short LAYER_TREE_INCLUDES_EXTENDED_COLOR = 1024;
const unsigned short LAYER_TREE_INCLUDES_DEVICE_SCALE = 2048;
DOMString layerTreeAsText(Document document, optional unsigned short flags = 0);
unsigned long long layerIDForElement(Element element);
sequence<unsigned long long> scrollingNodeIDForNode(optional Node? node = null);
// Flags for platformLayerTreeAsText.
const unsigned short PLATFORM_LAYER_TREE_DEBUG = 1;
const unsigned short PLATFORM_LAYER_TREE_IGNORES_CHILDREN = 2;
const unsigned short PLATFORM_LAYER_TREE_INCLUDE_MODELS = 4;
DOMString platformLayerTreeAsText(Element element, optional unsigned short flags = 0);
DOMString scrollbarOverlayStyle(optional Node? node = null);
boolean scrollbarUsingDarkAppearance(optional Node? node = null);
DOMString horizontalScrollbarState(optional Node? node = null);
DOMString verticalScrollbarState(optional Node? node = null);
DOMString scrollbarsControllerTypeForNode(optional Node? node = null);
DOMString scrollingStateTreeAsText();
DOMString scrollingTreeAsText();
boolean haveScrollingTree();
DOMString synchronousScrollingReasons();
DOMRectList nonFastScrollableRects();
DOMString repaintRectsAsText();
// These throw if the element does not have a compositing layer.
undefined setElementUsesDisplayListDrawing(Element element, boolean usesDisplayListDrawing);
undefined setElementTracksDisplayListReplay(Element element, boolean trackReplay);
// Flags for displayListForElement.
const unsigned short DISPLAY_LIST_INCLUDE_PLATFORM_OPERATIONS = 1;
const unsigned short DISPLAY_LIST_INCLUDE_RESOURCE_IDENTIFIERS = 2;
// Returns the recorded display list.
DOMString displayListForElement(Element element, optional unsigned short flags = 0);
// Returns the display list that was actually painted.
DOMString replayDisplayListForElement(Element element, optional unsigned short flags = 0);
undefined setForceUseGlyphDisplayListForTesting(boolean enabled);
DOMString cachedGlyphDisplayListsForTextNode(Node node, optional unsigned short flags = 0);
undefined clearGlyphDisplayListCacheForTesting();
undefined garbageCollectDocumentResources();
undefined insertAuthorCSS(DOMString css);
undefined insertUserCSS(DOMString css);
readonly attribute boolean isUnderMemoryWarning;
readonly attribute boolean isUnderMemoryPressure;
undefined beginSimulatedMemoryWarning();
undefined endSimulatedMemoryWarning();
undefined beginSimulatedMemoryPressure();
undefined endSimulatedMemoryPressure();
unsigned long numberOfIDBTransactions();
unsigned long scrollableAreaWidth(Node node);
unsigned long numberOfLiveNodes();
unsigned long numberOfLiveDocuments();
unsigned long referencingNodeCount(Document document);
undefined executeOpportunisticallyScheduledTasks();
unsigned long numberOfIntersectionObservers(Document document);
unsigned long numberOfResizeObservers(Document document);
WindowProxy? openDummyInspectorFrontend(DOMString url);
undefined closeDummyInspectorFrontend();
undefined setInspectorIsUnderTest(boolean isUnderTest);
// BaseAudioContext lifetime testing.
[Conditional=WEB_AUDIO] unsigned long long baseAudioContextIdentifier(BaseAudioContext context);
[Conditional=WEB_AUDIO] boolean isBaseAudioContextAlive(unsigned long long contextID);
DOMString counterValue(Element element);
long pageNumber(Element element, optional unrestricted float pageWidth = 800, optional unrestricted float pageHeight = 600);
sequence<DOMString> shortcutIconURLs();
long numberOfPages(optional unrestricted double pageWidthInPixels = 800, optional unrestricted double pageHeightInPixels = 600);
DOMString pageProperty(DOMString propertyName, long pageNumber);
DOMString pageSizeAndMarginsInPixels(long pageIndex, long width, long height, long marginTop, long marginRight, long marginBottom, long marginLeft);
float pageScaleFactor();
undefined setPageZoomFactor(unrestricted float zoomFactor);
undefined setTextZoomFactor(unrestricted float zoomFactor);
undefined setUseFixedLayout(boolean useFixedLayout);
undefined setFixedLayoutSize(long width, long height);
undefined setPrinting(long width, long height);
undefined setViewExposedRect(unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height);
undefined setHeaderHeight(unrestricted float height);
undefined setFooterHeight(unrestricted float height);
undefined setFullscreenInsets(FullscreenInsets insets);
undefined setFullscreenAutoHideDuration(double duration);
undefined setScreenContentsFormatsForTesting(sequence<ContentsFormat> contentsFormats);
[Conditional=VIDEO] boolean isChangingPresentationMode(HTMLVideoElement element);
[Conditional=VIDEO_PRESENTATION_MODE] undefined setMockVideoPresentationModeEnabled(boolean enabled);
undefined setApplicationCacheOriginQuota(unsigned long long quota);
undefined registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme);
undefined removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(DOMString scheme);
undefined registerDefaultPortForProtocol(unsigned short port, DOMString scheme);
MallocStatistics mallocStatistics();
TypeConversions typeConversions();
MemoryInfo memoryInfo();
sequence<DOMString> getReferencedFilePaths();
// These functions both reset the tracked repaint rects. They are intended to be used in the following order:
// startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints.
undefined startTrackingRepaints();
undefined stopTrackingRepaints();
undefined startTrackingLayerFlushes();
unsigned long layerFlushCount();
undefined setCanvasNoiseInjectionSalt(HTMLCanvasElement element, unsigned long long salt);
boolean doesCanvasHavePendingCanvasNoiseInjection(HTMLCanvasElement element);
// Query if a timer is currently throttled, to debug timer throttling.
boolean isTimerThrottled(long timerHandle);
DOMString requestAnimationFrameThrottlingReasons();
boolean areTimersThrottled();
undefined setLowPowerModeEnabled(boolean enabled);
undefined setAggressiveThermalMitigationEnabled(boolean enabled);
undefined setOutsideViewportThrottlingEnabled(boolean enabled);
readonly attribute double requestAnimationFrameInterval;
readonly attribute boolean scriptedAnimationsAreSuspended;
// Override the behavior of WebPage::eventThrottlingDelay(), which only affects iOS.
attribute EventThrottlingBehavior? eventThrottlingBehaviorOverride;
undefined startTrackingStyleRecalcs();
unsigned long styleRecalcCount();
readonly attribute unsigned long lastStyleUpdateSize;
undefined startTrackingLayoutUpdates();
unsigned long layoutUpdateCount();
undefined startTrackingRenderLayerPositionUpdates();
unsigned long renderLayerPositionUpdateCount();
undefined startTrackingCompositingUpdates();
unsigned long compositingUpdateCount();
undefined startTrackingRenderingUpdates();
unsigned long renderingUpdateCount();
attribute CompositingPolicy? compositingPolicyOverride;
undefined updateLayoutAndStyleForAllFrames();
// |node| should be Document, HTMLIFrameElement, or unspecified.
// If |node| is an HTMLIFrameElement, it assumes node.contentDocument is
// specified without security checks. Unspecified or null means this document.
undefined updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(optional Node? node = null);
// Returns a string with information about the mouse cursor used at the specified client location.
DOMString getCurrentCursorInfo();
DOMString markerTextForListItem(Element element);
DOMString toolTipFromElement(Element element);
SerializedScriptValue deserializeBuffer(ArrayBuffer buffer);
ArrayBuffer serializeObject(SerializedScriptValue object);
boolean isFromCurrentWorld(any obj);
any evaluateInWorldIgnoringException(DOMString name, DOMString source);
undefined setUsesOverlayScrollbars(boolean enabled);
undefined forceAXObjectCacheUpdate();
undefined forceReload(boolean endToEnd);
undefined reloadExpiredOnly();
undefined enableFixedWidthAutoSizeMode(boolean enabled, long width, long height);
undefined enableSizeToContentAutoSizeMode(boolean enabled, long width, long height);
[Conditional=VIDEO] sequence<DOMString> mediaResponseSources(HTMLMediaElement media);
[Conditional=VIDEO] sequence<DOMString> mediaResponseContentRanges(HTMLMediaElement media);
[Conditional=VIDEO] undefined simulateAudioInterruption(HTMLMediaElement element);
[Conditional=VIDEO] boolean mediaElementHasCharacteristic(HTMLMediaElement element, DOMString characteristic);
[Conditional=VIDEO] undefined beginSimulatedHDCPError(HTMLMediaElement media);
[Conditional=VIDEO] undefined endSimulatedHDCPError(HTMLMediaElement media);
[Conditional=VIDEO] boolean mediaPlayerRenderingCanBeAccelerated(HTMLMediaElement media);
[Conditional=VIDEO] boolean elementShouldBufferData(HTMLMediaElement media);
[Conditional=VIDEO] DOMString elementBufferingPolicy(HTMLMediaElement media);
[Conditional=VIDEO] undefined setMediaElementBufferingPolicy(HTMLMediaElement element, DOMString policy);
[Conditional=VIDEO] double privatePlayerVolume(HTMLMediaElement media);
[Conditional=VIDEO] boolean privatePlayerMuted(HTMLMediaElement media);
[Conditional=VIDEO] boolean isMediaElementHidden(HTMLMediaElement media);
[Conditional=VIDEO] undefined setOverridePreferredDynamicRangeMode(HTMLMediaElement media, DOMString mode);
[Conditional=VIDEO] double elementEffectivePlaybackRate(HTMLMediaElement media);
[Conditional=VIDEO] undefined enableGStreamerHolePunching(HTMLVideoElement element);
undefined setIsPlayingToBluetoothOverride(optional boolean? isPlaying = null);
[Conditional=LEGACY_ENCRYPTED_MEDIA] undefined initializeMockCDM();
[Conditional=ENCRYPTED_MEDIA] MockCDMFactory registerMockCDM();
undefined enableMockMediaCapabilities();
[Conditional=SPEECH_SYNTHESIS] undefined enableMockSpeechSynthesizer();
[Conditional=SPEECH_SYNTHESIS] undefined simulateSpeechSynthesizerVoiceListChange();
[Conditional=SPEECH_SYNTHESIS] undefined enableMockSpeechSynthesizerForMediaElement(HTMLMediaElement element);
[Conditional=SPEECH_SYNTHESIS] undefined setSpeechUtteranceDuration(double duration);
[Conditional=SPEECH_SYNTHESIS] readonly attribute unsigned long minimumExpectedVoiceCount;
DOMString getImageSourceURL(Element element);
[Conditional=VIDEO] DOMString captionsStyleSheetOverride();
[Conditional=VIDEO] undefined setCaptionsStyleSheetOverride(DOMString override);
[Conditional=VIDEO] undefined setPrimaryAudioTrackLanguageOverride(DOMString language);
[Conditional=VIDEO] undefined setCaptionDisplayMode(DOMString mode);
[Conditional=VIDEO] TextTrackCueGeneric createGenericCue(double startTime, double endTime, DOMString text);
[Conditional=VIDEO] DOMString textTrackBCP47Language(TextTrack track);
[Conditional=VIDEO] TimeRanges createTimeRanges(Float32Array startTimes, Float32Array
endTimes);
[Conditional=VIDEO] unrestricted double closestTimeToTimeRanges(unrestricted double time, TimeRanges ranges);
boolean isSelectPopupVisible(HTMLSelectElement element);
DOMRect selectionBounds();
StaticRange? selectedRange();
undefined setSelectionWithoutValidation(Node baseNode, unsigned long baseOffset, Node? extentNode, unsigned long extentOffset);
undefined setSelectionFromNone();
[Conditional=MEDIA_SOURCE] undefined initializeMockMediaSource();
[Conditional=MEDIA_SOURCE] Promise<sequence<DOMString>> bufferedSamplesForTrackId(SourceBuffer buffer, [AtomString] DOMString trackId);
[Conditional=MEDIA_SOURCE] Promise<undefined> setMaximumSourceBufferSize(SourceBuffer buffer, unsigned long long maximumSize);
[Conditional=MEDIA_SOURCE] Promise<sequence<DOMString>> enqueuedSamplesForTrackID(SourceBuffer buffer, [AtomString] DOMString trackID);
[Conditional=MEDIA_SOURCE] undefined setShouldGenerateTimestamps(SourceBuffer buffer, boolean flag);
[Conditional=MEDIA_SOURCE] double minimumUpcomingPresentationTimeForTrackID(SourceBuffer buffer, [AtomString] DOMString trackID);
[Conditional=MEDIA_SOURCE] undefined setMaximumQueueDepthForTrackID(SourceBuffer buffer, [AtomString] DOMString trackID, unsigned long maxQueueDepth);
[Conditional=MEDIA_SOURCE] unsigned long evictableSize(SourceBuffer buffer);
[Conditional=VIDEO] undefined beginMediaSessionInterruption(DOMString interruptionType);
[Conditional=VIDEO] undefined endMediaSessionInterruption(DOMString flags);
[Conditional=VIDEO] undefined applicationWillBecomeInactive();
[Conditional=VIDEO] undefined applicationDidBecomeActive();
[Conditional=VIDEO] undefined applicationWillEnterForeground(optional boolean suspendedUnderLock = false);
[Conditional=VIDEO] undefined applicationDidEnterBackground(optional boolean suspendedUnderLock = false);
[Conditional=VIDEO] undefined setMediaSessionRestrictions(DOMString mediaType, DOMString restrictions);
[Conditional=VIDEO] DOMString mediaSessionRestrictions(DOMString mediaType);
[Conditional=VIDEO] undefined setMediaElementRestrictions(HTMLMediaElement element, DOMString restrictions);
[Conditional=WEB_AUDIO] undefined setAudioContextRestrictions(AudioContext context, DOMString restrictions);
[Conditional=VIDEO] undefined postRemoteControlCommand(DOMString command, optional unrestricted float argument = 0);
[Conditional=VIDEO] undefined activeAudioRouteDidChange(boolean shouldPause);
[Conditional=VIDEO] undefined beginAudioSessionInterruption();
[Conditional=VIDEO] undefined endAudioSessionInterruption();
[Conditional=VIDEO] undefined clearAudioSessionInterruptionFlag();
[Conditional=VIDEO] undefined suspendAllMediaBuffering();
[Conditional=VIDEO] undefined suspendAllMediaPlayback();
[Conditional=VIDEO] undefined resumeAllMediaPlayback();
[Conditional=WIRELESS_PLAYBACK_TARGET] undefined setMockMediaPlaybackTargetPickerEnabled(boolean enabled);
[Conditional=WIRELESS_PLAYBACK_TARGET] undefined setMockMediaPlaybackTargetPickerState(DOMString deviceName, DOMString deviceState);
[Conditional=WIRELESS_PLAYBACK_TARGET] undefined mockMediaPlaybackTargetPickerDismissPopup();
[Conditional=MEDIA_RECORDER] undefined setCustomPrivateRecorderCreator();
readonly attribute boolean isMonitoringWirelessRoutes;
[Conditional=WEB_AUDIO] undefined useMockAudioDestinationCocoa();
[Conditional=WEB_RTC] undefined emulateRTCPeerConnectionPlatformEvent(RTCPeerConnection connection, DOMString action);
[Conditional=WEB_RTC] undefined useMockRTCPeerConnectionFactory(DOMString testCase);
[Conditional=WEB_RTC] undefined setICECandidateFiltering(boolean enabled);
[Conditional=WEB_RTC] undefined setEnumeratingAllNetworkInterfacesEnabled(boolean enabled);
[Conditional=WEB_RTC] undefined stopPeerConnection(RTCPeerConnection connection);
[Conditional=WEB_RTC] undefined clearPeerConnectionFactory();
[Conditional=WEB_RTC] undefined setEnableWebRTCEncryption(boolean enabled);
[Conditional=VIDEO] undefined simulateSystemSleep();
[Conditional=VIDEO] undefined simulateSystemWake();
[Conditional=VIDEO] boolean elementIsBlockingDisplaySleep(HTMLMediaElement element);
[Conditional=VIDEO] boolean isPlayerVisibleInViewport(HTMLMediaElement element);
[Conditional=VIDEO] boolean isPlayerMuted(HTMLMediaElement element);
[Conditional=VIDEO] boolean isPlayerPaused(HTMLMediaElement element);
MockPageOverlay installMockPageOverlay(PageOverlayType type);
DOMString pageOverlayLayerTreeAsText(optional unsigned short flags = 0);
undefined setPageMuted(DOMString mutedState);
DOMString pageMediaState();
undefined setPageDefersLoading(boolean defersLoading);
boolean pageDefersLoading();
undefined grantUniversalAccess();
undefined disableCORSForURL(DOMString url);
File? createFile(DOMString url);
Promise<File> asyncCreateFile(DOMString url);
DOMString createTemporaryFile(DOMString name, DOMString contents);
undefined queueMicroTask(long testNumber);
boolean testPreloaderSettingViewport();
[Conditional=CONTENT_FILTERING] readonly attribute MockContentFilterSettings mockContentFilterSettings;
DOMString scrollSnapOffsets(Element element);
boolean isScrollSnapInProgress(Element element);
undefined setPlatformMomentumScrollingPredictionEnabled(boolean enabled);
DOMString pathStringWithShrinkWrappedRects(sequence<double> rectComponents, double radius);
[Conditional=VIDEO] DOMString getCurrentMediaControlsStatusForElement(HTMLMediaElement element);
[Conditional=VIDEO] undefined setMediaControlsMaximumRightContainerButtonCountOverride(HTMLMediaElement element, unsigned long count);
[Conditional=VIDEO] undefined setMediaControlsHidePlaybackRates(HTMLMediaElement element, boolean hidePlaybackRates);
DOMString userVisibleString(DOMURL url);
float pageMediaVolume();
undefined setPageMediaVolume(float volume);
undefined setShowAllPlugins(boolean showAll);
[CallWith=CurrentGlobalObject] any cloneArrayBuffer(any buffer, any srcByteOffset, any byteLength);
boolean isReadableStreamDisturbed(ReadableStream stream);
DOMString resourceLoadStatisticsForURL(DOMURL url);
undefined setTrackingPreventionEnabled(boolean enable);
undefined setCanShowModalDialogOverride(boolean allow);
DOMString composedTreeAsText(Node parent);
boolean isProcessingUserGesture();
double lastHandledUserGestureTimestamp();
undefined withUserGesture(VoidCallback callback);
undefined withoutUserGesture(VoidCallback callback);
boolean userIsInteracting();
boolean hasTransientActivation();
boolean hasHistoryActionActivation();
GCObservation? observeGC(any observed);
undefined setUserInterfaceLayoutDirection(UserInterfaceLayoutDirection userInterfaceLayoutDirection);
undefined setBaseWritingDirection(BaseWritingDirection direction);
boolean userPrefersContrast();
boolean userPrefersReducedMotion();
undefined reportBacktrace();
[Conditional=POINTER_LOCK] boolean pageHasPendingPointerLock();
[Conditional=POINTER_LOCK] boolean pageHasPointerLock();
sequence<DOMString> accessKeyModifiers();
undefined setQuickLookPassword(DOMString password);
[CallWith=CurrentDocument] undefined setAsRunningUserScripts();
undefined disableTileSizeUpdateDelay();
undefined setSpeculativeTilingDelayDisabledForTesting(boolean disabled);
[Conditional=WEBGL] undefined simulateEventForWebGLContext(SimulatedWebGLContextEvent event, WebGLRenderingContext context);
[Conditional=WEBGL] RequestedGPU requestedGPU(WebGLRenderingContext context);
undefined setPageVisibility(boolean isVisible);
undefined setPageIsFocused(boolean isFocused);
undefined setPageIsFocusedAndActive(boolean isFocused);
undefined setPageIsInWindow(boolean isInWindow);
boolean isPageActive();
[Conditional=WEB_RTC] undefined setH264HardwareEncoderAllowed(boolean allowed);
[Conditional=WEB_RTC] undefined applyRotationForOutgoingVideoSources(RTCPeerConnection connection);
[Conditional=WEB_RTC] undefined setWebRTCH265Support(boolean allowed);
[Conditional=WEB_RTC] undefined setWebRTCVP9Support(boolean supportVP9Profile0, boolean supportVP9Profile2);
[Conditional=WEB_RTC] undefined disableWebRTCHardwareVP9();
[Conditional=WEB_RTC] boolean isSupportingVP9HardwareDecoder();
[Conditional=WEB_RTC] Promise<boolean> isVP9HardwareDecoderUsed(RTCPeerConnection connection);
[Conditional=WEB_RTC] undefined setSFrameCounter(RTCRtpSFrameTransform transform, DOMString counter);
[Conditional=WEB_RTC] unsigned long long sframeCounter(RTCRtpSFrameTransform transform);
[Conditional=WEB_RTC] unsigned long long sframeKeyId(RTCRtpSFrameTransform transform);
[Conditional=MEDIA_STREAM] undefined setMockAudioTrackChannelNumber(MediaStreamTrack track, unsigned short count);
[Conditional=MEDIA_STREAM] undefined setShouldInterruptAudioOnPageVisibilityChange(boolean shouldInterrupt);
[Conditional=MEDIA_STREAM] undefined setCameraMediaStreamTrackOrientation(MediaStreamTrack track, short orientation);
[Conditional=MEDIA_STREAM] undefined observeMediaStreamTrack(MediaStreamTrack track);
[Conditional=MEDIA_STREAM] Promise<short> mediaStreamTrackVideoFrameRotation();
[Conditional=MEDIA_STREAM] readonly attribute unsigned long trackAudioSampleCount;
[Conditional=MEDIA_STREAM] readonly attribute unsigned long trackVideoSampleCount;
[Conditional=MEDIA_STREAM] undefined delayMediaStreamTrackSamples(MediaStreamTrack track, float delay);
[Conditional=MEDIA_STREAM] undefined setMediaStreamTrackMuted(MediaStreamTrack track, boolean muted);
[Conditional=MEDIA_STREAM] undefined removeMediaStreamTrack(MediaStream stream, MediaStreamTrack track);
[Conditional=MEDIA_STREAM] undefined simulateMediaStreamTrackCaptureSourceFailure(MediaStreamTrack track);
[Conditional=MEDIA_STREAM] undefined setMediaStreamTrackIdentifier(MediaStreamTrack track, DOMString identifier);
[Conditional=MEDIA_STREAM] undefined setMediaStreamSourceInterrupted(MediaStreamTrack track, boolean interrupted);
[Conditional=MEDIA_STREAM] boolean isMediaStreamSourceInterrupted(MediaStreamTrack track);
[Conditional=MEDIA_STREAM] boolean isMediaStreamSourceEnded(MediaStreamTrack track);
[Conditional=MEDIA_STREAM] boolean isMockRealtimeMediaSourceCenterEnabled();
[Conditional=MEDIA_STREAM] boolean shouldAudioTrackPlay(AudioTrack track);
[Conditional=MEDIA_STREAM] DOMString mediaStreamTrackPersistentId(MediaStreamTrack track);
[Conditional=WEB_RTC] readonly attribute DOMString rtcNetworkInterfaceName;
boolean isHardwareVP9DecoderExpected();
DOMString documentIdentifier(Document document);
boolean isDocumentAlive(DOMString documentIdentifier);
unsigned long long messagePortIdentifier(MessagePort port);
boolean isMessagePortAlive(unsigned long long messagePortIdentifier);
readonly attribute unsigned long long storageAreaMapCount;
unsigned long long elementIdentifier(Element element);
boolean isElementAlive(unsigned long long elementIdentifier);
unsigned long long pageIdentifier(Document document);
boolean isAnyWorkletGlobalScopeAlive();
readonly attribute long processIdentifier;
DOMString serviceWorkerClientInternalIdentifier(Document document);
Promise<undefined> storeRegistrationsOnDisk();
Promise<double> sendH2Ping(DOMString url);
Promise<undefined> clearCacheStorageMemoryRepresentation();
Promise<DOMString> cacheStorageEngineRepresentation();
undefined setResponseSizeWithPadding(FetchResponse response, unsigned long long size);
unsigned long long responseSizeWithPadding(FetchResponse response);
DOMString responseNetworkLoadMetricsProtocol(FetchResponse response);
DOMString blobInternalURL(Blob blob);
Promise<boolean> isBlobInternalURLRegistered(DOMString url);
undefined updateQuotaBasedOnSpaceUsage();
undefined setConsoleMessageListener(StringCallback? callback);
readonly attribute boolean supportsAudioSession;
AudioSessionCategory audioSessionCategory();
AudioSessionMode audioSessionMode();
[Conditional=VIDEO] AudioSessionCategory categoryAtMostRecentPlayback(HTMLMediaElement element);
[Conditional=VIDEO] AudioSessionMode modeAtMostRecentPlayback(HTMLMediaElement element);
RouteSharingPolicy routeSharingPolicy();
double preferredAudioBufferSize();
double currentAudioBufferSize();
boolean audioSessionActive();
Promise<boolean> hasServiceWorkerRegistration(DOMString scopeURL);
Promise<undefined> terminateServiceWorker(ServiceWorker worker);
Promise<undefined> whenServiceWorkerIsTerminated(ServiceWorker worker);
undefined terminateWebContentProcess();
#if defined(ENABLE_APPLE_PAY) && ENABLE_APPLE_PAY
[CallWith=CurrentDocument, Conditional=APPLE_PAY] readonly attribute MockPaymentCoordinator mockPaymentCoordinator;
#endif
boolean isSystemPreviewLink(Element element);
boolean isSystemPreviewImage(Element element);
[Conditional=IMAGE_ANALYSIS] readonly attribute Element? textRecognitionCandidate;
[Conditional=IMAGE_ANALYSIS] undefined requestTextRecognition(Element element, VoidCallback callback);
undefined installImageOverlay(Element element, sequence<ImageOverlayLine> lines, optional sequence<ImageOverlayBlock> blocks = [], optional sequence<ImageOverlayDataDetector> dataDetectors = []);
readonly attribute boolean hasActiveDataDetectorHighlight;
boolean usingAppleInternalSDK();
boolean usingGStreamer();
undefined postTask(VoidCallback callback);
[CallWith=CurrentScriptExecutionContext] undefined queueTask(DOMString source, VoidCallback callback);
[CallWith=CurrentDocument] undefined queueTaskToQueueMicrotask(DOMString source, VoidCallback callback);
boolean hasSameEventLoopAs(WindowProxy windowProxy);
DOMString windowLocationHost(DOMWindow window);
undefined markContextAsInsecure();
undefined setMaxCanvasArea(unsigned long size);
[Conditional=VIDEO] readonly attribute NowPlayingMetadata? nowPlayingMetadata;
[Conditional=VIDEO] readonly attribute NowPlayingState nowPlayingState;
[Conditional=VIDEO] boolean elementIsActiveNowPlayingSession(HTMLMediaElement element);
[Conditional=VIDEO] HTMLMediaElement bestMediaElementForRemoteControls(PlaybackControlsPurpose purpose);
[Conditional=VIDEO] MediaSessionState mediaSessionState(HTMLMediaElement element);
[Conditional=VIDEO] MediaUsageState mediaUsageState(HTMLMediaElement element);
[Conditional=VIDEO] boolean elementShouldDisplayPosterImage(HTMLVideoElement element);
[Conditional=VIDEO] readonly attribute unsigned long mediaElementCount;
[Conditional=VIDEO] undefined setMediaElementVolumeLocked(HTMLMediaElement element, boolean volumeLocked);
[Conditional=SPEECH_SYNTHESIS] SpeechSynthesisUtterance speechSynthesisUtteranceForCue(VTTCue cue);
[Conditional=SPEECH_SYNTHESIS] VTTCue mediaElementCurrentlySpokenCue(HTMLMediaElement media);
DOMString ongoingLoadsDescriptions();
undefined setCaptureExtraNetworkLoadMetricsEnabled(boolean value);
undefined reloadWithoutContentExtensions();
undefined disableContentExtensionsChecks();
unsigned long pluginCount();
unsigned long pluginScrollPositionX(Element element);
unsigned long pluginScrollPositionY(Element element);
undefined notifyResourceLoadObserver();
unsigned long primaryScreenDisplayID();
boolean capsLockIsOn();
HEVCParameterSet? parseHEVCCodecParameters(DOMString codecParameters);
DOMString createHEVCCodecParametersString(HEVCParameterSet parameters);
DoViParameterSet? parseDoViCodecParameters(DOMString codecParameters);
DOMString createDoViCodecParametersString(DoViParameterSet parameters);
VPCodecConfigurationRecord? parseVPCodecParameters(DOMString codecParameters);
AV1CodecConfigurationRecord? parseAV1CodecParameters(DOMString codecParameters);
DOMString createAV1CodecParametersString(AV1CodecConfigurationRecord parameters);
boolean validateAV1ConfigurationRecord(DOMString codecParameters);
boolean validateAV1PerLevelConstraints(DOMString codecParameters, VideoConfiguration configuration);
undefined setCookie(CookieData cookieData);
sequence<CookieData> getCookies();
undefined setAlwaysAllowLocalWebarchive(boolean alwaysAllowLocalWebarchive);
undefined processWillSuspend();
undefined processDidResume();
undefined testDictionaryLogging();
undefined setMaximumIntervalForUserGestureForwardingForFetch(double interval);
undefined setTransientActivationDuration(double seconds);
undefined setIsPlayingToAutomotiveHeadUnit(boolean value);
TextIndicatorInfo textIndicatorForRange(Range range, TextIndicatorOptions options);
undefined addPrefetchLoadEventListener(HTMLLinkElement link, EventListener? callback);
[Conditional=WEB_AUTHN] undefined setMockWebAuthenticationConfiguration(MockWebAuthenticationConfiguration configuration);
InternalsMapLike createInternalsMapLike();
InternalsSetLike createInternalsSetLike();
DOMString highlightPseudoElementColor([AtomString] DOMString highlightName, Element element);
boolean hasSandboxMachLookupAccessToGlobalName(DOMString process, DOMString service);
boolean hasSandboxMachLookupAccessToXPCServiceName(DOMString process, DOMString service);
boolean hasSandboxIOKitOpenAccessToClass(DOMString process, DOMString ioKitClass);
boolean hasSandboxUnixSyscallAccess(DOMString process, unsigned long syscall);
DOMString systemColorForCSSValue(DOMString cssValue, boolean useDarkModeAppearance, boolean useElevatedUserInterfaceLevel);
DOMString focusRingColor();
boolean systemHasBattery();
undefined setSystemHasBatteryForTesting(boolean hasBattery);
undefined setSystemHasACForTesting(boolean hasAC);
undefined setHardwareVP9DecoderDisabledForTesting(boolean disabled);
undefined setVP9DecoderDisabledForTesting(boolean disabled);
undefined setVP9ScreenSizeAndScaleForTesting(double width, double height, double scale);
long readPreferenceInteger(DOMString domain, DOMString key);
DOMString encodedPreferenceValue(DOMString domain, DOMString key);
boolean supportsPictureInPicture();
boolean isRemoteUIAppForAccessibility();
unsigned long createSleepDisabler(DOMString reason, boolean display);
boolean destroySleepDisabler(unsigned long identifier);
[Conditional=APP_HIGHLIGHTS] readonly attribute sequence<DOMString> appHighlightContextMenuItemTitles;
[Conditional=APP_HIGHLIGHTS] unsigned long numberOfAppHighlights();
#if defined(ENABLE_WEBXR) && ENABLE_WEBXR
[Conditional=WEBXR] readonly attribute WebXRTest xrTest;
#endif
[Conditional=ENCRYPTED_MEDIA] unsigned long mediaKeysInternalInstanceObjectRefCount(MediaKeys mediaKeys);
[Conditional=ENCRYPTED_MEDIA] unsigned long mediaKeySessionInternalInstanceSessionObjectRefCount(MediaKeySession session);
undefined setContentSizeCategory(ContentSizeCategory category);
[Conditional=ATTACHMENT_ELEMENT] AttachmentThumbnailInfo attachmentThumbnailInfo(HTMLAttachmentElement element);
[Conditional=ATTACHMENT_ELEMENT, Conditional=SERVICE_CONTROLS] boolean hasImageControls(HTMLImageElement element);
[Conditional=MEDIA_SESSION] double currentMediaSessionPosition(MediaSession session);
[Conditional=MEDIA_SESSION] undefined sendMediaSessionAction(MediaSession session, MediaSessionActionDetails actionDetails);
[Conditional=MEDIA_SESSION] Promise<ImageData> loadArtworkImage(DOMString url);
[Conditional=MEDIA_SESSION] sequence<DOMString> platformSupportedCommands();
[Conditional=MEDIA_SESSION_COORDINATOR, CallWith=CurrentScriptExecutionContext] undefined registerMockMediaSessionCoordinator(StringCallback callback);
[Conditional=MEDIA_SESSION_COORDINATOR] undefined setMockMediaSessionCoordinatorCommandsShouldFail(boolean shouldFail);
DOMString treeOrder(Node a, Node b, optional TreeType tree = "Tree");
DOMString treeOrderBoundaryPoints(Node containerA, unsigned long offsetA, Node containerB, unsigned long offsetB, optional TreeType tree = "Tree");
boolean rangeContainsNode(AbstractRange range, Node node, optional TreeType tree = "Tree");
boolean rangeContainsRange(AbstractRange outerRange, AbstractRange innerRange, optional TreeType tree = "Tree");
boolean rangeContainsBoundaryPoint(AbstractRange outerRange, Node container, unsigned long offset, optional TreeType tree = "Tree");
boolean rangeIntersectsNode(AbstractRange range, Node node, optional TreeType tree = "Tree");
boolean rangeIntersectsRange(AbstractRange outerRange, AbstractRange innerRange, optional TreeType tree = "Tree");
undefined systemBeep();
DOMString dumpStyleResolvers();
undefined setDocumentAutoplayPolicy(Document document, AutoplayPolicy policy);
undefined retainTextIteratorForDocumentContent();
PushSubscription createPushSubscription(USVString endpoint, EpochTimeStamp? expirationTime, ArrayBuffer serverVAPIDPublicKey, ArrayBuffer clientECDHPublicKey, ArrayBuffer auth);
[Conditional=ARKIT_INLINE_PREVIEW_MAC] Promise<sequence<DOMString>> modelInlinePreviewUUIDs();
[Conditional=ARKIT_INLINE_PREVIEW_MAC] DOMString modelInlinePreviewUUIDForModelElement(HTMLModelElement modelElement);
boolean hasSleepDisabler();
undefined acceptTypedArrays(Int32Array target);
boolean consumeTransientActivation();
boolean consumeHistoryActionUserActivation();
SelectorFilterHashCounts selectorFilterHashCounts(DOMString selector);
undefined setHistoryTotalStateObjectPayloadLimitOverride(unsigned long limit);
readonly attribute boolean isVisuallyNonEmpty;
boolean isUsingUISideCompositing();
DOMString getComputedLabel(Element element);
DOMString getComputedRole(Element element);
readonly attribute boolean hasScopeBreakingHasSelectors;
sequence<PDFAnnotationRect> pdfAnnotationRectsForTesting(Element element);
undefined setPDFTextAnnotationValueForTesting(Element element, unsigned long pageIndex, unsigned long annotationIndex, DOMString value);
undefined registerPDFTest(VoidCallback callback, Element element);
undefined setPDFDisplayModeForTesting(Element element, DOMString mode);
undefined unlockPDFDocumentForTesting(Element element, DOMString password);
boolean sendEditingCommandToPDFForTesting(Element element, DOMString commandName, optional DOMString argument = "");
readonly attribute DOMString defaultSpatialTrackingLabel;
[Conditional=VIDEO] boolean isEffectivelyMuted(HTMLMediaElement element);
RenderingMode? getEffectiveRenderingModeOfNewlyCreatedAcceleratedImageBuffer();
Promise<ImageBufferResourceLimits> getImageBufferResourceLimits();
undefined setTopDocumentURLForQuirks(DOMString urlString);
#if defined(ENABLE_CONTENT_EXTENSIONS) && ENABLE_CONTENT_EXTENSIONS
undefined setResourceMonitorNetworkUsageThreshold(unsigned long threshold, double randomness);
attribute boolean shouldSkipResourceMonitorThrottling;
#endif
};
|