Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Dec 1, 2024
2 parents a20741f + 5c8281f commit 173edef
Show file tree
Hide file tree
Showing 1,907 changed files with 29,093 additions and 17,803 deletions.
6 changes: 4 additions & 2 deletions JSTests/wasm/stress/try-and-block-with-v128-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ if (globalThis.callerIsBBQOrOMGCompiled) {
let bytes = read(filename, 'binary');
return WebAssembly.instantiate(bytes, importObject, 'x');
}
const log = debug;
const report = $.agent.report;
const verbose = false;
const nullLog = function () { }
const log = verbose ? debug : nullLog;
const report = verbose ? $.agent.report : nullLog;
const isJIT = callerIsBBQOrOMGCompiled;
tools = {log, report, isJIT, instantiate: instantiateJsc};
} else {
Expand Down
44 changes: 9 additions & 35 deletions LayoutTests/TestExpectations
Original file line number Diff line number Diff line change
Expand Up @@ -922,12 +922,6 @@ imported/w3c/web-platform-tests/html/rendering/replaced-elements/attributes-for-
webkit.org/b/252594 imported/w3c/web-platform-tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/video-inline-size-containment-no-crash.html [ Skip ]
imported/w3c/web-platform-tests/html/rendering/replaced-elements/embedded-content/cross-domain-iframe.sub.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/html/rendering/replaced-elements/embedded-content/tall-cross-domain-iframe-in-scrolled.sub.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/html/rendering/the-details-element/details-display-type-001.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/html/rendering/the-details-element/details-pseudo-elements-001.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/html/rendering/the-details-element/details-pseudo-elements-002.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/html/rendering/the-details-element/details-pseudo-elements-003.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/html/rendering/the-details-element/details-pseudo-elements-004.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/html/rendering/the-details-element/details-pseudo-elements-005.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/html/rendering/widgets/the-select-element/option-empty-label-to-empty-string.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/html/rendering/widgets/the-select-element/option-empty-label.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/adopt-from-image-document.html [ ImageOnlyFailure ]
Expand All @@ -954,6 +948,10 @@ imported/w3c/web-platform-tests/html/rendering/widgets/appearance/appearance-ani
imported/w3c/web-platform-tests/html/rendering/widgets/appearance/appearance-transition-003.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/modal-dialog-selection.html [ Pass Failure ]

# Needs support for chaining pseudo-elements after ::details-content.
imported/w3c/web-platform-tests/html/rendering/the-details-element/details-pseudo-elements-004.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/html/rendering/the-details-element/details-pseudo-elements-005.html [ ImageOnlyFailure ]

# Cross-Origin-Embedder-Policy: credentialless is not supported.
imported/w3c/web-platform-tests/html/cross-origin-embedder-policy/credentialless

Expand Down Expand Up @@ -2799,16 +2797,13 @@ workers/wasm-long-compile-many.html [ Pass Timeout ]
imported/w3c/web-platform-tests/WebCryptoAPI/ [ Slow ]

# Flaky WebCrypto API tests
imported/w3c/web-platform-tests/WebCryptoAPI/wrapKey_unwrapKey/wrapKey_unwrapKey.https.any.html [ Failure Pass ]
imported/w3c/web-platform-tests/WebCryptoAPI/wrapKey_unwrapKey/wrapKey_unwrapKey.https.any.worker.html [ Failure Pass ]
imported/w3c/web-platform-tests/WebCryptoAPI/import_export/rsa_importKey.https.any.html [ Failure Pass ]
imported/w3c/web-platform-tests/WebCryptoAPI/import_export/rsa_importKey.https.any.worker.html [ Failure Pass ]

imported/w3c/web-platform-tests/WebCryptoAPI/getRandomValues-bigint.tentative.any.html [ Skip ]
imported/w3c/web-platform-tests/WebCryptoAPI/getRandomValues-bigint.tentative.any.worker.html [ Skip ]

# WebCryptoAPI features that haven't been enabled for current OS
imported/w3c/web-platform-tests/WebCryptoAPI/wrapKey_unwrapKey/wrapKey_unwrapKey.https.worker.html [ Skip ]
crypto/subtle/ecdh-import-pkcs8-key-p256-validate-ecprivatekey-parameters-publickey.html [ Skip ]
crypto/subtle/ecdh-import-pkcs8-key-p384-validate-ecprivatekey-parameters-publickey.html [ Skip ]
crypto/subtle/ecdsa-import-pkcs8-key-p256-validate-ecprivatekey-parameters-publickey.html [ Skip ]
Expand Down Expand Up @@ -3353,7 +3348,7 @@ webkit.org/b/3652 http/tests/misc/prefetch-purpose.html [ Skip ]
# First-party-only cookie policy only supported on Cocoa platforms.
http/tests/cookies/only-accept-first-party-cookies.html [ Skip ]
# Enable on appropriate platforms: rdar://140222322
http/tests/cookies/accept-partitioned-first-and-third-party-cookies.html [ Skip ]
http/tests/cookies/accept-partitioned-first-and-third-party-cookies.https.html [ Skip ]

# Disabled WPT tests
webkit.org/b/185939 imported/w3c/web-platform-tests/css/WOFF2 [ Skip ]
Expand Down Expand Up @@ -5614,7 +5609,6 @@ imported/w3c/web-platform-tests/css/css-contain/contain-layout-button-002.tentat
imported/w3c/web-platform-tests/css/css-contain/contain-style-counters-002.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-contain/contain-style-counters-004.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-contain/contain-style-counters-005.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-095.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-vs-scrollIntoView-001.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-vs-scrollIntoView-002.html [ ImageOnlyFailure ]

Expand Down Expand Up @@ -6640,7 +6634,6 @@ imported/w3c/web-platform-tests/css/css-scroll-anchoring/reading-scroll-forces-a
imported/w3c/web-platform-tests/css/css-scroll-snap/input/keyboard.html [ Skip ]
imported/w3c/web-platform-tests/css/css-values/dynamic-viewport-units-rule-cache.html [ Skip ]
imported/w3c/web-platform-tests/css/css-variables/variable-reference-refresh.html [ Skip ]
imported/w3c/web-platform-tests/css/cssom/caretPositionFromPoint-with-transformation.html [ Skip ]
imported/w3c/web-platform-tests/fetch/api/abort/serviceworker-intercepted.https.html [ Skip ]
imported/w3c/web-platform-tests/fetch/corb/preload-image-png-mislabeled-as-html-nosniff.tentative.sub.html [ Skip ]
imported/w3c/web-platform-tests/fetch/corb/script-html-correctly-labeled.tentative.sub.html [ Skip ]
Expand Down Expand Up @@ -7359,19 +7352,14 @@ imported/w3c/web-platform-tests/dom/events/scrolling/scrollend-event-fired-to-do
imported/w3c/web-platform-tests/dom/events/scrolling/scrollend-event-not-fired-on-no-scroll.html [ Skip ]
imported/w3c/web-platform-tests/dom/events/scrolling/input-text-scroll-event-when-using-arrow-keys.html [ Skip ]

# webkit.org/b/263870 [scroll-animations] some WPT tests are timing out
imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-animation-with-scroll-timeline-in-auto-subtree.html [ Skip ]
imported/w3c/web-platform-tests/scroll-animations/css/deferred-timeline-composited.html [ Skip ]
imported/w3c/web-platform-tests/scroll-animations/css/scroll-timeline-range-animation.html [ Skip ]
imported/w3c/web-platform-tests/scroll-animations/css/view-timeline-range-animation.html [ Skip ]
imported/w3c/web-platform-tests/scroll-animations/scroll-timelines/animation-with-root-scroller.html [ Skip ]
imported/w3c/web-platform-tests/scroll-animations/scroll-timelines/constructor-no-document.html [ Skip ]
imported/w3c/web-platform-tests/scroll-animations/scroll-timelines/updating-the-finished-state.html [ Skip ]
# scroll-animations timeouts
webkit.org/b/283701 imported/w3c/web-platform-tests/scroll-animations/css/deferred-timeline-composited.html [ Skip ]
webkit.org/b/283702 imported/w3c/web-platform-tests/scroll-animations/scroll-timelines/constructor-no-document.html [ Skip ]
webkit.org/b/283107 imported/w3c/web-platform-tests/scroll-animations/scroll-timelines/updating-the-finished-state.html [ Skip ]

# webkit.org/b/263871 [scroll-animations] some WPT tests are failures or flaky failures
imported/w3c/web-platform-tests/scroll-animations/css/animation-timeline-none.html [ Pass Failure ]
imported/w3c/web-platform-tests/scroll-animations/css/view-timeline-dynamic.html [ Pass Failure ]
imported/w3c/web-platform-tests/scroll-animations/scroll-timelines/effect-updateTiming.html [ Pass Failure ]
imported/w3c/web-platform-tests/scroll-animations/view-timelines/view-timeline-root-source.html [ Pass Failure ]

webkit.org/b/282373 imported/w3c/web-platform-tests/scroll-animations/css/scroll-timeline-dynamic.tentative.html [ Pass Failure ]
Expand All @@ -7385,7 +7373,6 @@ imported/w3c/web-platform-tests/scroll-animations/css/printing/scroll-timeline-d
imported/w3c/web-platform-tests/scroll-animations/css/scroll-timeline-default-writing-mode-rl.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/scroll-animations/scroll-timelines/animation-with-transform.html [ Pass ImageOnlyFailure ]
imported/w3c/web-platform-tests/scroll-animations/scroll-timelines/layout-changes-on-percentage-based-timeline.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/scroll-animations/scroll-timelines/progress-based-effect-delay.tentative.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/scroll-animations/scroll-timelines/two-animations-attach-to-same-scroll-timeline-cancel-one.html [ Pass ImageOnlyFailure ]
imported/w3c/web-platform-tests/scroll-animations/scroll-timelines/two-animations-attach-to-same-scroll-timeline.html [ Pass ImageOnlyFailure ]
imported/w3c/web-platform-tests/scroll-animations/view-timelines/range-boundary.html [ ImageOnlyFailure ]
Expand Down Expand Up @@ -7435,17 +7422,6 @@ imported/w3c/web-platform-tests/navigation-api/ordering-and-transition/navigate-
imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/back-204-205-download.html [ Failure Pass ]
imported/w3c/web-platform-tests/navigation-api/ordering-and-transition/navigate-204-205-download-then-same-document.html [ Failure Pass ]

# beforeunload event listeners are not allowed on subframes.
imported/w3c/web-platform-tests/navigation-api/navigate-event/navigate-navigation-back-cross-document.html [ Skip ]
imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/back-beforeunload.html [ Skip ]
imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/forward-beforeunload.html [ Skip ]
imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/navigate-beforeunload.html [ Skip ]
imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/navigate-rejection-order-beforeunload-unserializablestate.html [ Skip ]
imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/navigate-rejection-order-invalidurl-beforeunload.html [ Skip ]
imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/reload-beforeunload.html [ Skip ]
imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/reload-rejection-order-beforeunload-unserializablestate.html [ Skip ]
imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/traverseTo-beforeunload.html [ Skip ]

webkit.org/b/282758 [ Debug ] imported/w3c/web-platform-tests/navigation-api/navigate-event/navigate-navigation-back-same-document-in-iframe.html [ Crash ]
webkit.org/b/282758 [ Debug ] imported/w3c/web-platform-tests/navigation-api/navigate-event/navigate-navigation-back-same-document.html [ Crash ]
webkit.org/b/282758 [ Debug ] imported/w3c/web-platform-tests/navigation-api/navigation-methods/forward-to-pruned-entry.html [ Crash ]
Expand Down Expand Up @@ -7941,7 +7917,6 @@ imported/w3c/web-platform-tests/css/css-ruby/ruby-base-different-size.html [ Ima
imported/blink/fast/ruby/ruby-first-letter.html [ ImageOnlyFailure ]
# <rb> <rbc> inline boxes are not recognized as ruby base boxes.
imported/w3c/web-platform-tests/css/css-ruby/ruby-line-breaking-003.html [ ImageOnlyFailure ]
webkit.org/b/276007 [ Debug ] fast/ruby/ruby-with-continuation-crash.html [ Skip ]

imported/w3c/web-platform-tests/css/css-ruby/break-within-bases/basic.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-ruby/break-within-bases/no-break-opportunity-at-end.html [ ImageOnlyFailure ]
Expand Down Expand Up @@ -7999,7 +7974,6 @@ webkit.org/b/282024 fast/text/text-box-edge-with-margin-padding-border-simple.ht
# -- Anchor Positioning -- #

# general failures
imported/w3c/web-platform-tests/css/css-anchor-position/anchor-center-002.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-anchor-position/anchor-center-scroll.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-top-layer-001.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-top-layer-003.html [ ImageOnlyFailure ]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
This test ensures we do not expose display:none descendants in the accessibility tree, even if they are a target of a relationship.


{#div AXRole: AXGroup}

{AXRole: AXGroup}

{AXRole: AXStaticText AXValue: Text}

{AXRole: AXButton}

PASS successfullyParsed is true

TEST COMPLETE
Text

foo
27 changes: 27 additions & 0 deletions LayoutTests/accessibility/display-none-descendant-of-relation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/accessibility-helper.js"></script>
<script src="../resources/js-test.js"></script>
</head>
<body>

<div style="display:contents" id="div">
<p>Text</p>
<script>
// Should not be announced
</script>
</div>
<button aria-labelledby="div">foo</button>

<script>
var output = "This test ensures we do not expose display:none descendants in the accessibility tree, even if they are a target of a relationship.\n\n";

if (window.accessibilityController) {
output += dumpAXSearchTraversal(accessibilityController.rootElement.childAtIndex(0));
debug(output);
}
</script>
</body>
</html>

Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
Tests that using the WebArea to retrieve AttributedStrings from element TextMarkerRanges works properly.

"AXFont - {
"Attributes in range {0, 15}:
AXFont: {
AXFontFamily = Times;
AXFontName = "Times-Roman";
AXFontSize = 16;
}, This is a test."
"AXFont - {
}
AXForegroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 1 )
AXBackgroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 0 )
This is a test."
"Attributes in range {0, 23}:
AXFont: {
AXFontFamily = Times;
AXFontName = "Times-Roman";
AXFontSize = 16;
}, This is a test.
}
AXForegroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 1 )
AXBackgroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 0 )
This is a test.

Second"
"AXFont - {
"Attributes in range {0, 34}:
AXFont: {
AXFontFamily = Times;
AXFontName = "Times-Roman";
AXFontSize = 16;
}, This is a test.
}
AXForegroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 1 )
AXBackgroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 0 )
This is a test.

Second paragraph."

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,41 @@
let output = "This test ensures that attributed string for text marker range works and only includes misspelled attribute when requested.\n\n";

var text = null;
var expected1 = "AXFont - {\n AXFontFamily = Times;\n AXFontName = \"Times-Roman\";\n AXFontSize = 16;\n}, word mizpelled word";
var expected2 = "AXFont - {\n AXFontFamily = Times;\n AXFontName = \"Times-Roman\";\n AXFontSize = 16;\n}, Misspelled, AXFont - {\n AXFontFamily = Times;\n AXFontName = \"Times-Roman\";\n AXFontSize = 16;\n}, AXFont - {\n AXFontFamily = Times;\n AXFontName = \"Times-Roman\";\n AXFontSize = 16;\n}, word mizpelled word";
var expected1 = `Attributes in range {0, 19}:
AXFont: {
AXFontFamily = Times;
AXFontName = "Times-Roman";
AXFontSize = 16;
}
AXForegroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 1 )
AXBackgroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 0 )
word mizpelled word`;
var expected2 = `Attributes in range {0, 5}:
AXFont: {
AXFontFamily = Times;
AXFontName = "Times-Roman";
AXFontSize = 16;
}
AXForegroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 1 )
AXBackgroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 0 )
Attributes in range {5, 9}:
Misspelled, AXFont: {
AXFontFamily = Times;
AXFontName = "Times-Roman";
AXFontSize = 16;
}
AXForegroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 1 )
AXBackgroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 0 )
Attributes in range {14, 5}:
AXFont: {
AXFontFamily = Times;
AXFontName = "Times-Roman";
AXFontSize = 16;
}
AXForegroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 1 )
AXBackgroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 0 )
word mizpelled word`;

