mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
For security reasons, dont trim the URL bar when it's not explicitly https
This commit is contained in:
@@ -220,11 +220,7 @@ var gZenUIManager = {
|
||||
urlbarTrim(aURL) {
|
||||
if (gZenVerticalTabsManager._hasSetSingleToolbar) {
|
||||
let url = BrowserUIUtils.removeSingleTrailingSlashFromURL(aURL);
|
||||
// ignore localstore
|
||||
if (url.startsWith('http://localhost') || url.startsWith('https://localhost')) {
|
||||
return url;
|
||||
}
|
||||
return url.startsWith('http://') || url.startsWith('https://') ? url.split('/')[2] : url;
|
||||
return url.startsWith('https://') ? url.split('/')[2] : url;
|
||||
}
|
||||
return BrowserUIUtils.trimURL(aURL);
|
||||
},
|
||||
|
Reference in New Issue
Block a user