fune/toolkit/components/url-classifier/tests/browser
Kirk Steuber 68f7cb1b36 Bug 1350381 - Change Flash blocking to allow the setting "Ask to Activate" to control CTA of unknown documents. r=qdot
Previously, we operated under the understanding that with Flash blocking activated, non-whitelisted documents would be set to CTA. We are changing that such that now, documents will only be CTA'ed if Flash is set to "Ask to Activate".

Flash blocking will now behave according to the following chart:

User Setting   Flash block   Whitelisted sites   Blacklisted sites    Unlisted sites
"Never ..."    Off           Deny                Deny                 Deny
"Ask ..."      Off           Ask                 Ask                  Ask
"Always ..."   Off           Allow               Allow                Allow
"Never ..."    On            Deny                Deny                 Deny
"Ask ..."      On            Allow               Deny                 Ask
"Always ..."   On            Allow               Deny                 Allow

This patch also completely reworks the flash blocking testing. Test data and most code remains consolidated, but will be run in multiple different tests. This avoids having to extend the timeout for Flash block testing to an extremely long length. The new Flash block testing additionally tests each of the six cases (rows) in the table above.

MozReview-Commit-ID: 5aPGUEiUiCv

--HG--
extra : rebase_source : d5f5711855d108a9a33b9d28aae6e312cc9cb432
2017-03-24 14:15:02 -07:00
..
browser.ini Bug 1350381 - Change Flash blocking to allow the setting "Ask to Activate" to control CTA of unknown documents. r=qdot 2017-03-24 14:15:02 -07:00
browser_flashblock_off_with_always_activate.js Bug 1350381 - Change Flash blocking to allow the setting "Ask to Activate" to control CTA of unknown documents. r=qdot 2017-03-24 14:15:02 -07:00
browser_flashblock_off_with_ask_to_activate.js Bug 1350381 - Change Flash blocking to allow the setting "Ask to Activate" to control CTA of unknown documents. r=qdot 2017-03-24 14:15:02 -07:00
browser_flashblock_off_with_never_activate.js Bug 1350381 - Change Flash blocking to allow the setting "Ask to Activate" to control CTA of unknown documents. r=qdot 2017-03-24 14:15:02 -07:00
browser_flashblock_on_with_always_activate.js Bug 1350381 - Change Flash blocking to allow the setting "Ask to Activate" to control CTA of unknown documents. r=qdot 2017-03-24 14:15:02 -07:00
browser_flashblock_on_with_ask_to_activate.js Bug 1350381 - Change Flash blocking to allow the setting "Ask to Activate" to control CTA of unknown documents. r=qdot 2017-03-24 14:15:02 -07:00
browser_flashblock_on_with_never_activate.js Bug 1350381 - Change Flash blocking to allow the setting "Ask to Activate" to control CTA of unknown documents. r=qdot 2017-03-24 14:15:02 -07:00
classifierHelper.js
classifierTester.js Bug 1350381 - Change Flash blocking to allow the setting "Ask to Activate" to control CTA of unknown documents. r=qdot 2017-03-24 14:15:02 -07:00
flash_block_frame.html