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

Jump to navigation Jump to search
m
Update TEST #1 - blacklist deletions
m (Update to TEST #0 - mozpub)
m (Update TEST #1 - blacklist deletions)
Line 312: Line 312:
* Pull up this test page: https://people.mozilla.org/~fmarier/tracking-test/
* Pull up this test page: https://people.mozilla.org/~fmarier/tracking-test/
* ensure that the resource is blocked:
* ensure that the resource is blocked:
* should be a happy cat with a stop sign
* You should see:
* it shows the Shield
** A black cat bearing its claws <a href="http://people.mozilla.org/~fmarier/tracking-test/cat.png" target="_blank">sad cat</a>
* MESSAGE READS: "The resource at "https://extremetracking.com/" was blocked because tracking protection is enabled." (in the devtool cons)
** A tracking protection shield icon in the URL bar
    only in a 3rd party context (load an image, script from that page)
** A message in the: Tools > Web Developer > Browser Console: "The resource at "https://extremetracking.com/" was blocked because tracking protection is enabled."  
 


'''DELETE FROM LIST'''
'''DELETE FROM LIST'''


* remove extremetracking.com from the blacklist on https://github.com/mozilla-services/shavar-test-lists
* Remove the extremetracking.com json blob from the blacklist on https://github.com/mozilla-services/shavar-test-lists
* trigger the list creation script (rpapa check on Jenkins or ask ckolos / rtilder)
* This will trigger the stage list creation script (Cloud Services QA or Ops team can monitor this in Jenkins)


'''VERIFY DISABLED'''
'''VERIFY DISABLED'''


* update the list on the client
Start Debuggging
** if you restart Firefox, that's one way to force it)
* Restart Firefox from terminal  to force list updates on client
* pref we set in STEP #0: browser.safebrowsing.debug will give us a bu
* 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


* for example, https://pastebin.mozilla.org/8844272
Verify:
* * this output will start 10 - 30 secs after you start browser
* update URL has registered correctly (line #8)
**  important part - line #8 update URL has registered correctly
** Registering whitelist- mozpub-trackwhite-digest256 (line #10)
** line #10 - whitelist
** Checking for updates on shavar server: "checkForUpdates with https://tracking.services.mozilla.com" (line #61)
** line #61 - checking for updates on shavar server
** Request to shavar server begins with: "makeUpdateRequestForEntry_: request mozpub-track-digest256;a:1440776223" (line #108)
** line #108 - this is where the request starts (to shavar server)
** Update success for both lists: "update success for mozpub-track-digest256,mozpub-trackwhite-digest256" (line #112)
** line #112 - success for both of these lists for shavar server
** NOTE: if line #112 failure, rest of test will likely not work!
** if line #112 failure, rest of test will likely not work
** If list with disabled trackingprotection has loaded, you should see: black cat bearing its claws <a href="http://people.mozilla.org/~fmarier/tracking-test/cat.png" target="_blank">sad cat</a>
* now check if it is loaded (should be a sad cat)


[[#top]]
[[#top]]


=== TEST #2: verify list additions ===  
=== TEST #2: verify list additions ===  
Confirmed users
487

edits

Navigation menu