firefox-kde.patch
branchfirefox48
changeset 929 9fc2ebe6d7f1
parent 923 3cc9f17ca9bb
child 932 a58cc7936ce7
equal deleted inserted replaced
928:4663386a04de 929:9fc2ebe6d7f1
     1 # HG changeset patch
     1 # HG changeset patch
     2 # Parent  07e419c2bbc63c486d25fd8ce117abd10e9ebdba
     2 # Parent  2704257a50b4ff60fa43eca8d4a547c6d70bb30e
     3 
     3 
     4 diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul
     4 diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul
     5 new file mode 100644
     5 new file mode 100644
     6 --- /dev/null
     6 --- /dev/null
     7 +++ b/browser/base/content/browser-kde.xul
     7 +++ b/browser/base/content/browser-kde.xul
     8 @@ -0,0 +1,1174 @@
     8 @@ -0,0 +1,1179 @@
     9 +#filter substitution
     9 +#filter substitution
    10 +<?xml version="1.0"?>
    10 +<?xml version="1.0"?>
    11 +# -*- Mode: HTML -*-
    11 +# -*- Mode: HTML -*-
    12 +#
    12 +#
    13 +# This Source Code Form is subject to the terms of the Mozilla Public
    13 +# This Source Code Form is subject to the terms of the Mozilla Public
    14 +# License, v. 2.0. If a copy of the MPL was not distributed with this
    14 +# License, v. 2.0. If a copy of the MPL was not distributed with this
    15 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
    15 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
    16 +
    16 +
    17 +<?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
    17 +<?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
    18 +<?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
    18 +<?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
       
    19 +<?xml-stylesheet href="chrome://browser/content/usercontext/usercontext.css" type="text/css"?>
    19 +<?xml-stylesheet href="chrome://devtools/skin/devtools-browser.css" type="text/css"?>
    20 +<?xml-stylesheet href="chrome://devtools/skin/devtools-browser.css" type="text/css"?>
    20 +<?xml-stylesheet href="chrome://browser/skin/controlcenter/panel.css" type="text/css"?>
    21 +<?xml-stylesheet href="chrome://browser/skin/controlcenter/panel.css" type="text/css"?>
    21 +<?xml-stylesheet href="chrome://browser/skin/customizableui/panelUIOverlay.css" type="text/css"?>
    22 +<?xml-stylesheet href="chrome://browser/skin/customizableui/panelUIOverlay.css" type="text/css"?>
    22 +<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
    23 +<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
    23 +<?xml-stylesheet href="chrome://browser/skin/browser-lightweightTheme.css" type="text/css"?>
    24 +<?xml-stylesheet href="chrome://browser/skin/browser-lightweightTheme.css" type="text/css"?>
   293 +           hidden="true"
   294 +           hidden="true"
   294 +           flip="slide"
   295 +           flip="slide"
   295 +           rolluponmousewheel="true"
   296 +           rolluponmousewheel="true"
   296 +           noautofocus="true"
   297 +           noautofocus="true"
   297 +           position="topcenter topright"/>
   298 +           position="topcenter topright"/>
   298 +
       
   299 +    <panel id="loop-notification-panel"
       
   300 +           class="loop-panel social-panel"
       
   301 +           type="arrow"
       
   302 +           hidden="true"
       
   303 +           noautofocus="true"/>
       
   304 +
       
   305 +    <panel id="loop-panel"
       
   306 +           class="loop-panel social-panel"
       
   307 +           type="arrow"
       
   308 +           orient="horizontal"
       
   309 +           hidden="true"/>
       
   310 +
   299 +
   311 +    <menupopup id="toolbar-context-menu"
   300 +    <menupopup id="toolbar-context-menu"
   312 +               onpopupshowing="onViewToolbarsPopupShowing(event, document.getElementById('viewToolbarsMenuSeparator'));">
   301 +               onpopupshowing="onViewToolbarsPopupShowing(event, document.getElementById('viewToolbarsMenuSeparator'));">
   313 +      <menuitem oncommand="gCustomizeMode.addToPanel(document.popupNode)"
   302 +      <menuitem oncommand="gCustomizeMode.addToPanel(document.popupNode)"
   314 +                accesskey="&customizeMenu.moveToPanel.accesskey;"
   303 +                accesskey="&customizeMenu.moveToPanel.accesskey;"
   386 +                              gContextMenu = null;
   375 +                              gContextMenu = null;
   387 +                              updateEditUIVisibility();">
   376 +                              updateEditUIVisibility();">
   388 +#include browser-context.inc
   377 +#include browser-context.inc
   389 +    </menupopup>
   378 +    </menupopup>
   390 +
   379 +
   391 +    <menupopup id="placesContext"/>
   380 +    <menupopup id="placesContext">
       
   381 +      <menuseparator id="placesContext_recentlyBookmarkedSeparator"
       
   382 +                     ignoreitem="true"
       
   383 +                     ordinal="2"
       
   384 +                     hidden="true"/>
       
   385 +      <menuitem id="placesContext_hideRecentlyBookmarked"
       
   386 +                label="&hideRecentlyBookmarked.label;"
       
   387 +                accesskey="&hideRecentlyBookmarked.accesskey;"
       
   388 +                oncommand="BookmarkingUI.hideRecentlyBookmarked();"
       
   389 +                closemenu="single"
       
   390 +                ignoreitem="true"
       
   391 +                ordinal="2"
       
   392 +                hidden="true"/>
       
   393 +      <menuitem id="placesContext_showRecentlyBookmarked"
       
   394 +                label="&showRecentlyBookmarked.label;"
       
   395 +                accesskey="&showRecentlyBookmarked.accesskey;"
       
   396 +                oncommand="BookmarkingUI.showRecentlyBookmarked();"
       
   397 +                closemenu="single"
       
   398 +                ignoreitem="true"
       
   399 +                ordinal="2"
       
   400 +                hidden="true"/>
       
   401 +    </menupopup>
   392 +
   402 +
   393 +    <panel id="ctrlTab-panel" class="KUI-panel" hidden="true" norestorefocus="true" level="top">
   403 +    <panel id="ctrlTab-panel" class="KUI-panel" hidden="true" norestorefocus="true" level="top">
   394 +      <hbox>
   404 +      <hbox>
   395 +        <button class="ctrlTab-preview" flex="1"/>
   405 +        <button class="ctrlTab-preview" flex="1"/>
   396 +        <button class="ctrlTab-preview" flex="1"/>
   406 +        <button class="ctrlTab-preview" flex="1"/>
   399 +        <button class="ctrlTab-preview" flex="1"/>
   409 +        <button class="ctrlTab-preview" flex="1"/>
   400 +        <button class="ctrlTab-preview" flex="1"/>
   410 +        <button class="ctrlTab-preview" flex="1"/>
   401 +      </hbox>
   411 +      </hbox>
   402 +      <hbox pack="center">
   412 +      <hbox pack="center">
   403 +        <button id="ctrlTab-showAll" class="ctrlTab-preview" noicon="true"/>
   413 +        <button id="ctrlTab-showAll" class="ctrlTab-preview" noicon="true"/>
   404 +      </hbox>
       
   405 +    </panel>
       
   406 +
       
   407 +    <!-- Sync Panel -->
       
   408 +    <panel id="sync-start-panel" class="sync-panel" type="arrow" hidden="true"
       
   409 +           noautofocus="true" onclick="this.hidePopup();"
       
   410 +           flip="slide">
       
   411 +      <hbox class="sync-panel-outer">
       
   412 +        <image class="sync-panel-icon"/>
       
   413 +        <vbox class="sync-panel-inner">
       
   414 +          <description id="sync-start-panel-title"
       
   415 +                       value="&syncStartPanel2.heading;"/>
       
   416 +          <description id="sync-start-panel-subtitle"
       
   417 +                       value="&syncStartPanel2.subTitle;"/>
       
   418 +        </vbox>
       
   419 +      </hbox>
   414 +      </hbox>
   420 +    </panel>
   415 +    </panel>
   421 +
   416 +
   422 +    <!-- Bookmarks and history tooltip -->
   417 +    <!-- Bookmarks and history tooltip -->
   423 +    <tooltip id="bhTooltip"/>
   418 +    <tooltip id="bhTooltip"/>
   632 +          <menuitem id="alltabs_undoCloseTab"
   627 +          <menuitem id="alltabs_undoCloseTab"
   633 +                    class="menuitem-iconic"
   628 +                    class="menuitem-iconic"
   634 +                    key="key_undoCloseTab"
   629 +                    key="key_undoCloseTab"
   635 +                    label="&undoCloseTab.label;"
   630 +                    label="&undoCloseTab.label;"
   636 +                    observes="History:UndoCloseTab"/>
   631 +                    observes="History:UndoCloseTab"/>
   637 +          <menuseparator id="alltabs-popup-separator"/>
   632 +          <menuseparator id="alltabs-popup-separator-1"/>
       
   633 +          <menu id="alltabs_containersTab"
       
   634 +                label="&newUserContext.label;">
       
   635 +            <menupopup id="alltabs_containersMenuTab" />
       
   636 +          </menu>
       
   637 +          <menuseparator id="alltabs-popup-separator-2"/>
   638 +        </menupopup>
   638 +        </menupopup>
   639 +      </toolbarbutton>
   639 +      </toolbarbutton>
   640 +
   640 +
   641 +#if !defined(MOZ_WIDGET_GTK) && !defined(MOZ_WIDGET_QT)
   641 +#if !defined(MOZ_WIDGET_GTK) && !defined(MOZ_WIDGET_QT)
   642 +      <hbox class="private-browsing-indicator" skipintoolbarset="true"/>
   642 +      <hbox class="private-browsing-indicator" skipintoolbarset="true"/>
   716 +                     onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'"
   716 +                     onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'"
   717 +                     onblur="setTimeout(() => { document.getElementById('identity-box').style.MozUserFocus = ''; }, 0);">
   717 +                     onblur="setTimeout(() => { document.getElementById('identity-box').style.MozUserFocus = ''; }, 0);">
   718 +              <box id="notification-popup-box" hidden="true" align="center">
   718 +              <box id="notification-popup-box" hidden="true" align="center">
   719 +                <image id="default-notification-icon" class="notification-anchor-icon" role="button"
   719 +                <image id="default-notification-icon" class="notification-anchor-icon" role="button"
   720 +                       aria-label="&urlbar.defaultNotificationAnchor.label;"/>
   720 +                       aria-label="&urlbar.defaultNotificationAnchor.label;"/>
   721 +                <image id="geo-notification-icon" class="notification-anchor-icon" role="button"
   721 +                <image id="geo-notification-icon" class="notification-anchor-icon geo-icon" role="button"
   722 +                       aria-label="&urlbar.geolocationNotificationAnchor.label;"/>
   722 +                       aria-label="&urlbar.geolocationNotificationAnchor.label;"/>
   723 +                <image id="addons-notification-icon" class="notification-anchor-icon" role="button"
   723 +                <image id="addons-notification-icon" class="notification-anchor-icon install-icon" role="button"
   724 +                       aria-label="&urlbar.addonsNotificationAnchor.label;"/>
   724 +                       aria-label="&urlbar.addonsNotificationAnchor.label;"/>
   725 +                <image id="indexedDB-notification-icon" class="notification-anchor-icon" role="button"
   725 +                <image id="indexedDB-notification-icon" class="notification-anchor-icon indexedDB-icon" role="button"
   726 +                       aria-label="&urlbar.indexedDBNotificationAnchor.label;"/>
   726 +                       aria-label="&urlbar.indexedDBNotificationAnchor.label;"/>
   727 +                <image id="login-fill-notification-icon" class="notification-anchor-icon" role="button"
   727 +                <image id="login-fill-notification-icon" class="notification-anchor-icon login-icon" role="button"
   728 +                       aria-label="&urlbar.loginFillNotificationAnchor.label;"/>
   728 +                       aria-label="&urlbar.loginFillNotificationAnchor.label;"/>
   729 +                <image id="password-notification-icon" class="notification-anchor-icon" role="button"
   729 +                <image id="password-notification-icon" class="notification-anchor-icon login-icon" role="button"
   730 +                       aria-label="&urlbar.passwordNotificationAnchor.label;"/>
   730 +                       aria-label="&urlbar.passwordNotificationAnchor.label;"/>
   731 +                <image id="plugins-notification-icon" class="notification-anchor-icon" role="button"
   731 +                <image id="plugins-notification-icon" class="notification-anchor-icon plugin-icon" role="button"
   732 +                       aria-label="&urlbar.pluginsNotificationAnchor.label;"/>
   732 +                       aria-label="&urlbar.pluginsNotificationAnchor.label;"/>
   733 +                <image id="web-notifications-notification-icon" class="notification-anchor-icon" role="button"
   733 +                <image id="web-notifications-notification-icon" class="notification-anchor-icon web-notifications-icon" role="button"
   734 +                       aria-label="&urlbar.webNotsNotificationAnchor3.label;"/>
   734 +                       aria-label="&urlbar.webNotsNotificationAnchor3.label;"/>
   735 +                <image id="webRTC-shareDevices-notification-icon" class="notification-anchor-icon" role="button"
   735 +                <image id="webRTC-shareDevices-notification-icon" class="notification-anchor-icon camera-icon" role="button"
   736 +                       aria-label="&urlbar.webRTCShareDevicesNotificationAnchor.label;"/>
   736 +                       aria-label="&urlbar.webRTCShareDevicesNotificationAnchor.label;"/>
   737 +                <image id="webRTC-sharingDevices-notification-icon" class="notification-anchor-icon" role="button"
   737 +                <image id="webRTC-sharingDevices-notification-icon" class="notification-anchor-icon camera-icon in-use" role="button"
   738 +                       aria-label="&urlbar.webRTCSharingDevicesNotificationAnchor.label;"/>
   738 +                       aria-label="&urlbar.webRTCSharingDevicesNotificationAnchor.label;"/>
   739 +                <image id="webRTC-shareMicrophone-notification-icon" class="notification-anchor-icon" role="button"
   739 +                <image id="webRTC-shareMicrophone-notification-icon" class="notification-anchor-icon microphone-icon" role="button"
   740 +                       aria-label="&urlbar.webRTCShareMicrophoneNotificationAnchor.label;"/>
   740 +                       aria-label="&urlbar.webRTCShareMicrophoneNotificationAnchor.label;"/>
   741 +                <image id="webRTC-sharingMicrophone-notification-icon" class="notification-anchor-icon" role="button"
   741 +                <image id="webRTC-sharingMicrophone-notification-icon" class="notification-anchor-icon microphone-icon in-use" role="button"
   742 +                       aria-label="&urlbar.webRTCSharingMicrophoneNotificationAnchor.label;"/>
   742 +                       aria-label="&urlbar.webRTCSharingMicrophoneNotificationAnchor.label;"/>
   743 +                <image id="webRTC-shareScreen-notification-icon" class="notification-anchor-icon" role="button"
   743 +                <image id="webRTC-shareScreen-notification-icon" class="notification-anchor-icon screen-icon" role="button"
   744 +                       aria-label="&urlbar.webRTCShareScreenNotificationAnchor.label;"/>
   744 +                       aria-label="&urlbar.webRTCShareScreenNotificationAnchor.label;"/>
   745 +                <image id="webRTC-sharingScreen-notification-icon" class="notification-anchor-icon" role="button"
   745 +                <image id="webRTC-sharingScreen-notification-icon" class="notification-anchor-icon screen-icon in-use" role="button"
   746 +                       aria-label="&urlbar.webRTCSharingScreenNotificationAnchor.label;"/>
   746 +                       aria-label="&urlbar.webRTCSharingScreenNotificationAnchor.label;"/>
   747 +                <image id="pointerLock-notification-icon" class="notification-anchor-icon" role="button"
   747 +                <image id="pointerLock-notification-icon" class="notification-anchor-icon pointer-icon" role="button"
   748 +                       aria-label="&urlbar.pointerLockNotificationAnchor.label;"/>
   748 +                       aria-label="&urlbar.pointerLockNotificationAnchor.label;"/>
   749 +                <image id="servicesInstall-notification-icon" class="notification-anchor-icon" role="button"
   749 +                <image id="servicesInstall-notification-icon" class="notification-anchor-icon service-icon" role="button"
   750 +                       aria-label="&urlbar.servicesNotificationAnchor.label;"/>
   750 +                       aria-label="&urlbar.servicesNotificationAnchor.label;"/>
   751 +                <image id="translate-notification-icon" class="notification-anchor-icon" role="button"
   751 +                <image id="translate-notification-icon" class="notification-anchor-icon translation-icon" role="button"
   752 +                       aria-label="&urlbar.translateNotificationAnchor.label;"/>
   752 +                       aria-label="&urlbar.translateNotificationAnchor.label;"/>
   753 +                <image id="translated-notification-icon" class="notification-anchor-icon" role="button"
   753 +                <image id="translated-notification-icon" class="notification-anchor-icon translation-icon in-use" role="button"
   754 +                       aria-label="&urlbar.translatedNotificationAnchor.label;"/>
   754 +                       aria-label="&urlbar.translatedNotificationAnchor.label;"/>
   755 +                <image id="eme-notification-icon" class="notification-anchor-icon" role="button"
   755 +                <image id="eme-notification-icon" class="notification-anchor-icon drm-icon" role="button"
   756 +                       aria-label="&urlbar.emeNotificationAnchor.label;"/>
   756 +                       aria-label="&urlbar.emeNotificationAnchor.label;"/>
   757 +              </box>
   757 +              </box>
   758 +              <!-- Use onclick instead of normal popup= syntax since the popup
   758 +              <!-- Use onclick instead of normal popup= syntax since the popup
   759 +                   code fires onmousedown, and hence eats our favicon drag events.
   759 +                   code fires onmousedown, and hence eats our favicon drag events.
   760 +                   We only add the identity-box button to the tab order when the location bar
   760 +                   We only add the identity-box button to the tab order when the location bar
   787 +                <image id="reader-mode-button"
   787 +                <image id="reader-mode-button"
   788 +                       class="urlbar-icon"
   788 +                       class="urlbar-icon"
   789 +                       hidden="true"
   789 +                       hidden="true"
   790 +                       onclick="ReaderParent.buttonClick(event);"/>
   790 +                       onclick="ReaderParent.buttonClick(event);"/>
   791 +              </hbox>
   791 +              </hbox>
   792 +              <hbox id="userContext-icons">
   792 +              <hbox id="userContext-icons" hidden="true">
   793 +                <label id="userContext-label"/>
   793 +                <label id="userContext-label"/>
   794 +                <image id="userContext-indicator"/>
   794 +                <image id="userContext-indicator"/>
   795 +              </hbox>
   795 +              </hbox>
   796 +              <toolbarbutton id="urlbar-go-button"
   796 +              <toolbarbutton id="urlbar-go-button"
   797 +                             class="chromeclass-toolbar-additional"
   797 +                             class="chromeclass-toolbar-additional"
   853 +            <menuitem id="BMB_bookmarksShowAllTop"
   853 +            <menuitem id="BMB_bookmarksShowAllTop"
   854 +                      class="menuitem-iconic subviewbutton"
   854 +                      class="menuitem-iconic subviewbutton"
   855 +                      label="&showAllBookmarks2.label;"
   855 +                      label="&showAllBookmarks2.label;"
   856 +                      command="Browser:ShowAllBookmarks"
   856 +                      command="Browser:ShowAllBookmarks"
   857 +                      key="manBookmarkKb"/>
   857 +                      key="manBookmarkKb"/>
       
   858 +            <menuseparator/>
       
   859 +            <menuitem label="&recentBookmarks.label;"
       
   860 +                      id="BMB_recentBookmarks"
       
   861 +                      disabled="true"
       
   862 +                      class="menuitem-iconic subviewbutton"/>
   858 +            <menuseparator/>
   863 +            <menuseparator/>
   859 +            <menu id="BMB_bookmarksToolbar"
   864 +            <menu id="BMB_bookmarksToolbar"
   860 +                  class="menu-iconic bookmark-item subviewbutton"
   865 +                  class="menu-iconic bookmark-item subviewbutton"
   861 +                  label="&personalbarCmd.label;"
   866 +                  label="&personalbarCmd.label;"
   862 +                  container="true">
   867 +                  container="true">
  1286      // In Windows 8 we launch the control panel since it's the only
  1291      // In Windows 8 we launch the control panel since it's the only
  1287      // way to get all file type association prefs. So we don't know
  1292      // way to get all file type association prefs. So we don't know
  1288      // when the user will select the default.  We refresh here periodically
  1293      // when the user will select the default.  We refresh here periodically
  1289      // in case the default changes. On other Windows OS's defaults can also
  1294      // in case the default changes. On other Windows OS's defaults can also
  1290      // be set while the prefs are open.
  1295      // be set while the prefs are open.
  1291 @@ -736,16 +742,27 @@ var gMainPane = {
  1296 @@ -730,16 +736,27 @@ var gMainPane = {
  1292      let alwaysCheckPref = document.getElementById("browser.shell.checkDefaultBrowser");
  1297      let alwaysCheckPref = document.getElementById("browser.shell.checkDefaultBrowser");
  1293      alwaysCheckPref.value = true;
  1298      alwaysCheckPref.value = true;
  1294  
  1299  
  1295      let shellSvc = getShellService();
  1300      let shellSvc = getShellService();
  1296      if (!shellSvc)
  1301      if (!shellSvc)
  1629 +
  1634 +
  1630 +#endif // nsunixshellservice_h____
  1635 +#endif // nsunixshellservice_h____
  1631 diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in
  1636 diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in
  1632 --- a/browser/installer/package-manifest.in
  1637 --- a/browser/installer/package-manifest.in
  1633 +++ b/browser/installer/package-manifest.in
  1638 +++ b/browser/installer/package-manifest.in
  1634 @@ -689,16 +689,17 @@
  1639 @@ -676,16 +676,17 @@
  1635  @RESPATH@/greprefs.js
  1640  @RESPATH@/greprefs.js
  1636  @RESPATH@/defaults/autoconfig/prefcalls.js
  1641  @RESPATH@/defaults/autoconfig/prefcalls.js
  1637  @RESPATH@/browser/defaults/permissions
  1642  @RESPATH@/browser/defaults/permissions
  1638  
  1643  
  1639  ; Warning: changing the path to channel-prefs.js can cause bugs (Bug 756325)
  1644  ; Warning: changing the path to channel-prefs.js can cause bugs (Bug 756325)
  1641  ; gre location for now.
  1646  ; gre location for now.
  1642  @RESPATH@/defaults/pref/channel-prefs.js
  1647  @RESPATH@/defaults/pref/channel-prefs.js
  1643 +@BINPATH@/defaults/pref/kde.js
  1648 +@BINPATH@/defaults/pref/kde.js
  1644  
  1649  
  1645  ; Services (gre) prefs
  1650  ; Services (gre) prefs
  1646  #ifdef MOZ_SERVICES_NOTIFICATIONS
       
  1647  @RESPATH@/defaults/pref/services-notifications.js
       
  1648  #endif
       
  1649  @RESPATH@/defaults/pref/services-sync.js
  1651  @RESPATH@/defaults/pref/services-sync.js
  1650  
  1652  
  1651  ; [Layout Engine Resources]
  1653  ; [Layout Engine Resources]
       
  1654  ; Style Sheets, Graphics and other Resources used by the layout engine.
       
  1655  @RESPATH@/res/EditorOverride.css
       
  1656  @RESPATH@/res/contenteditable.css