Services/TrackingProtection/Shavar Server - Testing: Difference between revisions

Jump to navigation Jump to search
m
Update to TEST #3
m (Update to TEST #2)
m (Update to TEST #3)
Line 357: Line 357:
=== TEST #3: verify whitelist updates  ===  
=== TEST #3: verify whitelist updates  ===  


'''NOTE: '''
'''SUMMARY'''


* this is very much like TEST #1, but just verifying something different
* This test is similar to TEST #1, but now we verify the whitelist update (vs. blacklist update)
* might be able to merge TEST #1, #3
* Normally googlesyndication is whitelisted so that it doesn't get blocked from YouTube
* By removing it from whitelist, we should be able to verify that it now gets blocked!


'''STEPS'''
'''VERIFY ENABLED'''
Start Debuggging
* Restart Firefox from terminal to force list updates on client
* The pref set in STEP #0 (browser.safebrowsing.debug) will output debug messages like so: https://pastebin.mozilla.org/8844272
* Debug output will start in terminal 10 - 30 secs after you start browser


* remove googlesyndication.com from the "Google" organisation in the whitelist (github/shavar-test-lists)
'''REMOVE FROM WHITELIST'''
* wait for the list to be updated in S3
 
* update the list on the client (if you restart Firefox, that's one way to force it)
* Remove googlesyndication.com from the "Google" organization json blog in the whitelist - https://github.com/mozilla-services/shavar-test-lists
* restart Firefox
* This will trigger the stage list creation script (Cloud Services QA or Ops team can monitor this in Jenkins)
* wait for the whitelist to be updated in Firefox:
 
* i.e.: https://pastebin.mozilla.org/8844272 line #112 - success for both of these lists for shavar server
'''VERIFY DISABLED'''
* update URL has registered correctly (line #8)
** Registering whitelist- mozpub-trackwhite-digest256 (line #10)
** Checking for updates on shavar server: "checkForUpdates with https://tracking.services.mozilla.com" (line #61)
** Request to shavar server begins with: "makeUpdateRequestForEntry_: request mozpub-track-digest256;a:1440776223" (line #108)
** Update success for both lists: "update success for mozpub-track-digest256,mozpub-trackwhite-digest256" (line #112)
** NOTE: if line #112 failure, rest of test will likely not work!
* visit youtube.com
* visit youtube.com
* you should see the shield in the url bar
** you should NOT see the shield in the url bar
* in the devtool console tab, you should see that googlesyndication.com was blocked because of TP
* In the: Tools > Web Developer > Browser Console, you should see that googlesyndication.com was blocked because of TrackingProtection




[[#top]]
[[#top]]
Confirmed users
487

edits

Navigation menu