Skip to content

Commit

Permalink
Fix iframe bug as a side-effect of security policy changes in FF 49
Browse files Browse the repository at this point in the history
  • Loading branch information
jbyers committed Oct 21, 2016
1 parent 814c484 commit ba8a3da
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 ba8a3da

Please sign in to comment.