let axElement = accessibilityController.accessibleElementById("content");
let range = axElement.textMarkerRangeForElement(axElement);
text = axElement.attributedStringForTextMarkerRangeWithOptions(range, false);
Expand All @@ -23,15 +56,39 @@
output += expect("text", "expected2");

// Correct the misspelling and verify that the attributed string changes accordingly.
var expected3 = "AXFont - {\n AXFontFamily = Times;\n AXFontName = \"Times-Roman\";\n AXFontSize = 16;\n}, word misspelled word";
var expected3 = `Attributes in range {0, 20}:
AXFont: {
AXFontFamily = Times;
AXFontName = "Times-Roman";
AXFontSize = 16;
}
AXForegroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 1 )
AXBackgroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 0 )
word misspelled word`;
axElement.replaceTextInRange("ss", 7, 1);
// Note that with replaceTextInRange(...), there is no need to await for the change to be reflected in the AX tree.
range = axElement.textMarkerRangeForElement(axElement);
text = axElement.attributedStringForTextMarkerRangeWithOptions(range, true);
output += expect("text", "expected3");

// Make another misspelling and verify.
var expected4 = "Misspelled, AXFont - {\n AXFontFamily = Times;\n AXFontName = \"Times-Roman\";\n AXFontSize = 16;\n}, AXFont - {\n AXFontFamily = Times;\n AXFontName = \"Times-Roman\";\n AXFontSize = 16;\n}, worz misspelled word";
var expected4 = `Attributes in range {0, 4}:
Misspelled, AXFont: {
AXFontFamily = Times;
AXFontName = "Times-Roman";
AXFontSize = 16;
}
AXForegroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 1 )
AXBackgroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 0 )
Attributes in range {4, 16}:
AXFont: {
AXFontFamily = Times;
AXFontName = "Times-Roman";
AXFontSize = 16;
}
AXForegroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 1 )
AXBackgroundColor: (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1) ( 0 0 0 0 )
worz misspelled word`;
axElement.replaceTextInRange("z", 3, 1);
range = axElement.textMarkerRangeForElement(axElement);
text = axElement.attributedStringForTextMarkerRangeWithOptions(range, true);
Expand Down
Loading

0 comments on commit 173edef

Please sign in to comment.