Title: [250452] branches/safari-608-branch/Tools
- Revision
- 250452
- Author
- [email protected]
- Date
- 2019-09-27 13:25:48 -0700 (Fri, 27 Sep 2019)
Log Message
Cherry-pick r250391. rdar://problem/55770728
TestWebKitAPI.WebKit.ReloadWithDifferingInitialScale is failing consistently
https://bugs.webkit.org/show_bug.cgi?id=202273
Reviewed by Aakash Jain.
The content width scaling limits added in r250361 prevent this test from scaling down the content width (2000px
wide) to fit the viewport (375px). To avoid this issue, change the content width from 2000px to 1500px, which is
still a very wide content width for a web page.
* TestWebKitAPI/Tests/WebKitCocoa/ReloadWithDifferingInitialScale.mm:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250391 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-608-branch/Tools/ChangeLog (250451 => 250452)
--- branches/safari-608-branch/Tools/ChangeLog 2019-09-27 20:25:46 UTC (rev 250451)
+++ branches/safari-608-branch/Tools/ChangeLog 2019-09-27 20:25:48 UTC (rev 250452)
@@ -1,5 +1,36 @@
2019-09-27 Alan Coon <[email protected]>
+ Cherry-pick r250391. rdar://problem/55770728
+
+ TestWebKitAPI.WebKit.ReloadWithDifferingInitialScale is failing consistently
+ https://bugs.webkit.org/show_bug.cgi?id=202273
+
+ Reviewed by Aakash Jain.
+
+ The content width scaling limits added in r250361 prevent this test from scaling down the content width (2000px
+ wide) to fit the viewport (375px). To avoid this issue, change the content width from 2000px to 1500px, which is
+ still a very wide content width for a web page.
+
+ * TestWebKitAPI/Tests/WebKitCocoa/ReloadWithDifferingInitialScale.mm:
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250391 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2019-09-26 Wenson Hsieh <[email protected]>
+
+ TestWebKitAPI.WebKit.ReloadWithDifferingInitialScale is failing consistently
+ https://bugs.webkit.org/show_bug.cgi?id=202273
+
+ Reviewed by Aakash Jain.
+
+ The content width scaling limits added in r250361 prevent this test from scaling down the content width (2000px
+ wide) to fit the viewport (375px). To avoid this issue, change the content width from 2000px to 1500px, which is
+ still a very wide content width for a web page.
+
+ * TestWebKitAPI/Tests/WebKitCocoa/ReloadWithDifferingInitialScale.mm:
+
+2019-09-27 Alan Coon <[email protected]>
+
Apply patch. rdar://problem/55608016
2019-09-27 Brent Fulgham <[email protected]>
Modified: branches/safari-608-branch/Tools/TestWebKitAPI/Tests/WebKitCocoa/ReloadWithDifferingInitialScale.mm (250451 => 250452)
--- branches/safari-608-branch/Tools/TestWebKitAPI/Tests/WebKitCocoa/ReloadWithDifferingInitialScale.mm 2019-09-27 20:25:46 UTC (rev 250451)
+++ branches/safari-608-branch/Tools/TestWebKitAPI/Tests/WebKitCocoa/ReloadWithDifferingInitialScale.mm 2019-09-27 20:25:48 UTC (rev 250452)
@@ -64,7 +64,7 @@
// Install the user script, so that the next time we load the page,
// the document lays out very wide, causing the initial scale to be small.
- auto userScript = adoptNS([[WKUserScript alloc] initWithSource:@"document.body.style.width = '2000px'; setTimeout(function () { window.webkit.messageHandlers.testHandler.postMessage('ranUserScript'); }, 0)" injectionTime:WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly:YES]);
+ auto userScript = adoptNS([[WKUserScript alloc] initWithSource:@"document.body.style.width = '1500px'; setTimeout(function () { window.webkit.messageHandlers.testHandler.postMessage('ranUserScript'); }, 0)" injectionTime:WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly:YES]);
[[webView configuration].userContentController addUserScript:userScript.get()];
// Reload, causing both the user script and the page state restoration code to run.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes