Diff
Modified: trunk/LayoutTests/ChangeLog (242620 => 242621)
--- trunk/LayoutTests/ChangeLog 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/LayoutTests/ChangeLog 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,3 +1,22 @@
+2019-03-07 Zalan Bujtas <[email protected]>
+
+ [ContentChangeObserver] Add a setting to be able to turn content change observation on/off
+ https://bugs.webkit.org/show_bug.cgi?id=195353
+ <rdar://problem/48626394>
+
+ Reviewed by Simon Fraser.
+
+ * fast/events/touch/ios/content-observation/click-instead-of-hover-simple-expected.txt: Renamed from LayoutTests/fast/events/touch/ios/click-instead-of-hover-simple-expected.txt.
+ * fast/events/touch/ios/content-observation/click-instead-of-hover-simple.html: Renamed from LayoutTests/fast/events/touch/ios/click-instead-of-hover-simple.html.
+ * fast/events/touch/ios/content-observation/hover-when-style-change-is-async-expected.txt: Renamed from LayoutTests/fast/events/touch/ios/hover-when-style-change-is-async-expected.txt.
+ * fast/events/touch/ios/content-observation/hover-when-style-change-is-async.html: Renamed from LayoutTests/fast/events/touch/ios/hover-when-style-change-is-async.html.
+ * fast/events/touch/ios/content-observation/stuck-with-hover-state-expected.txt: Renamed from LayoutTests/fast/events/touch/ios/stuck-with-hover-state-expected.txt.
+ * fast/events/touch/ios/content-observation/stuck-with-hover-state.html: Renamed from LayoutTests/fast/events/touch/ios/stuck-with-hover-state.html.
+ * fast/events/touch/ios/content-observation/style-recalc-schedule-and-force-relalc-expected.txt: Renamed from LayoutTests/fast/events/touch/ios/style-recalc-schedule-and-force-relalc-expected.txt.
+ * fast/events/touch/ios/content-observation/style-recalc-schedule-and-force-relalc.html: Renamed from LayoutTests/fast/events/touch/ios/style-recalc-schedule-and-force-relalc.html.
+ * fast/events/touch/ios/content-observation/visibility-change-happens-at-the-second-timer-expected.txt: Renamed from LayoutTests/fast/events/touch/ios/visibility-change-happens-at-the-second-timer-expected.txt.
+ * fast/events/touch/ios/content-observation/visibility-change-happens-at-the-second-timer.html: Renamed from LayoutTests/fast/events/touch/ios/visibility-change-happens-at-the-second-timer.html.
+
2019-03-07 Ross Kirsling <[email protected]>
[WinCairo] Unreviewed test gardening.
Deleted: trunk/LayoutTests/fast/events/touch/ios/click-instead-of-hover-simple-expected.txt (242620 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/click-instead-of-hover-simple-expected.txt 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/LayoutTests/fast/events/touch/ios/click-instead-of-hover-simple-expected.txt 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,3 +0,0 @@
-PASS if clicked.
-clicked
-tooltip
Deleted: trunk/LayoutTests/fast/events/touch/ios/click-instead-of-hover-simple.html (242620 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/click-instead-of-hover-simple.html 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/LayoutTests/fast/events/touch/ios/click-instead-of-hover-simple.html 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,45 +0,0 @@
-<html>
-<head>
-<title>This test that we trigger click when hover would not display non-clickable content.</title>
-<script src=""
-<style>
-#tapthis {
- width: 400px;
- height: 400px;
- border: 1px solid green;
-}
-</style>
-<script>
-async function test() {
- if (!window.testRunner || !testRunner.runUIScript)
- return;
-
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-
- let rect = tapthis.getBoundingClientRect();
- let x = rect.left + rect.width / 2;
- let y = rect.top + rect.height / 2;
-
- await tapAtPoint(x, y);
-
- testRunner.notifyDone();
-}
-</script>
-</head>
-<body _onload_="test()">
-<div id=tapthis>PASS if clicked.</div>
-<pre id=result></pre>
-<script>
-tapthis.addEventListener("mouseover", function( event ) {
- let newContent = document.createElement("div");
- newContent.innerHTML = "tooltip";
- document.body.appendChild(newContent);
-}, false);
-
-tapthis.addEventListener("click", function( event ) {
- result.innerHTML = "clicked";
-}, false);
-</script>
-</body>
-</html>
Copied: trunk/LayoutTests/fast/events/touch/ios/content-observation/click-instead-of-hover-simple-expected.txt (from rev 242620, trunk/LayoutTests/fast/events/touch/ios/click-instead-of-hover-simple-expected.txt) (0 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/content-observation/click-instead-of-hover-simple-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/events/touch/ios/content-observation/click-instead-of-hover-simple-expected.txt 2019-03-08 00:36:42 UTC (rev 242621)
@@ -0,0 +1,3 @@
+PASS if clicked.
+clicked
+tooltip
Copied: trunk/LayoutTests/fast/events/touch/ios/content-observation/click-instead-of-hover-simple.html (from rev 242620, trunk/LayoutTests/fast/events/touch/ios/click-instead-of-hover-simple.html) (0 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/content-observation/click-instead-of-hover-simple.html (rev 0)
+++ trunk/LayoutTests/fast/events/touch/ios/content-observation/click-instead-of-hover-simple.html 2019-03-08 00:36:42 UTC (rev 242621)
@@ -0,0 +1,47 @@
+<html>
+<head>
+<title>This test that we trigger click when hover would not display non-clickable content.</title>
+<script src=""
+<style>
+#tapthis {
+ width: 400px;
+ height: 400px;
+ border: 1px solid green;
+}
+</style>
+<script>
+async function test() {
+ if (!window.testRunner || !testRunner.runUIScript)
+ return;
+ if (window.internals)
+ internals.settings.setContentChangeObserverEnabled(true);
+
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+
+ let rect = tapthis.getBoundingClientRect();
+ let x = rect.left + rect.width / 2;
+ let y = rect.top + rect.height / 2;
+
+ await tapAtPoint(x, y);
+
+ testRunner.notifyDone();
+}
+</script>
+</head>
+<body _onload_="test()">
+<div id=tapthis>PASS if clicked.</div>
+<pre id=result></pre>
+<script>
+tapthis.addEventListener("mouseover", function( event ) {
+ let newContent = document.createElement("div");
+ newContent.innerHTML = "tooltip";
+ document.body.appendChild(newContent);
+}, false);
+
+tapthis.addEventListener("click", function( event ) {
+ result.innerHTML = "clicked";
+}, false);
+</script>
+</body>
+</html>
Copied: trunk/LayoutTests/fast/events/touch/ios/content-observation/hover-when-style-change-is-async-expected.txt (from rev 242620, trunk/LayoutTests/fast/events/touch/ios/hover-when-style-change-is-async-expected.txt) (0 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/content-observation/hover-when-style-change-is-async-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/events/touch/ios/content-observation/hover-when-style-change-is-async-expected.txt 2019-03-08 00:36:42 UTC (rev 242621)
@@ -0,0 +1,2 @@
+PASS if no 'clicked' text is shown below.
+
Copied: trunk/LayoutTests/fast/events/touch/ios/content-observation/hover-when-style-change-is-async.html (from rev 242620, trunk/LayoutTests/fast/events/touch/ios/hover-when-style-change-is-async.html) (0 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/content-observation/hover-when-style-change-is-async.html (rev 0)
+++ trunk/LayoutTests/fast/events/touch/ios/content-observation/hover-when-style-change-is-async.html 2019-03-08 00:36:42 UTC (rev 242621)
@@ -0,0 +1,65 @@
+<html>
+<head>
+<title>This test that we trigger hover when the content change is async.</title>
+<script src=""
+<style>
+#tapthis {
+ width: 400px;
+ height: 400px;
+ border: 1px solid green;
+}
+
+#hiddenFirst {
+ visibility: hidden;
+ width: 100px;
+ height: 100px;
+ background-color: green;
+}
+</style>
+<script>
+async function test() {
+ if (!window.testRunner || !testRunner.runUIScript)
+ return;
+ if (window.internals)
+ internals.settings.setContentChangeObserverEnabled(true);
+
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+
+ let rect = tapthis.getBoundingClientRect();
+ let x = rect.left + rect.width / 2;
+ let y = rect.top + rect.height / 2;
+
+ await tapAtPoint(x, y);
+}
+</script>
+</head>
+<body _onload_="test()">
+<div id=tapthis>PASS if no 'clicked' text is shown below.</div>
+<div id=hiddenFirst></div>
+<pre id=result></pre>
+<script>
+tapthis.addEventListener("mouseover", function( event ) {
+ // 1. Install a timer on hover
+ setTimeout(function() {
+ // 2. Trigger a non-forcing style change
+ hiddenFirst.style.visibility = "visible";
+ // 3. Install a timer for style recalc
+ setTimeout(function() {
+ document.body.offsetHeight;
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }, 10);
+ }, 0);
+}, false);
+
+hiddenFirst.addEventListener("click", function( event ) {
+ result.innerHTML = "clicked";
+}, false);
+
+tapthis.addEventListener("click", function( event ) {
+ result.innerHTML = "clicked";
+}, false);
+</script>
+</body>
+</html>
Copied: trunk/LayoutTests/fast/events/touch/ios/content-observation/stuck-with-hover-state-expected.txt (from rev 242620, trunk/LayoutTests/fast/events/touch/ios/stuck-with-hover-state-expected.txt) (0 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/content-observation/stuck-with-hover-state-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/events/touch/ios/content-observation/stuck-with-hover-state-expected.txt 2019-03-08 00:36:42 UTC (rev 242621)
@@ -0,0 +1,2 @@
+PASS if clicked.
+clicked
Copied: trunk/LayoutTests/fast/events/touch/ios/content-observation/stuck-with-hover-state.html (from rev 242620, trunk/LayoutTests/fast/events/touch/ios/stuck-with-hover-state.html) (0 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/content-observation/stuck-with-hover-state.html (rev 0)
+++ trunk/LayoutTests/fast/events/touch/ios/content-observation/stuck-with-hover-state.html 2019-03-08 00:36:42 UTC (rev 242621)
@@ -0,0 +1,45 @@
+<html>
+<head>
+<title>This test that we trigger click when hover would not display non-clickable content.</title>
+<script src=""
+<style>
+#tapthis {
+ width: 400px;
+ height: 400px;
+ border: 1px solid green;
+}
+</style>
+<script>
+async function test() {
+ if (!window.testRunner || !testRunner.runUIScript)
+ return;
+ if (window.internals)
+ internals.settings.setContentChangeObserverEnabled(true);
+
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+
+ let rect = tapthis.getBoundingClientRect();
+ let x = rect.left + rect.width / 2;
+ let y = rect.top + rect.height / 2;
+
+ await tapAtPoint(x, y);
+
+ testRunner.notifyDone();
+}
+</script>
+</head>
+<body _onload_="test()">
+<div id=tapthis>PASS if clicked.</div>
+<pre id=result></pre>
+<script>
+tapthis.addEventListener("mouseover", function( event ) {
+ clearTimeout(setTimeout(function() { tapthis.innerHTML = "should not see this"; }, 50));
+}, false);
+
+tapthis.addEventListener("click", function( event ) {
+ result.innerHTML = "clicked";
+}, false);
+</script>
+</body>
+</html>
Copied: trunk/LayoutTests/fast/events/touch/ios/content-observation/style-recalc-schedule-and-force-relalc-expected.txt (from rev 242620, trunk/LayoutTests/fast/events/touch/ios/style-recalc-schedule-and-force-relalc-expected.txt) (0 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/content-observation/style-recalc-schedule-and-force-relalc-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/events/touch/ios/content-observation/style-recalc-schedule-and-force-relalc-expected.txt 2019-03-08 00:36:42 UTC (rev 242621)
@@ -0,0 +1,2 @@
+PASS if 'clicked' text is shown below.
+clicked
Copied: trunk/LayoutTests/fast/events/touch/ios/content-observation/style-recalc-schedule-and-force-relalc.html (from rev 242620, trunk/LayoutTests/fast/events/touch/ios/style-recalc-schedule-and-force-relalc.html) (0 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/content-observation/style-recalc-schedule-and-force-relalc.html (rev 0)
+++ trunk/LayoutTests/fast/events/touch/ios/content-observation/style-recalc-schedule-and-force-relalc.html 2019-03-08 00:36:42 UTC (rev 242621)
@@ -0,0 +1,68 @@
+<html>
+<head>
+<title>This test that we trigger hover when the content change starts as async but it turns into a sync style recalc.</title>
+<script src=""
+<style>
+#tapthis {
+ width: 400px;
+ height: 400px;
+ border: 1px solid green;
+}
+
+#staysHidden {
+ visibility: hidden;
+ width: 100px;
+ height: 100px;
+ background-color: green;
+}
+</style>
+<script>
+async function test() {
+ if (!window.testRunner || !testRunner.runUIScript)
+ return;
+ if (window.internals)
+ internals.settings.setContentChangeObserverEnabled(true);
+
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+
+ let rect = tapthis.getBoundingClientRect();
+ let x = rect.left + rect.width / 2;
+ let y = rect.top + rect.height / 2;
+
+ await tapAtPoint(x, y);
+}
+</script>
+</head>
+<body _onload_="test()">
+<div id=tapthis>PASS if 'clicked' text is shown below.</div>
+<div id=staysHidden></div>
+<pre id=result></pre>
+<script>
+tapthis.addEventListener("mouseover", function( event ) {
+ // 1. Install a timer on hover
+ setTimeout(function() {
+ // 2. Trigger some non-forcing (non-visibility) style change with forcing offsetHeight.
+ staysHidden.style.marginLeft = "5px";
+
+ document.body.offsetHeight;
+ }, 0);
+ // 3. Install a longer, empty timer.
+ setTimeout(function() {
+ }, 5);
+}, false);
+
+staysHidden.addEventListener("click", function( event ) {
+ result.innerHTML = "clicked hidden";
+}, false);
+
+tapthis.addEventListener("click", function( event ) {
+ result.innerHTML = "clicked";
+ setTimeout(function() {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }, 0);
+}, false);
+</script>
+</body>
+</html>
Copied: trunk/LayoutTests/fast/events/touch/ios/content-observation/visibility-change-happens-at-the-second-timer-expected.txt (from rev 242620, trunk/LayoutTests/fast/events/touch/ios/visibility-change-happens-at-the-second-timer-expected.txt) (0 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/content-observation/visibility-change-happens-at-the-second-timer-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/events/touch/ios/content-observation/visibility-change-happens-at-the-second-timer-expected.txt 2019-03-08 00:36:42 UTC (rev 242621)
@@ -0,0 +1,2 @@
+PASS if 'clicked' text is not shown below.
+
Copied: trunk/LayoutTests/fast/events/touch/ios/content-observation/visibility-change-happens-at-the-second-timer.html (from rev 242620, trunk/LayoutTests/fast/events/touch/ios/visibility-change-happens-at-the-second-timer.html) (0 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/content-observation/visibility-change-happens-at-the-second-timer.html (rev 0)
+++ trunk/LayoutTests/fast/events/touch/ios/content-observation/visibility-change-happens-at-the-second-timer.html 2019-03-08 00:36:42 UTC (rev 242621)
@@ -0,0 +1,67 @@
+<html>
+<head>
+<title>This tests the case when the second timer triggers visible content change</title>
+<script src=""
+<style>
+#tapthis {
+ width: 400px;
+ height: 400px;
+ border: 1px solid green;
+}
+
+#becomesVisible {
+ visibility: hidden;
+ width: 100px;
+ height: 100px;
+ background-color: green;
+}
+</style>
+<script>
+async function test() {
+ if (!window.testRunner || !testRunner.runUIScript)
+ return;
+ if (window.internals)
+ internals.settings.setContentChangeObserverEnabled(true);
+
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+
+ let rect = tapthis.getBoundingClientRect();
+ let x = rect.left + rect.width / 2;
+ let y = rect.top + rect.height / 2;
+
+ await tapAtPoint(x, y);
+}
+</script>
+</head>
+<body _onload_="test()">
+<div id=tapthis>PASS if 'clicked' text is not shown below.</div>
+<div id=becomesVisible></div>
+<pre id=result></pre>
+<script>
+tapthis.addEventListener("mouseover", function( event ) {
+ // 1. Install 2 timers on hover
+ setTimeout(function() {
+ // 2. Trigger some non-visibility style change with forcing offsetHeight.
+ becomesVisible.style.marginLeft = "5px";
+ document.body.offsetHeight;
+ }, 0);
+ // 3. Install a longer timer with visibility change.
+ setTimeout(function() {
+ becomesVisible.style.visibility = "visible";
+ document.body.offsetHeight;
+ if (window.testRunner)
+ setTimeout(testRunner.notifyDone(), 0);
+ }, 20);
+}, false);
+
+becomesVisible.addEventListener("click", function( event ) {
+ result.innerHTML = "clicked hidden";
+}, false);
+
+tapthis.addEventListener("click", function( event ) {
+ result.innerHTML = "clicked";
+}, false);
+</script>
+</body>
+</html>
Deleted: trunk/LayoutTests/fast/events/touch/ios/hover-when-style-change-is-async-expected.txt (242620 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/hover-when-style-change-is-async-expected.txt 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/LayoutTests/fast/events/touch/ios/hover-when-style-change-is-async-expected.txt 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,2 +0,0 @@
-PASS if no 'clicked' text is shown below.
-
Deleted: trunk/LayoutTests/fast/events/touch/ios/hover-when-style-change-is-async.html (242620 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/hover-when-style-change-is-async.html 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/LayoutTests/fast/events/touch/ios/hover-when-style-change-is-async.html 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,63 +0,0 @@
-<html>
-<head>
-<title>This test that we trigger hover when the content change is async.</title>
-<script src=""
-<style>
-#tapthis {
- width: 400px;
- height: 400px;
- border: 1px solid green;
-}
-
-#hiddenFirst {
- visibility: hidden;
- width: 100px;
- height: 100px;
- background-color: green;
-}
-</style>
-<script>
-async function test() {
- if (!window.testRunner || !testRunner.runUIScript)
- return;
-
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-
- let rect = tapthis.getBoundingClientRect();
- let x = rect.left + rect.width / 2;
- let y = rect.top + rect.height / 2;
-
- await tapAtPoint(x, y);
-}
-</script>
-</head>
-<body _onload_="test()">
-<div id=tapthis>PASS if no 'clicked' text is shown below.</div>
-<div id=hiddenFirst></div>
-<pre id=result></pre>
-<script>
-tapthis.addEventListener("mouseover", function( event ) {
- // 1. Install a timer on hover
- setTimeout(function() {
- // 2. Trigger a non-forcing style change
- hiddenFirst.style.visibility = "visible";
- // 3. Install a timer for style recalc
- setTimeout(function() {
- document.body.offsetHeight;
- if (window.testRunner)
- testRunner.notifyDone();
- }, 10);
- }, 0);
-}, false);
-
-hiddenFirst.addEventListener("click", function( event ) {
- result.innerHTML = "clicked";
-}, false);
-
-tapthis.addEventListener("click", function( event ) {
- result.innerHTML = "clicked";
-}, false);
-</script>
-</body>
-</html>
Deleted: trunk/LayoutTests/fast/events/touch/ios/stuck-with-hover-state-expected.txt (242620 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/stuck-with-hover-state-expected.txt 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/LayoutTests/fast/events/touch/ios/stuck-with-hover-state-expected.txt 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,2 +0,0 @@
-PASS if clicked.
-clicked
Deleted: trunk/LayoutTests/fast/events/touch/ios/stuck-with-hover-state.html (242620 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/stuck-with-hover-state.html 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/LayoutTests/fast/events/touch/ios/stuck-with-hover-state.html 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,43 +0,0 @@
-<html>
-<head>
-<title>This test that we trigger click when hover would not display non-clickable content.</title>
-<script src=""
-<style>
-#tapthis {
- width: 400px;
- height: 400px;
- border: 1px solid green;
-}
-</style>
-<script>
-async function test() {
- if (!window.testRunner || !testRunner.runUIScript)
- return;
-
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-
- let rect = tapthis.getBoundingClientRect();
- let x = rect.left + rect.width / 2;
- let y = rect.top + rect.height / 2;
-
- await tapAtPoint(x, y);
-
- testRunner.notifyDone();
-}
-</script>
-</head>
-<body _onload_="test()">
-<div id=tapthis>PASS if clicked.</div>
-<pre id=result></pre>
-<script>
-tapthis.addEventListener("mouseover", function( event ) {
- clearTimeout(setTimeout(function() { tapthis.innerHTML = "should not see this"; }, 50));
-}, false);
-
-tapthis.addEventListener("click", function( event ) {
- result.innerHTML = "clicked";
-}, false);
-</script>
-</body>
-</html>
Deleted: trunk/LayoutTests/fast/events/touch/ios/style-recalc-schedule-and-force-relalc-expected.txt (242620 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/style-recalc-schedule-and-force-relalc-expected.txt 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/LayoutTests/fast/events/touch/ios/style-recalc-schedule-and-force-relalc-expected.txt 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,2 +0,0 @@
-PASS if 'clicked' text is shown below.
-clicked
Deleted: trunk/LayoutTests/fast/events/touch/ios/style-recalc-schedule-and-force-relalc.html (242620 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/style-recalc-schedule-and-force-relalc.html 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/LayoutTests/fast/events/touch/ios/style-recalc-schedule-and-force-relalc.html 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,66 +0,0 @@
-<html>
-<head>
-<title>This test that we trigger hover when the content change starts as async but it turns into a sync style recalc.</title>
-<script src=""
-<style>
-#tapthis {
- width: 400px;
- height: 400px;
- border: 1px solid green;
-}
-
-#staysHidden {
- visibility: hidden;
- width: 100px;
- height: 100px;
- background-color: green;
-}
-</style>
-<script>
-async function test() {
- if (!window.testRunner || !testRunner.runUIScript)
- return;
-
- testRunner.waitUntilDone();
- testRunner.dumpAsText();
-
- let rect = tapthis.getBoundingClientRect();
- let x = rect.left + rect.width / 2;
- let y = rect.top + rect.height / 2;
-
- await tapAtPoint(x, y);
-}
-</script>
-</head>
-<body _onload_="test()">
-<div id=tapthis>PASS if 'clicked' text is shown below.</div>
-<div id=staysHidden></div>
-<pre id=result></pre>
-<script>
-tapthis.addEventListener("mouseover", function( event ) {
- // 1. Install a timer on hover
- setTimeout(function() {
- // 2. Trigger some non-forcing (non-visibility) style change with forcing offsetHeight.
- staysHidden.style.marginLeft = "5px";
-
- document.body.offsetHeight;
- }, 0);
- // 3. Install a longer, empty timer.
- setTimeout(function() {
- }, 5);
-}, false);
-
-staysHidden.addEventListener("click", function( event ) {
- result.innerHTML = "clicked hidden";
-}, false);
-
-tapthis.addEventListener("click", function( event ) {
- result.innerHTML = "clicked";
- setTimeout(function() {
- if (window.testRunner)
- testRunner.notifyDone();
- }, 0);
-}, false);
-</script>
-</body>
-</html>
Deleted: trunk/LayoutTests/fast/events/touch/ios/visibility-change-happens-at-the-second-timer-expected.txt (242620 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/visibility-change-happens-at-the-second-timer-expected.txt 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/LayoutTests/fast/events/touch/ios/visibility-change-happens-at-the-second-timer-expected.txt 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,2 +0,0 @@
-PASS if 'clicked' text is not shown below.
-
Deleted: trunk/LayoutTests/fast/events/touch/ios/visibility-change-happens-at-the-second-timer.html (242620 => 242621)
--- trunk/LayoutTests/fast/events/touch/ios/visibility-change-happens-at-the-second-timer.html 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/LayoutTests/fast/events/touch/ios/visibility-change-happens-at-the-second-timer.html 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,65 +0,0 @@
-<html>
-<head>
-<title>This tests the case when the second timer triggers visible content change</title>
-<script src=""
-<style>
-#tapthis {
- width: 400px;
- height: 400px;
- border: 1px solid green;
-}
-
-#becomesVisible {
- visibility: hidden;
- width: 100px;
- height: 100px;
- background-color: green;
-}
-</style>
-<script>
-async function test() {
- if (!window.testRunner || !testRunner.runUIScript)
- return;
-
- testRunner.waitUntilDone();
- testRunner.dumpAsText();
-
- let rect = tapthis.getBoundingClientRect();
- let x = rect.left + rect.width / 2;
- let y = rect.top + rect.height / 2;
-
- await tapAtPoint(x, y);
-}
-</script>
-</head>
-<body _onload_="test()">
-<div id=tapthis>PASS if 'clicked' text is not shown below.</div>
-<div id=becomesVisible></div>
-<pre id=result></pre>
-<script>
-tapthis.addEventListener("mouseover", function( event ) {
- // 1. Install 2 timers on hover
- setTimeout(function() {
- // 2. Trigger some non-visibility style change with forcing offsetHeight.
- becomesVisible.style.marginLeft = "5px";
- document.body.offsetHeight;
- }, 0);
- // 3. Install a longer timer with visibility change.
- setTimeout(function() {
- becomesVisible.style.visibility = "visible";
- document.body.offsetHeight;
- if (window.testRunner)
- setTimeout(testRunner.notifyDone(), 0);
- }, 20);
-}, false);
-
-becomesVisible.addEventListener("click", function( event ) {
- result.innerHTML = "clicked hidden";
-}, false);
-
-tapthis.addEventListener("click", function( event ) {
- result.innerHTML = "clicked";
-}, false);
-</script>
-</body>
-</html>
Modified: trunk/Source/WebCore/ChangeLog (242620 => 242621)
--- trunk/Source/WebCore/ChangeLog 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebCore/ChangeLog 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,3 +1,28 @@
+2019-03-07 Zalan Bujtas <[email protected]>
+
+ [ContentChangeObserver] Add a setting to be able to turn content change observation on/off
+ https://bugs.webkit.org/show_bug.cgi?id=195353
+ <rdar://problem/48626394>
+
+ Reviewed by Simon Fraser.
+
+ Move content observation tests to a dedicated directory.
+
+ Tests: fast/events/touch/ios/content-observation/click-instead-of-hover-simple.html
+ fast/events/touch/ios/content-observation/hover-when-style-change-is-async.html
+ fast/events/touch/ios/content-observation/stuck-with-hover-state.html
+ fast/events/touch/ios/content-observation/style-recalc-schedule-and-force-relalc.html
+ fast/events/touch/ios/content-observation/visibility-change-happens-at-the-second-timer.html
+
+ * page/Settings.yaml:
+ * page/ios/ContentChangeObserver.cpp:
+ (WebCore::ContentChangeObserver::didInstallDOMTimer):
+ (WebCore::ContentChangeObserver::isNotifyContentChangeAllowed const):
+ * page/ios/ContentChangeObserver.h:
+ (WebCore::ContentChangeObserver::isNotifyContentChangeAllowed const): Deleted.
+ * testing/InternalSettings.cpp:
+ (WebCore::InternalSettings::resetToConsistentState):
+
2019-03-07 John Wilander <[email protected]>
Make sure an empty host matches the internal representation "nullOrigin" in WebCore::RegistrableDomain::matches()
Modified: trunk/Source/WebCore/page/Settings.yaml (242620 => 242621)
--- trunk/Source/WebCore/page/Settings.yaml 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebCore/page/Settings.yaml 2019-03-08 00:36:42 UTC (rev 242621)
@@ -446,6 +446,9 @@
initial: false
onChange: setNeedsRecalcStyleInAllFrames
+contentChangeObserverEnabled:
+ initial: defaultContentChangeObserverEnabled()
+
subpixelCSSOMElementMetricsEnabled:
initial: false
Modified: trunk/Source/WebCore/page/SettingsBase.cpp (242620 => 242621)
--- trunk/Source/WebCore/page/SettingsBase.cpp 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebCore/page/SettingsBase.cpp 2019-03-08 00:36:42 UTC (rev 242621)
@@ -107,6 +107,15 @@
#endif
}
+bool SettingsBase::defaultContentChangeObserverEnabled()
+{
+#if PLATFORM(IOS_FAMILY)
+ return true;
+#else
+ return false;
+#endif
+}
+
#if !PLATFORM(COCOA)
const String& SettingsBase::defaultMediaContentTypesRequiringHardwareSupport()
{
Modified: trunk/Source/WebCore/page/SettingsBase.h (242620 => 242621)
--- trunk/Source/WebCore/page/SettingsBase.h 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebCore/page/SettingsBase.h 2019-03-08 00:36:42 UTC (rev 242621)
@@ -115,6 +115,7 @@
WEBCORE_EXPORT static bool defaultTextAutosizingEnabled();
WEBCORE_EXPORT static float defaultMinimumZoomFontSize();
WEBCORE_EXPORT static bool defaultDownloadableBinaryFontsEnabled();
+ WEBCORE_EXPORT static bool defaultContentChangeObserverEnabled();
#if ENABLE(MEDIA_SOURCE)
WEBCORE_EXPORT static bool platformDefaultMediaSourceEnabled();
Modified: trunk/Source/WebCore/page/ios/ContentChangeObserver.cpp (242620 => 242621)
--- trunk/Source/WebCore/page/ios/ContentChangeObserver.cpp 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebCore/page/ios/ContentChangeObserver.cpp 2019-03-08 00:36:42 UTC (rev 242621)
@@ -33,6 +33,7 @@
#include "Logging.h"
#include "NodeRenderStyle.h"
#include "Page.h"
+#include "Settings.h"
namespace WebCore {
@@ -43,6 +44,8 @@
void ContentChangeObserver::didInstallDOMTimer(const DOMTimer& timer, Seconds timeout, bool singleShot)
{
+ if (!m_document.settings().contentChangeObserverEnabled())
+ return;
if (m_document.activeDOMObjectsAreSuspended())
return;
if (timeout > 250_ms || !singleShot)
@@ -176,6 +179,13 @@
return observedContentChange() == WKContentNoChange && !hasPendingActivity();
}
+#if !ASSERT_DISABLED
+bool ContentChangeObserver::isNotifyContentChangeAllowed() const
+{
+ return m_document.settings().contentChangeObserverEnabled() && !m_mouseMovedIsBeingDispatched;
+}
+#endif
+
void ContentChangeObserver::adjustObservedState(Event event)
{
auto notifyContentChangeIfNeeded = [&] {
Modified: trunk/Source/WebCore/page/ios/ContentChangeObserver.h (242620 => 242621)
--- trunk/Source/WebCore/page/ios/ContentChangeObserver.h 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebCore/page/ios/ContentChangeObserver.h 2019-03-08 00:36:42 UTC (rev 242621)
@@ -117,7 +117,7 @@
bool hasPendingActivity() const { return hasObservedDOMTimer() || m_document.hasPendingStyleRecalc(); }
#if !ASSERT_DISABLED
- bool isNotifyContentChangeAllowed() const { return !m_mouseMovedIsBeingDispatched; }
+ bool isNotifyContentChangeAllowed() const;
#endif
enum class Event {
Modified: trunk/Source/WebKit/ChangeLog (242620 => 242621)
--- trunk/Source/WebKit/ChangeLog 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebKit/ChangeLog 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,3 +1,23 @@
+2019-03-07 Zalan Bujtas <[email protected]>
+
+ [ContentChangeObserver] Add a setting to be able to turn content change observation on/off
+ https://bugs.webkit.org/show_bug.cgi?id=195353
+ <rdar://problem/48626394>
+
+ Reviewed by Simon Fraser.
+
+ * Shared/WebPreferences.yaml:
+ * UIProcess/API/C/WKPreferences.cpp:
+ (WKPreferencesSetContentChangeObserverEnabled):
+ (WKPreferencesGetContentChangeObserverEnabled):
+ * UIProcess/API/C/WKPreferencesRefPrivate.h:
+ * UIProcess/API/Cocoa/WKPreferences.mm:
+ (-[WKPreferences _contentChangeObserverEnabled]):
+ (-[WKPreferences _setContentChangeObserverEnabled:]):
+ * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
+ * WebProcess/WebPage/ios/WebPageIOS.mm:
+ (WebKit::WebPage::handleSyntheticClick):
+
2019-03-07 Andy Estes <[email protected]>
[Apple Pay] Untangle PKPaymentAuthorizationViewController from WebPaymentCoordinatorProxy
Modified: trunk/Source/WebKit/Shared/WebPreferences.yaml (242620 => 242621)
--- trunk/Source/WebKit/Shared/WebPreferences.yaml 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebKit/Shared/WebPreferences.yaml 2019-03-08 00:36:42 UTC (rev 242621)
@@ -484,6 +484,11 @@
type: bool
defaultValue: true
+ContentChangeObserverEnabled:
+ type: bool
+ defaultValue: true
+ condition: PLATFORM(IOS_FAMILY)
+
SubpixelCSSOMElementMetricsEnabled:
type: bool
defaultValue: false
Modified: trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp (242620 => 242621)
--- trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1350,6 +1350,16 @@
return toImpl(preferencesRef)->simpleLineLayoutDebugBordersEnabled();
}
+void WKPreferencesSetContentChangeObserverEnabled(WKPreferencesRef preferencesRef, bool flag)
+{
+ toImpl(preferencesRef)->setContentChangeObserverEnabled(flag);
+}
+
+bool WKPreferencesGetContentChangeObserverEnabled(WKPreferencesRef preferencesRef)
+{
+ return toImpl(preferencesRef)->contentChangeObserverEnabled();
+}
+
void WKPreferencesSetNewBlockInsideInlineModelEnabled(WKPreferencesRef, bool)
{
// FIXME: Remove Safari call to this.
Modified: trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h (242620 => 242621)
--- trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h 2019-03-08 00:36:42 UTC (rev 242621)
@@ -334,6 +334,9 @@
WK_EXPORT void WKPreferencesSetSimpleLineLayoutDebugBordersEnabled(WKPreferencesRef, bool);
WK_EXPORT bool WKPreferencesGetSimpleLineLayoutDebugBordersEnabled(WKPreferencesRef);
+WK_EXPORT void WKPreferencesSetContentChangeObserverEnabled(WKPreferencesRef, bool);
+WK_EXPORT bool WKPreferencesGetContentChangeObserverEnabled(WKPreferencesRef);
+
// Defaults to false.
WK_EXPORT void WKPreferencesSetNewBlockInsideInlineModelEnabled(WKPreferencesRef, bool);
WK_EXPORT bool WKPreferencesGetNewBlockInsideInlineModelEnabled(WKPreferencesRef);
Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm (242620 => 242621)
--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm 2019-03-08 00:36:42 UTC (rev 242621)
@@ -335,6 +335,16 @@
_preferences->setSimpleLineLayoutDebugBordersEnabled(simpleLineLayoutDebugBordersEnabled);
}
+- (BOOL)_contentChangeObserverEnabled
+{
+ return _preferences->contentChangeObserverEnabled();
+}
+
+- (void)_setContentChangeObserverEnabled:(BOOL)contentChangeObserverEnabled
+{
+ _preferences->setContentChangeObserverEnabled(contentChangeObserverEnabled);
+}
+
- (BOOL)_acceleratedDrawingEnabled
{
return _preferences->acceleratedDrawingEnabled();
Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h (242620 => 242621)
--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h 2019-03-08 00:36:42 UTC (rev 242621)
@@ -72,6 +72,7 @@
@property (nonatomic, setter=_setVisibleDebugOverlayRegions:) _WKDebugOverlayRegions _visibleDebugOverlayRegions WK_API_AVAILABLE(macosx(10.11), ios(9.0));
@property (nonatomic, setter=_setSimpleLineLayoutEnabled:) BOOL _simpleLineLayoutEnabled WK_API_AVAILABLE(macosx(10.12), ios(10.0));
@property (nonatomic, setter=_setSimpleLineLayoutDebugBordersEnabled:) BOOL _simpleLineLayoutDebugBordersEnabled WK_API_AVAILABLE(macosx(10.11), ios(9.0));
+@property (nonatomic, setter=_setContentChangeObserverEnabled:) BOOL _contentChangeObserverEnabled WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
@property (nonatomic, setter=_setAcceleratedDrawingEnabled:) BOOL _acceleratedDrawingEnabled WK_API_AVAILABLE(macosx(10.12), ios(10.0));
@property (nonatomic, setter=_setDisplayListDrawingEnabled:) BOOL _displayListDrawingEnabled WK_API_AVAILABLE(macosx(10.12), ios(10.0));
@property (nonatomic, setter=_setLargeImageAsyncDecodingEnabled:) BOOL _largeImageAsyncDecodingEnabled WK_API_AVAILABLE(macosx(10.12.3), ios(10.3));
Modified: trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm (242620 => 242621)
--- trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm 2019-03-08 00:36:42 UTC (rev 242621)
@@ -573,6 +573,7 @@
return;
case WKContentIndeterminateChange: {
// Wait for callback to completePendingSyntheticClickForContentChangeObserver() to decide whether to send the click event.
+ ASSERT(respondingDocument.settings().contentChangeObserverEnabled());
m_pendingSyntheticClickNode = &nodeRespondingToClick;
m_pendingSyntheticClickLocation = location;
m_pendingSyntheticClickModifiers = modifiers;
Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (242620 => 242621)
--- trunk/Source/WebKitLegacy/mac/ChangeLog 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,3 +1,20 @@
+2019-03-07 Zalan Bujtas <[email protected]>
+
+ [ContentChangeObserver] Add a setting to be able to turn content change observation on/off
+ https://bugs.webkit.org/show_bug.cgi?id=195353
+ <rdar://problem/48626394>
+
+ Reviewed by Simon Fraser.
+
+ * WebView/WebPreferenceKeysPrivate.h:
+ * WebView/WebPreferences.mm:
+ (+[WebPreferences initialize]):
+ (-[WebPreferences contentChangeObserverEnabled]):
+ (-[WebPreferences setContentChangeObserverEnabled:]):
+ * WebView/WebPreferencesPrivate.h:
+ * WebView/WebView.mm:
+ (-[WebView _preferencesChanged:]):
+
2019-03-06 Sam Weinig <[email protected]>
WebKitLegacy does not need to generate an export file for i386 anymore
Modified: trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h (242620 => 242621)
--- trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h 2019-03-08 00:36:42 UTC (rev 242621)
@@ -111,6 +111,7 @@
#define WebKitSubpixelAntialiasedLayerTextEnabledPreferenceKey @"WebKitSubpixelAntialiasedLayerTextEnabled"
#define WebKitSimpleLineLayoutEnabledPreferenceKey @"WebKitSimpleLineLayoutEnabled"
#define WebKitSimpleLineLayoutDebugBordersEnabledPreferenceKey @"WebKitSimpleLineLayoutDebugBordersEnabled"
+#define WebKitContentChangeObserverEnabledPreferenceKey @"WebKitContentChangeObserverEnabled"
#define WebKitShowRepaintCounterPreferenceKey @"WebKitShowRepaintCounter"
#define WebKitWebAudioEnabledPreferenceKey @"WebKitWebAudioEnabled"
#define WebKitWebGLEnabledPreferenceKey @"WebKitWebGLEnabled"
Modified: trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm (242620 => 242621)
--- trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm 2019-03-08 00:36:42 UTC (rev 242621)
@@ -582,6 +582,7 @@
[NSNumber numberWithBool:NO], WebKitPlugInSnapshottingEnabledPreferenceKey,
#if PLATFORM(IOS_FAMILY)
+ [NSNumber numberWithBool:YES], WebKitContentChangeObserverEnabledPreferenceKey,
[NSNumber numberWithBool:NO], WebKitTelephoneParsingEnabledPreferenceKey,
[NSNumber numberWithInt:-1], WebKitLayoutIntervalPreferenceKey,
[NSNumber numberWithFloat:-1.0f], WebKitMaxParseDurationPreferenceKey,
@@ -1597,6 +1598,16 @@
{
return [self _boolValueForKey:WebKitTelephoneParsingEnabledPreferenceKey];
}
+
+- (BOOL)contentChangeObserverEnabled
+{
+ return [self _boolValueForKey:WebKitContentChangeObserverEnabledPreferenceKey];
+}
+
+- (void)setContentChangeObserverEnabled:(BOOL)enabled
+{
+ [self _setBoolValue:enabled forKey:WebKitContentChangeObserverEnabledPreferenceKey];
+}
#endif
#if ENABLE(TEXT_AUTOSIZING)
Modified: trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h (242620 => 242621)
--- trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h 2019-03-08 00:36:42 UTC (rev 242621)
@@ -354,6 +354,9 @@
- (void)setMediaPlaybackAllowsAirPlay:(BOOL)flag;
- (BOOL)mediaPlaybackAllowsAirPlay;
+
+- (BOOL)contentChangeObserverEnabled;
+- (void)setContentChangeObserverEnabled:(BOOL)enabled;
#endif
- (void)_setTextAutosizingEnabled:(BOOL)enabled;
Modified: trunk/Source/WebKitLegacy/mac/WebView/WebView.mm (242620 => 242621)
--- trunk/Source/WebKitLegacy/mac/WebView/WebView.mm 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebView.mm 2019-03-08 00:36:42 UTC (rev 242621)
@@ -3012,6 +3012,7 @@
settings.setLayoutInterval(Seconds::fromMilliseconds([preferences _layoutInterval]));
settings.setMaxParseDuration([preferences _maxParseDuration]);
settings.setAlwaysUseAcceleratedOverflowScroll([preferences _alwaysUseAcceleratedOverflowScroll]);
+ settings.setContentChangeObserverEnabled([preferences contentChangeObserverEnabled]);
DeprecatedGlobalSettings::setAudioSessionCategoryOverride([preferences audioSessionCategoryOverride]);
DeprecatedGlobalSettings::setNetworkDataUsageTrackingEnabled([preferences networkDataUsageTrackingEnabled]);
DeprecatedGlobalSettings::setNetworkInterfaceName([preferences networkInterfaceName]);
Modified: trunk/Tools/ChangeLog (242620 => 242621)
--- trunk/Tools/ChangeLog 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Tools/ChangeLog 2019-03-08 00:36:42 UTC (rev 242621)
@@ -1,3 +1,14 @@
+2019-03-07 Zalan Bujtas <[email protected]>
+
+ [ContentChangeObserver] Add a setting to be able to turn content change observation on/off
+ https://bugs.webkit.org/show_bug.cgi?id=195353
+ <rdar://problem/48626394>
+
+ Reviewed by Simon Fraser.
+
+ * WebKitTestRunner/ios/TestControllerIOS.mm:
+ (WTR::TestController::platformResetPreferencesToConsistentValues):
+
2019-03-07 John Wilander <[email protected]>
Resource Load Statistics: Make it possible to purge only script-accessible cookies
Modified: trunk/Tools/WebKitTestRunner/ios/TestControllerIOS.mm (242620 => 242621)
--- trunk/Tools/WebKitTestRunner/ios/TestControllerIOS.mm 2019-03-08 00:23:51 UTC (rev 242620)
+++ trunk/Tools/WebKitTestRunner/ios/TestControllerIOS.mm 2019-03-08 00:36:42 UTC (rev 242621)
@@ -128,6 +128,7 @@
{
WKPreferencesRef preferences = platformPreferences();
WKPreferencesSetTextAutosizingEnabled(preferences, false);
+ WKPreferencesSetContentChangeObserverEnabled(preferences, false);
}
void TestController::platformResetStateToConsistentValues(const TestOptions& options)