Bug 1317856 - Ensure that flashblock tests are not affected by nosrc fallback rule. r=bytesized
authorFelipe Gomes <felipc@gmail.com>
Tue, 16 May 2017 22:56:23 -0300
changeset 579416 ddc27dd93ec08c707dbfb924d7b51a23861c96b7
parent 579415 e30e7ee30b7c7672ae4bf6265e63db5ae8829d53
child 579417 12a7b0378709f992bbd81e6e1c12f92da324c5bb
push id59244
push usergsquelart@mozilla.com
push dateWed, 17 May 2017 09:45:34 +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: JmmxJEiziHW
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