You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removing query params from the viewer iframe works, but they remain missing on back navigation in some cases. Missing query params affects some AMP functionality e.g. QUERY_PARAM() URL variable replacement.
I also did a quick code search for parseQueryString() and location.search and found the following usages:
One solution that was suggested is to store the query params in memory before removal e.g. fix the above usages.
A simpler solution is to just restore the query params to the viewer iframe after the navigation event -- either on pageshow event when back navigation triggers the page cache (bfcache) or on next event loop for _blank navigation.
dreamofabear
changed the title
Safari 13: Remove viewer query params on navigation
Safari 13: Viewer query params cause document.referrer downgrade
Oct 24, 2019
Avoids
Document.referrer
downgrade due to harmless viewer query params likeamp_js_v
andusqp
./cc @ampproject/wg-analytics
The text was updated successfully, but these errors were encountered: