From b29d21f30b638b1a1eee57dfb462316075a6d104 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Sat, 15 Mar 2014 17:52:58 -0400 Subject: [PATCH] Trial fix for bug 886782 --- .../test/mochitest/test_NPNVdocumentOrigin.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dom/plugins/test/mochitest/test_NPNVdocumentOrigin.html b/dom/plugins/test/mochitest/test_NPNVdocumentOrigin.html index 9a7ff19416d..21902e6899f 100644 --- a/dom/plugins/test/mochitest/test_NPNVdocumentOrigin.html +++ b/dom/plugins/test/mochitest/test_NPNVdocumentOrigin.html @@ -31,12 +31,14 @@ // Create a plugin in a new window with about:blank var newWindow = window.open("about:blank"); - newWindow.document.writeln(''); - var p2 = newWindow.document.getElementById("plugin2"); - is(p2.getNPNVdocumentOrigin(), realOrigin, "Checking for expected origin of plugin in new about:blank window."); - newWindow.close(); + newWindow.onload = function() { + newWindow.document.writeln(''); + var p2 = newWindow.document.getElementById("plugin2"); + is(p2.getNPNVdocumentOrigin(), realOrigin, "Checking for expected origin of plugin in new about:blank window."); + newWindow.close(); - SimpleTest.finish(); + SimpleTest.finish(); + }; }