firefox-kde.patch
changeset 515 0f6539389500
parent 491 43deb5e6462d
child 522 fdca14856f37
--- a/firefox-kde.patch	Mon Jul 23 06:33:59 2012 +0200
+++ b/firefox-kde.patch	Wed Jul 25 11:15:27 2012 +0200
@@ -2,7 +2,7 @@
 new file mode 100644
 --- /dev/null
 +++ b/browser/base/content/browser-kde.xul
-@@ -0,0 +1,1126 @@
+@@ -0,0 +1,1210 @@
 +#filter substitution
 +<?xml version="1.0"?>
 +# -*- Mode: HTML -*-
@@ -29,7 +29,7 @@
 +        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 +        xmlns:svg="http://www.w3.org/2000/svg"
 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-+        onload="BrowserStartup()" onunload="BrowserShutdown()" onclose="return WindowIsClosing();"
++        onload="gBrowserInit.onLoad()" onunload="gBrowserInit.onUnload()" onclose="return WindowIsClosing();"
 +        title="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
 +        title_normal="&mainWindow.title;@PRE_RELEASE_SUFFIX@"
 +#ifdef XP_MACOSX
@@ -142,6 +142,7 @@
 +           footertype="promobox"
 +           orient="vertical"
 +           ignorekeys="true"
++           consumeoutsideclicks="true"
 +           hidden="true"
 +           onpopupshown="StarUI.panelShown(event);"
 +           aria-labelledby="editBookmarkPanelTitle">
@@ -186,6 +187,49 @@
 +      </hbox>
 +    </panel>
 +
++    <panel id="editSharePopup"
++           type="arrow"
++           orient="vertical"
++           ignorekeys="true"
++           hidden="true"
++           onpopupshown="SocialShareButton.panelShown(event);"
++           consumeoutsideclicks="true"
++           level="top">
++      <hbox id="editSharePopupBottomButtons" pack="end">
++#ifdef XP_UNIX
++        <button id="editSharePopupUndoButton"
++                class="editSharePopupBottomButton"
++                label="&social.sharePopup.undo.label;"
++                accesskey="&social.sharePopup.undo.accesskey;"
++                command="Social:UnsharePage"/>
++        <button id="editSharePopupOkButton"
++                class="editSharePopupBottomButton"
++                default="true"
++                autofocus="autofocus"
++                label="&social.sharePopup.ok.label;"
++                accesskey="&social.sharePopup.ok.accesskey;"
++                oncommand="SocialShareButton.dismissSharePopup();"/>
++#else
++        <button id="editSharePopupOkButton"
++                class="editSharePopupBottomButton"
++                default="true"
++                autofocus="autofocus"
++                label="&social.sharePopup.ok.label;"
++                accesskey="&social.sharePopup.ok.accesskey;"
++                oncommand="SocialShareButton.dismissSharePopup();"/>
++        <button id="editSharePopupUndoButton"
++                class="editSharePopupBottomButton"
++                label="&social.sharePopup.undo.label;"
++                accesskey="&social.sharePopup.undo.accesskey;"
++                command="Social:UnsharePage"/>
++#endif
++      </hbox>
++    </panel>
++
++    <panel id="social-notification-panel" type="arrow" hidden="true" noautofocus="true">
++      <browser id="social-notification-browser" type="content" flex="1"/>
++    </panel>
++
 +    <menupopup id="inspector-node-popup">
 +      <menuitem id="inspectorHTMLCopyInner"
 +                label="&inspectorHTMLCopyInner.label;"
@@ -264,6 +308,7 @@
 +           type="arrow"
 +           hidden="true"
 +           noautofocus="true"
++           consumeoutsideclicks="true"
 +           onpopupshown="gIdentityHandler.onPopupShown(event);"
 +           level="top">
 +      <hbox id="identity-popup-container" align="top">
@@ -349,11 +394,8 @@
 +    <tooltip id="bhTooltip"/>
 +
 +    <panel id="customizeToolbarSheetPopup"
-+           noautohide="true">
-+      <iframe id="customizeToolbarSheetIFrame"
-+              style="&dialog.dimensions;"
-+              hidden="true"/>
-+    </panel>
++           noautohide="true"
++           sheetstyle="&dialog.dimensions;"/>
 +
 +    <tooltip id="tabbrowser-tab-tooltip" onpopupshowing="gBrowser.createTooltip(event);"/>
 +
@@ -492,19 +534,16 @@
 +               We only add the identity-box button to the tab order when the location bar
 +               has focus, otherwise pressing F6 focuses it instead of the location bar -->
 +          <box id="identity-box" role="button"
++               align="center"
 +               onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
 +               onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);"
 +               ondragstart="gIdentityHandler.onDragStart(event);">
-+            <hbox id="identity-box-inner" align="center">
-+              <hbox id="page-proxy-stack"
-+                    onclick="PageProxyClickHandler(event);">
-+                <image id="page-proxy-favicon"
-+                       pageproxystate="invalid"/>
-+              </hbox>
-+              <hbox id="identity-icon-labels">
-+                <label id="identity-icon-label" class="plain" flex="1"/>
-+                <label id="identity-icon-country-label" class="plain"/>
-+              </hbox>
++            <image id="page-proxy-favicon"
++                   onclick="PageProxyClickHandler(event);"
++                   pageproxystate="invalid"/>
++            <hbox id="identity-icon-labels">
++              <label id="identity-icon-label" class="plain" flex="1"/>
++              <label id="identity-icon-country-label" class="plain"/>
 +            </hbox>
 +          </box>
 +          <box id="urlbar-display-box" align="center">
@@ -517,6 +556,12 @@
 +                   tooltiptext="&pageReportIcon.tooltip;"
 +                   onclick="gPopupBlockerObserver.onReportButtonClick(event);"/>
 +
++            <label id="share-button-status" collapsed="true" role="status"/>
++            <image id="share-button"
++                   class="urlbar-icon"
++                   hidden="true"
++                   onclick="SocialShareButton.onClick(event);"/>
++
 +            <image id="star-button"
 +                   class="urlbar-icon"
 +                   onclick="PlacesStarButton.onClick(event);"/>
@@ -568,6 +613,45 @@
 +                     onclick="BrowserGoHome(event);"
 +                     aboutHomeOverrideTooltip="&abouthome.pageTitle;"/>
 +
++      <toolbaritem id="social-toolbar-button"
++                   class="toolbarbutton-1 chromeclass-toolbar-additional"
++                   removable="false"
++                   title="&socialToolbar.title;"
++                   hidden="true">
++        <hbox id="social-toolbar-button-box" class="social-statusarea-container">
++          <button id="social-provider-image" type="menu">
++            <menupopup id="social-statusarea-popup">
++              <hbox id="social-statusarea-user" pack="left" align="center">
++                <image id="social-statusarea-user-portrait"/>
++                <vbox>
++                  <label id="social-statusarea-notloggedin"
++                         value="&social.notLoggedIn.label;"/>
++                  <button id="social-statusarea-username"
++                          oncommand="SocialUI.showProfile(); document.getElementById('social-statusarea-popup').hidePopup();"/>
++                </vbox>
++              </hbox>
++            </menupopup>
++          </button>
++          <hbox id="social-status-iconbox" flex="1">
++            <box class="social-notification-icon-container" collapsed="true"
++                     onclick="SocialToolbar.showAmbientPopup(this);">
++              <image class="social-notification-icon-image"/>
++              <box class="social-notification-icon-counter" collapsed="true"/>
++            </box>
++            <box class="social-notification-icon-container" collapsed="true"
++                     onclick="SocialToolbar.showAmbientPopup(this);">
++              <image class="social-notification-icon-image"/>
++              <box class="social-notification-icon-counter" collapsed="true"/>
++            </box>
++            <box class="social-notification-icon-container" collapsed="true"
++                     onclick="SocialToolbar.showAmbientPopup(this);">
++              <image class="social-notification-icon-image"/>
++              <box class="social-notification-icon-counter" collapsed="true"/>
++            </box>
++          </hbox>
++        </hbox>
++      </toolbaritem>
++
 +      <toolbaritem id="bookmarks-menu-button-container"
 +                   class="chromeclass-toolbar-additional"
 +                   removable="true"
@@ -1047,21 +1131,21 @@
 +          </stack>
 +          <toolbarbutton id="developer-toolbar-webconsole"
 +                         label="&webConsoleButton.label;"
-+                         class="devtools-toolbarbutton"
++                         class="developer-toolbar-button"
 +                         command="Tools:WebConsole"/>
 +          <toolbarbutton id="developer-toolbar-inspector"
 +                         label="&inspectorButton.label;"
