From ba8a3da59fbc70fc0397c62c320b5fa6fff4575b Mon Sep 17 00:00:00 2001 From: James Byers Date: Fri, 21 Oct 2016 13:34:58 -0700 Subject: [PATCH] Fix iframe bug as a side-effect of security policy changes in FF 49 --- jquery.iframe-transport.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery.iframe-transport.js b/jquery.iframe-transport.js index e8ef077..289c5cd 100644 --- a/jquery.iframe-transport.js +++ b/jquery.iframe-transport.js @@ -122,7 +122,7 @@ }); form.remove(); iframe.one("load", function() { iframe.remove(); }); - iframe.attr("src", "javascript:false;"); + iframe.attr("src", "about:blank"); } // Remove "iframe" from the data types list so that further processing is @@ -190,7 +190,7 @@ // The `send` function is called by jQuery when the request should be // sent. send: function(headers, completeCallback) { - iframe = $(""); // The first load event gets fired after the iframe has been injected @@ -235,7 +235,7 @@ // aborted. abort: function() { if (iframe !== null) { - iframe.unbind("load").attr("src", "javascript:false;"); + iframe.unbind("load").attr("src", "about:blank"); cleanUp(); } }