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
--- 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