Skip to content

Commit

Permalink
Merge pull request #46 from jbyers/master
Browse files Browse the repository at this point in the history
Fix iframe bug as a side-effect of security policy changes in FF 49
  • Loading branch information
cmlenz authored Oct 29, 2016
2 parents 814c484 + ba8a3da commit f9a5446
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jquery.iframe-transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -190,7 +190,7 @@
// The `send` function is called by jQuery when the request should be
// sent.
send: function(headers, completeCallback) {
iframe = $("<iframe src='javascript:false;' name='" + name +
iframe = $("<iframe src='about:blank' name='" + name +
"' id='" + name + "' style='display:none'></iframe>");

// The first load event gets fired after the iframe has been injected
Expand Down Expand Up @@ -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();
}
}
Expand Down

0 comments on commit f9a5446

Please sign in to comment.