Skip to content

Prevent needless wordpress_sw_installed cookie from being set outside the wp-admin#189

Merged
westonruter merged 2 commits intomasterfrom
fix/prevent-front-cookie-sw-installed
Jul 4, 2019
Merged

Prevent needless wordpress_sw_installed cookie from being set outside the wp-admin#189
westonruter merged 2 commits intomasterfrom
fix/prevent-front-cookie-sw-installed

Conversation

@westonruter
Copy link
Collaborator

Fixes #188.

The wordpress_sw_installed cookie is only used to disable $concatenate_scripts so it is only needed when installing the admin service worker. This PR limits the cookie to the admin and ensures the cookie path matches the admin scope:

image

@westonruter westonruter added this to the 0.3 milestone Jul 3, 2019
@westonruter westonruter requested a review from iandunn July 3, 2019 23:55
Copy link

@iandunn iandunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the branch in a local WordCamp.org environment and it worked, thanks!

@westonruter westonruter merged commit 1a5a1a8 into master Jul 4, 2019
@westonruter westonruter deleted the fix/prevent-front-cookie-sw-installed branch July 4, 2019 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants