-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"SecurityError: The operation is insecure" on Firefox #248
Comments
So we're missing a pwa-wp/wp-includes/service-workers.php Lines 161 to 186 in 261c15e
|
Seems like... |
Would you like to open a PR? Should it be putting the error in the console via |
Thank you for your offer! I better not touch frontend code. |
I can't reproduce this issue. In private browsing, |
OK, I can see that now: With this patch: diff --git a/wp-includes/service-workers.php b/wp-includes/service-workers.php
index 2197787..17cb864 100644
--- a/wp-includes/service-workers.php
+++ b/wp-includes/service-workers.php
@@ -183,6 +183,9 @@ function wp_print_service_workers() {
} );
} );
<?php endif; ?>
+ } )
+ .catch( ( err ) => {
+ console.info( "Service worker will not be installed due to:", err );
} );
<?php if ( is_admin_bar_showing() && ! wp_service_worker_skip_waiting() ) : ?> The result is: Doesn't seem a whole lot better. |
I think we need |
No, I don't think that is right. The |
Yes, we have the same problem as others in the Mozilla bug:
|
Please check the returned Promise. It could be rejected with a certain cookie setting
See https://bugzilla.mozilla.org/show_bug.cgi?id=1429714#c1
The text was updated successfully, but these errors were encountered: