From aba8c3653e0ef7232fe953bc7370f4ddfd82f62f Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 14 Aug 2015 17:30:07 -0700 Subject: [PATCH] Make iframe bug workaround handle case where styles are injected into document.head by other scripts. #454 --- src/General/Main.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/General/Main.coffee b/src/General/Main.coffee index a39f72e4b..8e69c63db 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -1,7 +1,7 @@ Main = init: -> - # XXX Work around Pale Moon iframe bug. - return if d.body and not d.head.firstChild + # XXX Work around Pale Moon / old Firefox + GM 1.15 bug where script runs in iframe with wrong window.location. + return if d.body and not $ 'title', d.head # XXX dwb userscripts extension reloads scripts run at document-start when replaceState/pushState is called. return if window['<%= meta.name %> antidup']