From ee4f7c4aa17068cfda347fb6ce51ca0b1958fbb6 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Sun, 22 Apr 2018 22:16:35 +0200 Subject: Revert "Bug 1182569: Update tests when converting docshell loads to use AynscOpen2" This reverts commit b73225e886f84182384a2b5b09f83e51501bdc38. --- dom/base/test/file_simplecontentpolicy.js | 1 + dom/plugins/test/mochitest/test_bug813906.html | 22 ++++------------------ 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/dom/base/test/file_simplecontentpolicy.js b/dom/base/test/file_simplecontentpolicy.js index 2727b9530..1f9606c49 100644 --- a/dom/base/test/file_simplecontentpolicy.js +++ b/dom/base/test/file_simplecontentpolicy.js @@ -39,6 +39,7 @@ var policy = { { // Remember last content type seen for the test url if (contentLocation.spec.endsWith(urlSuffix)) { + assert.ok(frame === browserElement, "correct element"); sendAsyncMessage("shouldLoad", {contentType: contentType, isTopLevel: isTopLevel}); return Ci.nsIContentPolicy.REJECT_REQUEST; } diff --git a/dom/plugins/test/mochitest/test_bug813906.html b/dom/plugins/test/mochitest/test_bug813906.html index d18dbbff2..04c34daaf 100644 --- a/dom/plugins/test/mochitest/test_bug813906.html +++ b/dom/plugins/test/mochitest/test_bug813906.html @@ -18,35 +18,21 @@ function f() {