Bug 800394 - Force SafeBrowsing to be initialized in safebrowsing tests; r=gcp
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 11 Oct 2012 12:00:08 -0400
changeset 110090 442540c013bb743c1768cb46c672166c52b631e6
parent 110089 a3eab8fc98830938f3075753b79c577b4bf0b670
child 110091 9bebe479b5ba2907285ebf4faa87a8cedea4bbff
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersgcp
bugs800394
milestone19.0a1
Bug 800394 - Force SafeBrowsing to be initialized in safebrowsing tests; r=gcp
browser/components/privatebrowsing/test/browser/Makefile.in
browser/components/safebrowsing/content/test/Makefile.in
browser/components/safebrowsing/content/test/head.js
--- a/browser/components/safebrowsing/content/test/Makefile.in
+++ b/browser/components/safebrowsing/content/test/Makefile.in
@@ -13,15 +13,16 @@ include $(DEPTH)/config/autoconf.mk
 include $(topsrcdir)/config/rules.mk
 
 # The browser chrome test for bug 415846 doesn't run on Mac because of its
 # bizarre special-and-unique snowflake of a help menu.
 ifneq (cocoa,$(MOZ_WIDGET_TOOLKIT))
 _NON_MAC_BROWSER_TESTS = browser_bug415846.js
 endif
 
-_BROWSER_FILES = browser_bug400731.js \
+_BROWSER_FILES = head.js \
+                 browser_bug400731.js \
                  $(_NON_MAC_BROWSER_TESTS) \
     $(NULL)
 
 libs::	$(_BROWSER_FILES)
 	$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
 
new file mode 100644
--- /dev/null
+++ b/browser/components/safebrowsing/content/test/head.js
@@ -0,0 +1,3 @@
+// Force SafeBrowsing to be initialized for the tests
+SafeBrowsing.init();
+