Unreviewed, update WebKit.CustomHeaderFields API test after r229133.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Mar 2018 18:41:41 +0000 (18:41 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Mar 2018 18:41:41 +0000 (18:41 +0000)
We no longer do policy checks for 'about:blank'.

* TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:
(-[CustomHeaderFieldsDelegate webView:startURLSchemeTask:]):
(TEST):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229136 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm

index 248b2b6..9f1e791 100644 (file)
@@ -1,3 +1,13 @@
+2018-03-01  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed, update WebKit.CustomHeaderFields API test after r229133.
+
+        We no longer do policy checks for 'about:blank'.
+
+        * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:
+        (-[CustomHeaderFieldsDelegate webView:startURLSchemeTask:]):
+        (TEST):
+
 2018-02-28  Jonathan Bedard  <jbedard@apple.com>
 
         [webkitpy] Remove concept of 'future' versions (Follow-up fix 2)
index 746ce7d..749e10e 100644 (file)
@@ -747,9 +747,6 @@ static void respond(id <WKURLSchemeTask>task, NSString *html = nil)
         expectHeaders(urlSchemeTask, true);
         respond(urlSchemeTask);
         thirdTestDone = true;
-    } else if ([path isEqualToString:@"/createaboutblankiframe"]) {
-        expectHeaders(urlSchemeTask, true);
-        respond(urlSchemeTask, @"<script>start=()=>{var s = document.createElement('script');s.text=\"fetch('test:///requestfromaboutblank')\";document.getElementById('iframeid').contentWindow.document.body.appendChild(s);}</script><body><iframe src='about:blank' id=iframeid onload='start()'></iframe></body>");
     } else if ([path isEqualToString:@"/requestfromaboutblank"]) {
         expectHeaders(urlSchemeTask, true);
         respond(urlSchemeTask);
@@ -779,12 +776,6 @@ TEST(WebKit, CustomHeaderFields)
 
     [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"test://toporigin/nestedtop"]]];
     TestWebKitAPI::Util::run(&thirdTestDone);
-
-    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"test:///createaboutblankiframe"]]];
-    TestWebKitAPI::Util::run(&fourthTestDone);
-    fourthTestDone = false;
-    [webView reload];
-    TestWebKitAPI::Util::run(&fourthTestDone);
 }
 
 @interface PopUpPoliciesDelegate : NSObject <WKNavigationDelegate, WKUIDelegatePrivate>