-+                         class="devtools-toolbarbutton"
++                         class="developer-toolbar-button"
 +                         hidden="true"
 +                         command="Tools:Inspect"/>
-+          <toolbarbutton id="developer-toolbar-responsiveui"
-+                         label="&responsiveDesignTool.label;"
-+                         class="devtools-toolbarbutton"
++          <toolbarbutton id="developer-toolbar-styleeditor"
++                         label="&styleeditor.label;"
++                         class="developer-toolbar-button"
 +                         hidden="true"
-+                         command="Tools:ResponsiveUI"/>
++                         command="Tools:StyleEditor"/>
 +          <toolbarbutton id="developer-toolbar-debugger"
-+                         label="&scriptsButton.label;"
-+                         class="devtools-toolbarbutton"
++                         label="&debuggerMenu.label2;"
++                         class="developer-toolbar-button"
 +                         hidden="true"
 +                         command="Tools:Debugger"/>
 +#ifndef XP_MACOSX
@@ -1167,7 +1251,7 @@
 +#include "nsUnixShellService.h"
  #endif
  
- #if defined(XP_WIN) && !defined(__MINGW32__)
+ #if defined(XP_WIN)
  #include "nsIEHistoryEnumerator.h"
  #endif
  
@@ -1186,7 +1270,7 @@
 -NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGNOMEShellService, Init)
  #endif
  
- #if defined(XP_WIN) && !defined(__MINGW32__)
+ #if defined(XP_WIN)
  NS_GENERIC_FACTORY_CONSTRUCTOR(nsIEHistoryEnumerator)
  #endif
  
@@ -1206,7 +1290,7 @@
  #endif
      { &kNS_FEEDSNIFFER_CID, false, NULL, nsFeedSnifferConstructor },
      { &kNS_BROWSER_ABOUT_REDIRECTOR_CID, false, NULL, AboutRedirector::Create },
- #if defined(XP_WIN) && !defined(__MINGW32__)
+ #if defined(XP_WIN)
      { &kNS_WINIEHISTORYENUMERATOR_CID, false, NULL, nsIEHistoryEnumeratorConstructor },
  #elif defined(XP_MACOSX)
      { &kNS_SHELLSERVICE_CID, false, NULL, nsMacShellServiceConstructor },
@@ -1331,7 +1415,7 @@
 +#include "nsCOMPtr.h"
 +#include "nsIPrefService.h"
 +#include "nsIProcess.h"
-+#include "nsILocalFile.h"
++#include "nsIFile.h"
 +#include "nsServiceManagerUtils.h"
 +#include "nsComponentManagerUtils.h"
 +#include "nsIMutableArray.h"
@@ -1478,7 +1562,7 @@
 +    }
 +
 +NS_IMETHODIMP
-+nsKDEShellService::OpenApplicationWithURI(nsILocalFile* aApplication, const nsACString& aURI)
++nsKDEShellService::OpenApplicationWithURI(nsIFile* aApplication, const nsACString& aURI)
 +    {
 +    nsCOMPtr<nsIMutableArray> command = do_CreateInstance( NS_ARRAY_CONTRACTID );
 +    if (!command)
@@ -1503,7 +1587,7 @@
 +    }
 +
 +NS_IMETHODIMP
-+nsKDEShellService::GetDefaultFeedReader(nsILocalFile** _retval)
++nsKDEShellService::GetDefaultFeedReader(nsIFile** _retval)
 +    {
 +    *_retval = nsnull;
 +
@@ -1537,7 +1621,7 @@
 +        return NS_ERROR_FAILURE;
 +
 +    nsresult rv;
-+    nsCOMPtr<nsILocalFile> defaultReader =
++    nsCOMPtr<nsIFile> defaultReader =
 +        do_CreateInstance("@mozilla.org/file/local;1", &rv);
 +    NS_ENSURE_SUCCESS(rv, rv);
 +
@@ -1727,8 +1811,8 @@
 diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in
 --- a/browser/installer/package-manifest.in
 +++ b/browser/installer/package-manifest.in
-@@ -522,18 +522,20 @@
- @BINPATH@/@PREF_DIR@/services-aitc.js
+@@ -558,18 +558,20 @@
+ @BINPATH@/@PREF_DIR@/services-sync.js
  #endif
  @BINPATH@/greprefs.js
  @BINPATH@/defaults/autoconfig/platform.js