firefox-kde.patch
changeset 942 66115255ad6f
parent 935 9ae2b79d3bb1
child 943 ace605efe50f
equal deleted inserted replaced
941:ff9e20146e8b 942:66115255ad6f
     1 # HG changeset patch
     1 # HG changeset patch
     2 # Parent  2cae514c05c8836ca5b69884d3a07998a5d53e8b
     2 # Parent  e4b8399bc2706a7b5331407b232bc8845aea7f2e
     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,1119 @@
     8 @@ -0,0 +1,1133 @@
     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
   147 +               onclick="checkForMiddleClick(this, event);"/>
   147 +               onclick="checkForMiddleClick(this, event);"/>
   148 +    <tooltip id="aHTMLTooltip" page="true"/>
   148 +    <tooltip id="aHTMLTooltip" page="true"/>
   149 +    <tooltip id="remoteBrowserTooltip"/>
   149 +    <tooltip id="remoteBrowserTooltip"/>
   150 +
   150 +
   151 +    <!-- for search and content formfill/pw manager -->
   151 +    <!-- for search and content formfill/pw manager -->
   152 +    <panel type="autocomplete" id="PopupAutoComplete" noautofocus="true" hidden="true"/>
   152 +
       
   153 +    <panel type="autocomplete-richlistbox"
       
   154 +           id="PopupAutoComplete"
       
   155 +           noautofocus="true"
       
   156 +           hidden="true"
       
   157 +           norolluponanchor="true" />
   153 +
   158 +
   154 +    <!-- for search with one-off buttons -->
   159 +    <!-- for search with one-off buttons -->
   155 +    <panel type="autocomplete" id="PopupSearchAutoComplete" noautofocus="true" hidden="true"/>
   160 +    <panel type="autocomplete" id="PopupSearchAutoComplete" noautofocus="true" hidden="true"/>
   156 +
   161 +
   157 +    <!-- for url bar autocomplete -->
   162 +    <!-- for url bar autocomplete -->
   158 +    <panel type="autocomplete-richlistbox"
   163 +    <panel type="autocomplete-richlistbox"
   159 +           id="PopupAutoCompleteRichResult"
   164 +           id="PopupAutoCompleteRichResult"
   160 +           noautofocus="true"
   165 +           noautofocus="true"
   161 +           hidden="true"
   166 +           hidden="true"
   162 +           flip="none"
   167 +           flip="none"
   163 +           level="parent"/>
   168 +           level="parent"
       
   169 +           overflowpadding="30" />
       
   170 +
       
   171 +    <panel id="DateTimePickerPanel"
       
   172 +           type="arrow"
       
   173 +           hidden="true"
       
   174 +           orient="vertical"
       
   175 +           noautofocus="true"
       
   176 +           consumeoutsideclicks="false"
       
   177 +           level="parent">
       
   178 +      <iframe id="dateTimePopupFrame"/>
       
   179 +    </panel>
   164 +
   180 +
   165 +    <!-- for select dropdowns. The menupopup is what shows the list of options,
   181 +    <!-- for select dropdowns. The menupopup is what shows the list of options,
   166 +         and the popuponly menulist makes things like the menuactive attributes
   182 +         and the popuponly menulist makes things like the menuactive attributes
   167 +         work correctly on the menupopup. ContentSelectDropdown expects the
   183 +         work correctly on the menupopup. ContentSelectDropdown expects the
   168 +         popuponly menulist to be its immediate parent. -->
   184 +         popuponly menulist to be its immediate parent. -->
   169 +    <menulist popuponly="true" id="ContentSelectDropdown" hidden="true">
   185 +    <menulist popuponly="true" id="ContentSelectDropdown" hidden="true">
   170 +      <menupopup rolluponmousewheel="true"
   186 +      <menupopup rolluponmousewheel="true"
   171 +                 activateontab="true" position="after_start"
   187 +                 activateontab="true" position="after_start"
   172 +#ifdef XP_WIN
   188 +#ifdef XP_WIN
   173 +                 consumeoutsideclicks="false" ignorekeys="handled"
   189 +                 consumeoutsideclicks="false" ignorekeys="shortcuts"
   174 +#endif
   190 +#endif
   175 +        />
   191 +        />
   176 +    </menulist>
   192 +    </menulist>
   177 +
   193 +
   178 +    <!-- for invalid form error message -->
   194 +    <!-- for invalid form error message -->
   265 +           orient="vertical"
   281 +           orient="vertical"
   266 +           onpopupshowing="SocialShare.onShowing()"
   282 +           onpopupshowing="SocialShare.onShowing()"
   267 +           onpopuphidden="SocialShare.onHidden()"
   283 +           onpopuphidden="SocialShare.onHidden()"
   268 +           hidden="true">
   284 +           hidden="true">
   269 +      <hbox class="social-share-toolbar">
   285 +      <hbox class="social-share-toolbar">
   270 +        <toolbarbutton id="manage-share-providers" class="toolbarbutton share-provider-button"
   286 +        <toolbarbutton id="manage-share-providers" class="share-provider-button"
   271 +                       tooltiptext="&social.addons.label;"
   287 +                       tooltiptext="&social.addons.label;"
   272 +                       oncommand="BrowserOpenAddonsMgr('addons://list/service');
   288 +                       oncommand="BrowserOpenAddonsMgr('addons://list/service');
   273 +                                  this.parentNode.parentNode.hidePopup();"/>
   289 +                                  this.parentNode.parentNode.hidePopup();"/>
   274 +        <arrowscrollbox id="social-share-provider-buttons" orient="horizontal" flex="1" pack="end">
   290 +        <arrowscrollbox id="social-share-provider-buttons" orient="horizontal" flex="1" pack="end">
   275 +          <toolbarbutton id="add-share-provider" class="toolbarbutton share-provider-button" type="radio"
   291 +          <toolbarbutton id="add-share-provider" class="share-provider-button" type="radio"
   276 +                         group="share-providers" tooltiptext="&findShareServices.label;"
   292 +                         group="share-providers" tooltiptext="&findShareServices.label;"
   277 +                         oncommand="SocialShare.showDirectory()"/>
   293 +                         oncommand="SocialShare.showDirectory()"/>
   278 +        </arrowscrollbox>
   294 +        </arrowscrollbox>
   279 +      </hbox>
   295 +      </hbox>
   280 +      <hbox id="share-container" flex="1"/>
   296 +      <hbox id="share-container" flex="1"/>
   677 +                     enablehistory="true"
   693 +                     enablehistory="true"
   678 +                     maxrows="10"
   694 +                     maxrows="10"
   679 +                     newlines="stripsurroundingwhitespace"
   695 +                     newlines="stripsurroundingwhitespace"
   680 +                     ontextentered="this.handleCommand(param);"
   696 +                     ontextentered="this.handleCommand(param);"
   681 +                     ontextreverted="return this.handleRevert();"
   697 +                     ontextreverted="return this.handleRevert();"
   682 +                     pageproxystate="invalid"
   698 +                     pageproxystate="invalid">
   683 +                     onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'"
       
   684 +                     onblur="setTimeout(() => { document.getElementById('identity-box').style.MozUserFocus = ''; }, 0);">
       
   685 +              <!-- Use onclick instead of normal popup= syntax since the popup
   699 +              <!-- Use onclick instead of normal popup= syntax since the popup
   686 +                   code fires onmousedown, and hence eats our favicon drag events.
   700 +                   code fires onmousedown, and hence eats our favicon drag events. -->
   687 +                   We only add the identity-box button to the tab order when the location bar
       
   688 +                   has focus, otherwise pressing F6 focuses it instead of the location bar -->
       
   689 +              <box id="identity-box" role="button"
   701 +              <box id="identity-box" role="button"
   690 +                   align="center"
   702 +                   align="center"
   691 +                   aria-label="&urlbar.viewSiteInfo.label;"
   703 +                   aria-label="&urlbar.viewSiteInfo.label;"
   692 +                   onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
   704 +                   onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
   693 +                   onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);"
   705 +                   onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);"
   750 +                  <label id="identity-icon-label" class="plain" flex="1"/>
   762 +                  <label id="identity-icon-label" class="plain" flex="1"/>
   751 +                  <label id="identity-icon-country-label" class="plain"/>
   763 +                  <label id="identity-icon-country-label" class="plain"/>
   752 +                </hbox>
   764 +                </hbox>
   753 +              </box>
   765 +              </box>
   754 +              <box id="urlbar-display-box" align="center">
   766 +              <box id="urlbar-display-box" align="center">
   755 +                <label class="urlbar-display urlbar-display-switchtab" value="&urlbar.switchToTab.label;"/>
   767 +                <label id="switchtab" class="urlbar-display urlbar-display-switchtab" value="&urlbar.switchToTab.label;"/>
       
   768 +                <label id="extension" class="urlbar-display urlbar-display-extension" value="&urlbar.extension.label;"/>
   756 +              </box>
   769 +              </box>
   757 +              <hbox id="urlbar-icons">
   770 +              <hbox id="urlbar-icons">
   758 +                <image id="page-report-button"
   771 +                <image id="page-report-button"
   759 +                       class="urlbar-icon"
   772 +                       class="urlbar-icon"
   760 +                       hidden="true"
   773 +                       hidden="true"
   761 +                       tooltiptext="&pageReportIcon.tooltip;"
   774 +                       tooltiptext="&pageReportIcon.tooltip;"
   762 +                       onclick="gPopupBlockerObserver.onReportButtonClick(event);"/>
   775 +                       onmousedown="gPopupBlockerObserver.onReportButtonMousedown(event);"/>
   763 +                <image id="reader-mode-button"
   776 +                <image id="reader-mode-button"
   764 +                       class="urlbar-icon"
   777 +                       class="urlbar-icon"
   765 +                       hidden="true"
   778 +                       hidden="true"
   766 +                       onclick="ReaderParent.buttonClick(event);"/>
   779 +                       onclick="ReaderParent.buttonClick(event);"/>
   767 +                <toolbarbutton id="urlbar-zoom-button"
   780 +                <toolbarbutton id="urlbar-zoom-button"
  1059 +        <tabbrowser id="content"
  1072 +        <tabbrowser id="content"
  1060 +                    flex="1" contenttooltip="aHTMLTooltip"
  1073 +                    flex="1" contenttooltip="aHTMLTooltip"
  1061 +                    tabcontainer="tabbrowser-tabs"
  1074 +                    tabcontainer="tabbrowser-tabs"
  1062 +                    contentcontextmenu="contentAreaContextMenu"
  1075 +                    contentcontextmenu="contentAreaContextMenu"
  1063 +                    autocompletepopup="PopupAutoComplete"
  1076 +                    autocompletepopup="PopupAutoComplete"
  1064 +                    selectmenulist="ContentSelectDropdown"/>
  1077 +                    selectmenulist="ContentSelectDropdown"
       
  1078 +                    datetimepicker="DateTimePickerPanel"/>
  1065 +      </vbox>
  1079 +      </vbox>
  1066 +      <vbox id="browser-border-end" hidden="true" layer="true"/>
  1080 +      <vbox id="browser-border-end" hidden="true" layer="true"/>
  1067 +    </hbox>
  1081 +    </hbox>
  1068 +#include ../../components/customizableui/content/customizeMode.inc.xul
  1082 +#include ../../components/customizableui/content/customizeMode.inc.xul
  1069 +  </deck>
  1083 +  </deck>
  1126 +
  1140 +
  1127 +</window>
  1141 +</window>
  1128 diff --git a/browser/base/jar.mn b/browser/base/jar.mn
  1142 diff --git a/browser/base/jar.mn b/browser/base/jar.mn
  1129 --- a/browser/base/jar.mn
  1143 --- a/browser/base/jar.mn
  1130 +++ b/browser/base/jar.mn
  1144 +++ b/browser/base/jar.mn
  1131 @@ -68,16 +68,18 @@ browser.jar:
  1145 @@ -66,16 +66,18 @@ browser.jar:
       
  1146          content/browser/aboutSocialError.xhtml        (content/aboutSocialError.xhtml)
       
  1147          content/browser/aboutProviderDirectory.xhtml  (content/aboutProviderDirectory.xhtml)
  1132          content/browser/aboutTabCrashed.css           (content/aboutTabCrashed.css)
  1148          content/browser/aboutTabCrashed.css           (content/aboutTabCrashed.css)
  1133          content/browser/aboutTabCrashed.js            (content/aboutTabCrashed.js)
  1149          content/browser/aboutTabCrashed.js            (content/aboutTabCrashed.js)
  1134          content/browser/aboutTabCrashed.xhtml         (content/aboutTabCrashed.xhtml)
  1150          content/browser/aboutTabCrashed.xhtml         (content/aboutTabCrashed.xhtml)
  1135  *       content/browser/aboutTabGroupsMigration.xhtml (content/aboutTabGroupsMigration.xhtml)
       
  1136          content/browser/aboutTabGroupsMigration.js    (content/aboutTabGroupsMigration.js)
       
  1137  *       content/browser/browser.css                   (content/browser.css)
  1151  *       content/browser/browser.css                   (content/browser.css)
  1138          content/browser/browser.js                    (content/browser.js)
  1152          content/browser/browser.js                    (content/browser.js)
  1139  *       content/browser/browser.xul                   (content/browser.xul)
  1153  *       content/browser/browser.xul                   (content/browser.xul)
  1140 +*       content/browser/browser-kde.xul               (content/browser-kde.xul)
  1154 +*       content/browser/browser-kde.xul               (content/browser-kde.xul)
  1141 +%       override chrome://browser/content/browser.xul chrome://browser/content/browser-kde.xul desktop=kde
  1155 +%       override chrome://browser/content/browser.xul chrome://browser/content/browser-kde.xul desktop=kde
  1142          content/browser/browser-addons.js             (content/browser-addons.js)
  1156          content/browser/browser-addons.js             (content/browser-addons.js)
       
  1157          content/browser/browser-captivePortal.js      (content/browser-captivePortal.js)
  1143          content/browser/browser-ctrlTab.js            (content/browser-ctrlTab.js)
  1158          content/browser/browser-ctrlTab.js            (content/browser-ctrlTab.js)
  1144          content/browser/browser-customization.js      (content/browser-customization.js)
  1159          content/browser/browser-customization.js      (content/browser-customization.js)
  1145          content/browser/browser-data-submission-info-bar.js (content/browser-data-submission-info-bar.js)
  1160          content/browser/browser-data-submission-info-bar.js (content/browser-data-submission-info-bar.js)
  1146          content/browser/browser-devedition.js         (content/browser-devedition.js)
  1161          content/browser/browser-devedition.js         (content/browser-devedition.js)
  1147          content/browser/browser-feeds.js              (content/browser-feeds.js)
  1162          content/browser/browser-feeds.js              (content/browser-feeds.js)
  1148          content/browser/browser-fullScreenAndPointerLock.js  (content/browser-fullScreenAndPointerLock.js)
  1163          content/browser/browser-fullScreenAndPointerLock.js  (content/browser-fullScreenAndPointerLock.js)
  1149          content/browser/browser-fullZoom.js           (content/browser-fullZoom.js)
       
  1150 diff --git a/browser/components/build/nsModule.cpp b/browser/components/build/nsModule.cpp
  1164 diff --git a/browser/components/build/nsModule.cpp b/browser/components/build/nsModule.cpp
  1151 --- a/browser/components/build/nsModule.cpp
  1165 --- a/browser/components/build/nsModule.cpp
  1152 +++ b/browser/components/build/nsModule.cpp
  1166 +++ b/browser/components/build/nsModule.cpp
  1153 @@ -8,17 +8,17 @@
  1167 @@ -8,17 +8,17 @@
  1154  #include "nsBrowserCompsCID.h"
  1168  #include "nsBrowserCompsCID.h"
  1503 +
  1517 +
  1504 +#ifndef nskdeshellservice_h____
  1518 +#ifndef nskdeshellservice_h____
  1505 +#define nskdeshellservice_h____
  1519 +#define nskdeshellservice_h____
  1506 +
  1520 +
  1507 +#include "nsIGNOMEShellService.h"
  1521 +#include "nsIGNOMEShellService.h"
  1508 +#include "nsStringAPI.h"
  1522 +#include "nsString.h"
  1509 +#include "mozilla/Attributes.h"
  1523 +#include "mozilla/Attributes.h"
  1510 +
  1524 +
  1511 +class nsKDEShellService final : public nsIGNOMEShellService
  1525 +class nsKDEShellService final : public nsIGNOMEShellService
  1512 +{
  1526 +{
  1513 +public:
  1527 +public:
  1574 +
  1588 +
  1575 +#endif // nsunixshellservice_h____
  1589 +#endif // nsunixshellservice_h____
  1576 diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in
  1590 diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in
  1577 --- a/browser/installer/package-manifest.in
  1591 --- a/browser/installer/package-manifest.in
  1578 +++ b/browser/installer/package-manifest.in
  1592 +++ b/browser/installer/package-manifest.in
  1579 @@ -675,16 +675,17 @@
  1593 @@ -652,16 +652,17 @@
  1580  @RESPATH@/greprefs.js
  1594  @RESPATH@/greprefs.js
  1581  @RESPATH@/defaults/autoconfig/prefcalls.js
  1595  @RESPATH@/defaults/autoconfig/prefcalls.js
  1582  @RESPATH@/browser/defaults/permissions
  1596  @RESPATH@/browser/defaults/permissions
  1583  
  1597  
  1584  ; Warning: changing the path to channel-prefs.js can cause bugs (Bug 756325)
  1598  ; Warning: changing the path to channel-prefs.js can cause bugs (Bug 756325)