Skip to content

Commit

Permalink
FF 5.0 support (only tested under Windows; needs more testing, not te…
Browse files Browse the repository at this point in the history
…sted with FF 4): Added passthrough setCurrentURI (see https://gist.github.com/943273) and replaced browser.webNavigation._pauseLoadURI with browser.webNavigation.loadURI
  • Loading branch information
fhoech authored and xabolcs committed Aug 27, 2011
1 parent 1565e6a commit 44133fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/prototypes.js
Expand Up @@ -542,6 +542,9 @@ BarTabWebNavigation.prototype = {

/*** These methods and properties are simply passed through. ***/

setCurrentURI: function (aURI) {
return this._original.setCurrentURI(aURI);
},
goBack: function () {
return this._original.goBack();
},
Expand Down Expand Up @@ -686,7 +689,7 @@ BarTabWebProgressListener.prototype = {
let flags = Ci.nsIWebNavigation.LOAD_FLAGS_NONE;
let window = this._tab.ownerDocument.defaultView;
window.setTimeout(function () {
browser.webNavigation._pauseLoadURI(
browser.webNavigation.loadURI(
uri.spec, flags, referrer, postData, null);
}, 0);
},
Expand Down

0 comments on commit 44133fc

Please sign in to comment.