From 04bf4747362d25ca61259e5e1c7941a346e330cc Mon Sep 17 00:00:00 2001 From: mattyrob Date: Sun, 2 Jul 2023 09:18:20 +0100 Subject: [PATCH 1/2] Inject bridge.js into top frame only --- chrome/bridge.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/bridge.js b/chrome/bridge.js index 08e8679..a757913 100644 --- a/chrome/bridge.js +++ b/chrome/bridge.js @@ -8,6 +8,9 @@ /* global QUnit:true */ (function (factory) { + if (window.self !== window.top) { + return; + } if (typeof define === 'function' && define.amd) { require(['qunit'], factory); } else { From 60b222481d7237104c5b255b087f3574954cfe31 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Sun, 2 Jul 2023 19:59:31 +0100 Subject: [PATCH 2/2] Update bridge.js --- chrome/bridge.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/bridge.js b/chrome/bridge.js index a757913..101c842 100644 --- a/chrome/bridge.js +++ b/chrome/bridge.js @@ -9,6 +9,7 @@ /* global QUnit:true */ (function (factory) { if (window.self !== window.top) { + // Ignore iframes. https://github.com/gruntjs/grunt-contrib-qunit/issues/202 return; } if (typeof define === 'function' && define.amd) {