Skip to content

Commit

Permalink
Waterfox G3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
117649 committed Apr 4, 2021
1 parent 821674d commit ba241bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AdvancedLocationbar/chrome/content/urlbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
while (this.pathFileNodeQ.nextSibling != this.pathFileNodeF)
presentation.removeChild(this.pathFileNodeQ.nextSibling);

var pathSegments = UrlbarInput.prototype._getValueFromResult('', this.uri.spec).replace(/^[^:]*:\/\/[^\/]*\//, "");
var pathSegments = UrlbarInput.prototype._getValueFromResult({payload:{url: this.uri.spec}}, this.uri.spec).replace(/^[^:]*:\/\/[^\/]*\//, "");

var iFragment = pathSegments.indexOf("#");
if (iFragment > -1) {
Expand Down Expand Up @@ -470,7 +470,7 @@
var urlstr = this._original_getSelectedValueForClipboard.call(gURLBar);
if (this.copy_unescaped && !gURLBar.valueIsTyped && gURLBar.selectionStart == 0 && gURLBar.selectionEnd == gURLBar.inputField.value.length) {
try {
return UrlbarInput.prototype._getValueFromResult('', urlstr).replace(/[()"\s]/g, escape); // escape() doesn't encode @*_+-./
return UrlbarInput.prototype._getValueFromResult({payload:{url: urlstr}}, urlstr).replace(/[()"\s]/g, escape); // escape() doesn't encode @*_+-./
} catch (e) {
return urlstr;
}
Expand Down

0 comments on commit ba241bb

Please sign in to comment.