diff --git a/dom/tests/mochitest/bugs/Makefile.in b/dom/tests/mochitest/bugs/Makefile.in index 134289cd86f8..9f5e6a075391 100644 --- a/dom/tests/mochitest/bugs/Makefile.in +++ b/dom/tests/mochitest/bugs/Makefile.in @@ -121,6 +121,7 @@ _TEST_FILES = \ test_bug581072.html \ test_bug583225.html \ test_bug585819.html \ + test_bug369306.html \ $(NULL) libs:: $(_TEST_FILES) diff --git a/dom/tests/mochitest/bugs/test_bug369306.html b/dom/tests/mochitest/bugs/test_bug369306.html new file mode 100644 index 000000000000..62164caafd51 --- /dev/null +++ b/dom/tests/mochitest/bugs/test_bug369306.html @@ -0,0 +1,168 @@ + + + + + Test for Bug 369306 + + + + + + +Mozilla Bug 369306 +

+
+
+
+
+
+ + diff --git a/modules/plugin/test/mochitest/cocoa_window_focus.html b/modules/plugin/test/mochitest/cocoa_window_focus.html index fa205c419f96..b44bdd3a3e58 100644 --- a/modules/plugin/test/mochitest/cocoa_window_focus.html +++ b/modules/plugin/test/mochitest/cocoa_window_focus.html @@ -46,7 +46,12 @@ } // Send our window to the back and make sure plugins were properly notified. - window.blur(); + // Calling window.blur() is not allowed. + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + var fm = Components.classes["@mozilla.org/focus-manager;1"]. + getService(Components.interfaces.nsIFocusManager); + fm.focusedWindow = window.opener; + expectedEventCount++; is(plugin1.getTopLevelWindowActivationState(), false, "Activation state should be: deactivated");