-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Occasional debug assertion under IntlNumberFormat::initializeNumberFo…
…rmat when running Speedometer 3 https://bugs.webkit.org/show_bug.cgi?id=265113 rdar://118619451 Reviewed by Chris Dumez. Grab the JSC API lock before calling into `JSObject::hasProperty()` when checking for the presence of the `tableauPrep` property. * LayoutTests/fast/events/key-event-with-quirks-enabled-expected.txt: Added. * LayoutTests/fast/events/key-event-with-quirks-enabled.html: Added. * Source/WebCore/bindings/js/JSLocalDOMWindowCustom.cpp: (WebCore::JSLocalDOMWindow::getOwnPropertySlot): (WebCore::JSLocalDOMWindow::getOwnPropertySlotByIndex): Add a new debug assertion when reading properties off of the window object without having the JS API lock; without the fix above, the assertion is hit in the new layout test, where site-specific quirks are enabled. * Source/WebCore/page/Quirks.cpp: (WebCore::Quirks::needsDisableDOMPasteAccessQuirk const): Canonical link: https://commits.webkit.org/270961@main
- Loading branch information
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
LayoutTests/fast/events/key-event-with-quirks-enabled-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Tests that basic key events work, and do not trigger assertions when quirks are enabled. | ||
|
||
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | ||
|
||
|
||
PASS Received keydown | ||
PASS Received keyup | ||
PASS receivedKeyUp became true | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
31 changes: 31 additions & 0 deletions
31
LayoutTests/fast/events/key-event-with-quirks-enabled.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> <!-- webkit-test-runner [ NeedsSiteSpecificQuirks=true ] --> | ||
<html> | ||
<head> | ||
<script src="../../resources/js-test.js"></script> | ||
<script src="../../resources/ui-helper.js"></script> | ||
</head> | ||
<body> | ||
<input id="textField"></input> | ||
<script> | ||
jsTestIsAsync = true; | ||
receivedKeyUp = false; | ||
|
||
addEventListener("load", async () => { | ||
description("Tests that basic key events work, and do not trigger assertions when quirks are enabled."); | ||
|
||
let textField = document.getElementById("textField"); | ||
textField.addEventListener("keydown", () => testPassed("Received keydown")); | ||
textField.addEventListener("keyup", () => { | ||
testPassed("Received keyup"); | ||
receivedKeyUp = true; | ||
}); | ||
|
||
await UIHelper.activateElementAndWaitForInputSession(textField); | ||
await UIHelper.keyDown("a"); | ||
|
||
await shouldBecomeEqual("receivedKeyUp", "true"); | ||
finishJSTest(); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters