Websites/Snippets/Geolocated-Snippets: Difference between revisions

no edit summary
No edit summary
Line 1: Line 1:
= Elevator Pitch =
= Elevator Pitch =


Line 23: Line 22:
* Consulted: Privacy, Brand, IT, Security, Mike Kelly
* Consulted: Privacy, Brand, IT, Security, Mike Kelly
* Informed: Chris More, Chris Beard, Dave Slater, Mary Colvig, Pete Scanlon
* Informed: Chris More, Chris Beard, Dave Slater, Mary Colvig, Pete Scanlon
= Documentation =
== Testing on Staging ==
The new client-side code is now online. This means there is a working end-to-end system ready for review. In order to exercise it, you need to take the following steps (in Firefox):
# Navigate to about:config
# Search for browser.aboutHomeSnippets.updateUrl
# Change the url to https://snippets.stage.mozilla.com....(the rest of the url that was already there)
# After saving the value, restart the browser.
# Navigate to about:home.
# Open the Web Developer > Web Console (ctrl+shift+k).
# At the prompt (">") enter localStorage['snippets-last-update'] = 0
# At the prompt (">") enter localStorage.geoLastUpdated = 0
# Refresh about:home. You should see a request to snippets.stage.mozilla.com and another request to geo.mozilla.com.
# At the prompt (">") enter localStorage.geoCountry. You should see a country code derived from your IP address ("US" for United States).
You have now requested the new snippets code from the staging snippets server; and the new snippets code has made a request to the new geo server and stored the result in your browser. If you were in a country that had country specific snippets, you would see them. (There are none yet.)
To restore your browser, navigate to about:home again and modify the snippets server URL (steps 1-3 above). Its default value is:
https://snippets.mozilla.com/%STARTPAGE_VERSION%/%NAME%/%VERSION%/%APPBUILDID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/


= Meetings =
= Meetings =
Confirmed users
583

edits