Title: [295225] trunk/LayoutTests/http/tests/inspector/network/copy-as-fetch.html
Revision
295225
Author
[email protected]
Date
2022-06-03 13:31:58 -0700 (Fri, 03 Jun 2022)

Log Message

New test: http/tests/inspector/network/copy-as-fetch.html is a frequent / flaky failure
https://bugs.webkit.org/show_bug.cgi?id=241279
<rdar://problem/94361782>

Unreviewed text fix.

* LayoutTests/http/tests/inspector/network/copy-as-fetch.html:

Canonical link: https://commits.webkit.org/251280@main

Modified Paths

Diff

Modified: trunk/LayoutTests/http/tests/inspector/network/copy-as-fetch.html (295224 => 295225)


--- trunk/LayoutTests/http/tests/inspector/network/copy-as-fetch.html	2022-06-03 20:29:45 UTC (rev 295224)
+++ trunk/LayoutTests/http/tests/inspector/network/copy-as-fetch.html	2022-06-03 20:31:58 UTC (rev 295225)
@@ -81,8 +81,13 @@
                 ]);
 
                 let resource = resourceWasAddedEvent.data.resource;
+
                 let fetchCode = resource.generateFetchCode();
+
+                // Strip inconsistent headers.
+                fetchCode = fetchCode.replace(/\s+"Accept-Language": ".+?",\n/, "\n");
                 fetchCode = fetchCode.replace(/("User-Agent": )(".+?")(,?\n)/, "$1<filtered>$3");
+
                 InspectorTest.log(fetchCode);
             },
         });
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to