Skip to content

Commit

Permalink
Allow to disable showing links on Status Bar or overlay.
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye116477 committed Feb 15, 2020
1 parent 562645d commit edfb3b9
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions browser/app/profile/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1940,3 +1940,6 @@ pref("browser.menuIcon.style", 0);

// Bookmarks Toolbar Position
pref("browser.bookmarksBar.position", "top");

// Show links on Status Bar or overlay
pref("browser.statusbar.showlinks", true);
6 changes: 4 additions & 2 deletions browser/base/content/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5671,8 +5671,10 @@ var XULBrowserWindow = {
}
}

this.overLink = url;
LinkTargetDisplay.update();
if (Services.prefs.getBoolPref("browser.statusbar.showlinks", true)) {
this.overLink = url;
LinkTargetDisplay.update();
}
},

showTooltip(x, y, tooltip, direction, browser) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Preferences.addAll([
// Status Bar
{ id: "browser.statusbar.mode", type: "int" },
{ id: "browser.statusbar.showbtn", type: "bool" },
{ id: "browser.statusbar.showlinks", type: "bool" },

// Window Controls Position
{ id: "browser.windowControls.position", type: "wstring" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
<checkbox id="showButtonsRange" preference="browser.statusbar.showbtn"
data-l10n-id="show-btn-range"
onsyncfrompreference="showBtnRange();"/>
<checkbox id="showLinks" preference="browser.statusbar.showlinks"
data-l10n-id="show-links"/>
</vbox>
</html:div>
</groupbox>
Expand Down
1 change: 1 addition & 0 deletions browser/components/preferences/in-content/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ Preferences.addAll([
// Status Bar
{ id: "browser.statusbar.mode", type: "int" },
{ id: "browser.statusbar.showbtn", type: "bool" },
{ id: "browser.statusbar.showlinks", type: "bool" },

// Window Controls Position
{ id: "browser.windowControls.position", type: "wstring" },
Expand Down
2 changes: 2 additions & 0 deletions browser/components/preferences/in-content/main.xul
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@
<checkbox id="showButtonsRange" preference="browser.statusbar.showbtn"
data-l10n-id="show-btn-range"
onsyncfrompreference="showBtnRange();"/>
<checkbox id="showLinks" preference="browser.statusbar.showlinks"
data-l10n-id="show-links"/>
</vbox>
</groupbox>

Expand Down
3 changes: 3 additions & 0 deletions browser/locales/en-US/browser/preferences/preferences.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,9 @@ hide-status-bar =
show-btn-range =
.label = Use buttons in range control
show-links =
.label = Show links
tab-bar-position = Tab Bar Position
tab-top-above-ab =
Expand Down

0 comments on commit edfb3b9

Please sign in to comment.