Skip to content

Commit

Permalink
[WFX-347] Remove redundant extensibles code.
Browse files Browse the repository at this point in the history
To be squashed with [WFX-171].
  • Loading branch information
adamp01 authored and MrAlex94 committed Mar 7, 2022
1 parent 3b9d71a commit 673fca2
Show file tree
Hide file tree
Showing 21 changed files with 11 additions and 1,412 deletions.
2 changes: 1 addition & 1 deletion browser/base/content/appmenu-viewcache.inc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@
oncommand="PanelUI.showSubView('PanelUI-helpView', this)"/>
#ifndef XP_MACOSX
<toolbarseparator/>
#include ../../extensions/extensibles/extension/builtins/appmenu/restartbutton.inc
#include ../../extensions/extensibles/builtins/appmenu/restartbutton.inc
<toolbarbutton id="appMenu-quit-button2"
class="subviewbutton"
data-l10n-id="appmenuitem-exit2"
Expand Down
2 changes: 1 addition & 1 deletion browser/base/content/browser-menubar.inc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
type="checkbox"
command="cmd_toggleOfflineStatus" data-l10n-id="menu-file-go-offline"/>
#ifdef XP_MACOSX
#include ../../extensions/extensibles/extension/builtins/menubar/restartbutton.inc
#include ../../extensions/extensibles/builtins/menubar/restartbutton.inc
#endif
<menuitem id="menu_FileQuitItem"
#ifdef XP_MACOSX
Expand Down
2 changes: 1 addition & 1 deletion browser/base/content/browser.css
Original file line number Diff line number Diff line change
Expand Up @@ -1644,4 +1644,4 @@ toolbar[keyNav=true]:not([collapsed=true], [customizing=true]) toolbartabstop {
* End Dialogs
*/

%include ../../extensions/extensibles/extension/css/tabfeatures.inc.css
%include ../../extensions/extensibles/css/tabfeatures.inc.css
2 changes: 1 addition & 1 deletion browser/base/content/main-popupset.inc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
oncommand="duplicateTabIn(TabContextMenu.contextTab, 'tab');"/>
<menuitem id="context_duplicateTabs" data-lazy-l10n-id="duplicate-tabs"
oncommand="TabContextMenu.duplicateSelectedTabs();"/>
#include ../../extensions/extensibles/extension/builtins/context/copyurl.inc
#include ../../extensions/extensibles/builtins/context/copyurl.inc
<menuseparator/>
<menuitem id="context_bookmarkSelectedTabs"
hidden="true"
Expand Down
8 changes: 0 additions & 8 deletions browser/base/content/tabbrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -7293,12 +7293,4 @@ var TabContextMenu = {
sharingService.openSharingPreferences();
}
},

copyTabUrl(uri) {
Services.obs.notifyObservers(null, "menuitem-copyurl-extension", uri);
},

copyAllTabUrls() {
Services.obs.notifyObservers(null, "menuitem-copyallurls-extension");
},
};
4 changes: 2 additions & 2 deletions browser/components/preferences/main.inc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
</hbox>
</vbox>

#include ../../extensions/extensibles/extension/builtins/preferences/tabfeatures.inc
#include ../../extensions/extensibles/builtins/preferences/tabfeatures.inc

</groupbox>
<hbox id="languageAndAppearanceCategory"
Expand Down Expand Up @@ -337,7 +337,7 @@
preference="layout.spellcheckDefault"/>
</groupbox>

#include ../../extensions/extensibles/extension/builtins/preferences/otherfeatures.inc
#include ../../extensions/extensibles/builtins/preferences/otherfeatures.inc

<!-- Files and Applications -->
<hbox id="filesAndApplicationsCategory"
Expand Down
4 changes: 2 additions & 2 deletions browser/components/preferences/privacy.inc.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
</vbox>
</groupbox>

#include ../../extensions/extensibles/extension/builtins/preferences/privacyconnections.inc
#include ../../extensions/extensibles/builtins/preferences/privacyconnections.inc

<!-- Site Data -->
<groupbox id="siteDataGroup" data-category="panePrivacy" hidden="true" aria-describedby="totalSiteDataSize">
Expand Down Expand Up @@ -825,7 +825,7 @@
</hbox>
</hbox>

#include ../../extensions/extensibles/extension/builtins/preferences/privacypermissions.inc
#include ../../extensions/extensibles/builtins/preferences/privacypermissions.inc

</groupbox>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<menuitem
id="context_copyTabUrl"
class="tabFeature"
oncommand="TabContextMenu.copyTabUrl(TabContextMenu.contextTab.linkedBrowser.currentURI.spec);"
oncommand="TabFeatures.copyTabUrl(TabContextMenu.contextTab.linkedBrowser.currentURI.spec, window);"
data-lazy-l10n-id="copy-url"
preference="browser.tabs.copyurl"
/>
<menuitem
id="context_copyAllTabUrls"
class="tabFeature"
oncommand="TabContextMenu.copyAllTabUrls();"
oncommand="TabFeatures.copyAllTabUrls(window);"
data-lazy-l10n-id="copy-all-urls"
preference="browser.tabs.copyallurls"
/>
Loading

0 comments on commit 673fca2

Please sign in to comment.