Title: [291427] trunk/Tools
- Revision
- 291427
- Author
- [email protected]
- Date
- 2022-03-17 12:04:53 -0700 (Thu, 17 Mar 2022)
Log Message
Only show notification permission prompt on user gesture
https://bugs.webkit.org/show_bug.cgi?id=237946
Unreviewed build fix for r291414.
* TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (291426 => 291427)
--- trunk/Tools/ChangeLog 2022-03-17 19:02:47 UTC (rev 291426)
+++ trunk/Tools/ChangeLog 2022-03-17 19:04:53 UTC (rev 291427)
@@ -3,6 +3,15 @@
Only show notification permission prompt on user gesture
https://bugs.webkit.org/show_bug.cgi?id=237946
+ Unreviewed build fix for r291414.
+
+ * TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm:
+
+2022-03-17 Ben Nham <[email protected]>
+
+ Only show notification permission prompt on user gesture
+ https://bugs.webkit.org/show_bug.cgi?id=237946
+
Reviewed by Geoffrey Garen.
Change existing permission tests to use evaluateJavaScript since that executes in the
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm (291426 => 291427)
--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm 2022-03-17 19:02:47 UTC (rev 291426)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebPushDaemon.mm 2022-03-17 19:04:53 UTC (rev 291427)
@@ -742,6 +742,12 @@
}
+static const char* mainBytes = R"WEBPUSHRESOURCE(
+<script>
+ Notification.requestPermission().then(() => { alert("done") })
+</script>
+)WEBPUSHRESOURCE";
+
TEST(WebPushD, InstallCoordinationBundles)
{
NSURL *tempDirectory = setUpTestWebPushD();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes