Bug 1317856 - Ensure that flashblock tests are not affected by nosrc fallback rule. r=bytesized draft
authorFelipe Gomes <felipc@gmail.com>
Tue, 16 May 2017 16:33:20 -0300
changeset 578978 ace9ffd8d49d32cc1e771fe7f4853defaf513ae0
parent 578977 8426c5e367d0661b9809b68292746faa5c60d78d
child 628876 d5c71976685b7b4c8d090d0e577ca89cf38b6788
push id59109
push userfelipc@gmail.com
push dateTue, 16 May 2017 19:34:12 +0000
reviewersbytesized
bugs1317856
milestone55.0a1
Bug 1317856 - Ensure that flashblock tests are not affected by nosrc fallback rule. r=bytesized With the activation of Ask-to-Activate mode by default, we'll also activate the fallback rule that favors fallback content when the object has not provided a src, so we need to prepare this test for that MozReview-Commit-ID: BUzi58YdD0a
toolkit/components/url-classifier/tests/browser/browser.ini
toolkit/components/url-classifier/tests/browser/flash_block_frame.html
toolkit/components/url-classifier/tests/browser/simple_blank.swf
--- a/toolkit/components/url-classifier/tests/browser/browser.ini
+++ b/toolkit/components/url-classifier/tests/browser/browser.ini
@@ -1,13 +1,14 @@
 [DEFAULT]
 support-files =
   flash_block_frame.html
   classifierHelper.js
   classifierTester.js
+  simple_blank.swf
 
 [browser_flashblock_on_with_never_activate.js]
 [browser_flashblock_off_with_never_activate.js]
 [browser_flashblock_on_with_ask_to_activate.js]
 [browser_flashblock_off_with_ask_to_activate.js]
 [browser_flashblock_on_with_always_activate.js]
 [browser_flashblock_off_with_always_activate.js]
 
--- a/toolkit/components/url-classifier/tests/browser/flash_block_frame.html
+++ b/toolkit/components/url-classifier/tests/browser/flash_block_frame.html
@@ -1,13 +1,15 @@
 <!DOCTYPE HTML>
 <html>
 <head>
   <title>Test the URI Classifier</title>
 </head>
 <body>
   <h1>Test page</h1>
-  <object id="testObject" width="100" height="100" type="application/x-shockwave-flash-test"></object>
+  <object id="testObject" width="100" height="100"
+  		  type="application/x-shockwave-flash-test"
+  		  data="simple_blank.swf"></object>
   <br>
   <iframe id="testFrame">
   </iframe>
 </body>
 </html>
copy from layout/generic/crashtests/simple_blank.swf
copy to toolkit/components/url-classifier/tests/browser/simple_blank.swf