Skip to content

Commit f9a5446

Browse files
authored
Merge pull request #46 from jbyers/master
Fix iframe bug as a side-effect of security policy changes in FF 49
2 parents 814c484 + ba8a3da commit f9a5446

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jquery.iframe-transport.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
});
123123
form.remove();
124124
iframe.one("load", function() { iframe.remove(); });
125-
iframe.attr("src", "javascript:false;");
125+
iframe.attr("src", "about:blank");
126126
}
127127

128128
// Remove "iframe" from the data types list so that further processing is
@@ -190,7 +190,7 @@
190190
// The `send` function is called by jQuery when the request should be
191191
// sent.
192192
send: function(headers, completeCallback) {
193-
iframe = $("<iframe src='javascript:false;' name='" + name +
193+
iframe = $("<iframe src='about:blank' name='" + name +
194194
"' id='" + name + "' style='display:none'></iframe>");
195195

196196
// The first load event gets fired after the iframe has been injected
@@ -235,7 +235,7 @@
235235
// aborted.
236236
abort: function() {
237237
if (iframe !== null) {
238-
iframe.unbind("load").attr("src", "javascript:false;");
238+
iframe.unbind("load").attr("src", "about:blank");
239239
cleanUp();
240240
}
241241
}

0 commit comments

Comments
 (0)