update kde patches

This commit is contained in:
Tigro 2016-06-08 14:57:47 +03:00
parent 1c497f4d2e
commit 025a54292b
3 changed files with 200 additions and 213 deletions

View file

@ -1,11 +1,11 @@
# HG changeset patch # HG changeset patch
# Parent fd5629206dcf3f64d85ab177be6bc6076f0f1619 # Parent 4311c6bdf61ac317bc60b25cd89ff67662a75049
diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul
new file mode 100644 new file mode 100644
--- /dev/null --- /dev/null
+++ b/browser/base/content/browser-kde.xul +++ b/browser/base/content/browser-kde.xul
@@ -0,0 +1,1175 @@ @@ -0,0 +1,1160 @@
+#filter substitution +#filter substitution
+<?xml version="1.0"?> +<?xml version="1.0"?>
+# -*- Mode: HTML -*- +# -*- Mode: HTML -*-
@ -77,6 +77,8 @@ new file mode 100644
+ +
+<script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/> +<script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
+ +
+<script type="application/javascript" src="chrome://browser/content/downloads/downloads.js"/>
+<script type="application/javascript" src="chrome://browser/content/downloads/indicator.js"/>
+<script type="application/javascript" src="chrome://browser/content/places/editBookmarkOverlay.js"/> +<script type="application/javascript" src="chrome://browser/content/places/editBookmarkOverlay.js"/>
+ +
+# All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the +# All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the
@ -188,12 +190,6 @@ new file mode 100644
+ <vbox> + <vbox>
+ <label id="editBookmarkPanelTitle"/> + <label id="editBookmarkPanelTitle"/>
+ <description id="editBookmarkPanelDescription"/> + <description id="editBookmarkPanelDescription"/>
+ <hbox>
+ <button id="editBookmarkPanelRemoveButton"
+ class="editBookmarkPanelHeaderButton"
+ oncommand="StarUI.removeBookmarkButtonCommand();"
+ accesskey="&editBookmark.removeBookmark.accessKey;"/>
+ </hbox>
+ </vbox> + </vbox>
+ </row> + </row>
+ <vbox id="editBookmarkPanelContent" flex="1" hidden="true"/> + <vbox id="editBookmarkPanelContent" flex="1" hidden="true"/>
@ -204,15 +200,15 @@ new file mode 100644
+ label="&editBookmark.done.label;" + label="&editBookmark.done.label;"
+ default="true" + default="true"
+ oncommand="StarUI.panel.hidePopup();"/> + oncommand="StarUI.panel.hidePopup();"/>
+ <button id="editBookmarkPanelDeleteButton" + <button id="editBookmarkPanelRemoveButton"
+ class="editBookmarkPanelBottomButton" + class="editBookmarkPanelBottomButton"
+ label="&editBookmark.cancel.label;" + oncommand="StarUI.removeBookmarkButtonCommand();"
+ oncommand="StarUI.cancelButtonOnCommand();"/> + accesskey="&editBookmark.removeBookmark.accessKey;"/>
+#else +#else
+ <button id="editBookmarkPanelDeleteButton" + <button id="editBookmarkPanelRemoveButton"
+ class="editBookmarkPanelBottomButton" + class="editBookmarkPanelBottomButton"
+ label="&editBookmark.cancel.label;" + oncommand="StarUI.removeBookmarkButtonCommand();"
+ oncommand="StarUI.cancelButtonOnCommand();"/> + accesskey="&editBookmark.removeBookmark.accessKey;"/>
+ <button id="editBookmarkPanelDoneButton" + <button id="editBookmarkPanelDoneButton"
+ class="editBookmarkPanelBottomButton" + class="editBookmarkPanelBottomButton"
+ label="&editBookmark.done.label;" + label="&editBookmark.done.label;"
@ -471,6 +467,46 @@ new file mode 100644
+ +
+ <tooltip id="dynamic-shortcut-tooltip" + <tooltip id="dynamic-shortcut-tooltip"
+ onpopupshowing="UpdateDynamicShortcutTooltipText(this);"/> + onpopupshowing="UpdateDynamicShortcutTooltipText(this);"/>
+
+ <menupopup id="SyncedTabsSidebarContext">
+ <menuitem label="&syncedTabs.context.openTab.label;"
+ accesskey="&syncedTabs.context.openTab.accesskey;"
+ id="syncedTabsOpenSelected"/>
+ <menuitem label="&syncedTabs.context.bookmarkSingleTab.label;"
+ accesskey="&syncedTabs.context.bookmarkSingleTab.accesskey;"
+ id="syncedTabsBookmarkSelected"/>
+ <menuseparator/>
+ <menuitem label="&syncSyncNowItem.label;"
+ accesskey="&syncSyncNowItem.accesskey;"
+ id="syncedTabsRefresh"/>
+ </menupopup>
+ <menupopup id="SyncedTabsSidebarTabsFilterContext"
+ class="textbox-contextmenu">
+ <menuitem label="&undoCmd.label;"
+ accesskey="&undoCmd.accesskey;"
+ cmd="cmd_undo"/>
+ <menuseparator/>
+ <menuitem label="&cutCmd.label;"
+ accesskey="&cutCmd.accesskey;"
+ cmd="cmd_cut"/>
+ <menuitem label="&copyCmd.label;"
+ accesskey="&copyCmd.accesskey;"
+ cmd="cmd_copy"/>
+ <menuitem label="&pasteCmd.label;"
+ accesskey="&pasteCmd.accesskey;"
+ cmd="cmd_paste"/>
+ <menuitem label="&deleteCmd.label;"
+ accesskey="&deleteCmd.accesskey;"
+ cmd="cmd_delete"/>
+ <menuseparator/>
+ <menuitem label="&selectAllCmd.label;"
+ accesskey="&selectAllCmd.accesskey;"
+ cmd="cmd_selectAll"/>
+ <menuseparator/>
+ <menuitem label="&syncSyncNowItem.label;"
+ accesskey="&syncSyncNowItem.accesskey;"
+ id="syncedTabsRefreshFilter"/>
+ </menupopup>
+ </popupset> + </popupset>
+ +
+#ifdef CAN_DRAW_IN_TITLEBAR +#ifdef CAN_DRAW_IN_TITLEBAR
@ -667,10 +703,6 @@ new file mode 100644
+ <box id="notification-popup-box" hidden="true" align="center"> + <box id="notification-popup-box" hidden="true" align="center">
+ <image id="default-notification-icon" class="notification-anchor-icon" role="button" + <image id="default-notification-icon" class="notification-anchor-icon" role="button"
+ aria-label="&urlbar.defaultNotificationAnchor.label;"/> + aria-label="&urlbar.defaultNotificationAnchor.label;"/>
+ <!-- NB: the identity-notification-icon is used for persona-based auth and preffed
+ off by default. It hasn't been updated for some time and liable to being
+ removed.-->
+ <image id="identity-notification-icon" class="notification-anchor-icon" role="button"/>
+ <image id="geo-notification-icon" class="notification-anchor-icon" role="button" + <image id="geo-notification-icon" class="notification-anchor-icon" role="button"
+ aria-label="&urlbar.geolocationNotificationAnchor.label;"/> + aria-label="&urlbar.geolocationNotificationAnchor.label;"/>
+ <image id="addons-notification-icon" class="notification-anchor-icon" role="button" + <image id="addons-notification-icon" class="notification-anchor-icon" role="button"
@ -811,30 +843,6 @@ new file mode 100644
+ command="Browser:ShowAllBookmarks" + command="Browser:ShowAllBookmarks"
+ key="manBookmarkKb"/> + key="manBookmarkKb"/>
+ <menuseparator/> + <menuseparator/>
+ <menuitem id="BMB_subscribeToPageMenuitem"
+#ifndef XP_MACOSX
+ class="menuitem-iconic subviewbutton"
+#else
+ class="subviewbutton"
+#endif
+ label="&subscribeToPageMenuitem.label;"
+ oncommand="return FeedHandler.subscribeToFeed(null, event);"
+ onclick="checkForMiddleClick(this, event);"
+ observes="singleFeedMenuitemState"/>
+ <menu id="BMB_subscribeToPageMenupopup"
+#ifndef XP_MACOSX
+ class="menu-iconic subviewbutton"
+#else
+ class="subviewbutton"
+#endif
+ label="&subscribeToPageMenupopup.label;"
+ observes="multipleFeedsMenuState">
+ <menupopup id="BMB_subscribeToPageSubmenuMenupopup"
+ onpopupshowing="return FeedHandler.buildFeedList(event.target);"
+ oncommand="return FeedHandler.subscribeToFeed(null, event);"
+ onclick="checkForMiddleClick(this, event);"/>
+ </menu>
+ <menuseparator/>
+ <menu id="BMB_bookmarksToolbar" + <menu id="BMB_bookmarksToolbar"
+ class="menu-iconic bookmark-item subviewbutton" + class="menu-iconic bookmark-item subviewbutton"
+ label="&personalbarCmd.label;" + label="&personalbarCmd.label;"
@ -1133,29 +1141,6 @@ new file mode 100644
+ +
+ <vbox id="browser-bottombox" layer="true"> + <vbox id="browser-bottombox" layer="true">
+ <notificationbox id="global-notificationbox" notificationside="bottom"/> + <notificationbox id="global-notificationbox" notificationside="bottom"/>
+ <toolbar id="developer-toolbar"
+ hidden="true">
+#ifdef XP_MACOSX
+ <toolbarbutton id="developer-toolbar-closebutton"
+ class="devtools-closebutton"
+ oncommand="DeveloperToolbar.hide();"
+ tooltiptext="&devToolbarCloseButton.tooltiptext;"/>
+#endif
+ <stack class="gclitoolbar-stack-node" flex="1">
+ <textbox class="gclitoolbar-input-node" rows="1"/>
+ <hbox class="gclitoolbar-complete-node"/>
+ </stack>
+ <toolbarbutton id="developer-toolbar-toolbox-button"
+ class="developer-toolbar-button"
+ observes="devtoolsMenuBroadcaster_DevToolbox"
+ tooltiptext="&devToolbarToolsButton.tooltip;"/>
+#ifndef XP_MACOSX
+ <toolbarbutton id="developer-toolbar-closebutton"
+ class="devtools-closebutton"
+ oncommand="DeveloperToolbar.hide();"
+ tooltiptext="&devToolbarCloseButton.tooltiptext;"/>
+#endif
+ </toolbar>
+ </vbox> + </vbox>
+ +
+ <svg:svg height="0"> + <svg:svg height="0">
@ -1266,7 +1251,7 @@ diff --git a/browser/components/build/nsModule.cpp b/browser/components/build/ns
diff --git a/browser/components/preferences/in-content/main.js b/browser/components/preferences/in-content/main.js diff --git a/browser/components/preferences/in-content/main.js b/browser/components/preferences/in-content/main.js
--- a/browser/components/preferences/in-content/main.js --- a/browser/components/preferences/in-content/main.js
+++ b/browser/components/preferences/in-content/main.js +++ b/browser/components/preferences/in-content/main.js
@@ -19,16 +19,22 @@ var gMainPane = { @@ -23,16 +23,22 @@ var gMainPane = {
init: function () init: function ()
{ {
function setEventListener(aId, aEventType, aCallback) function setEventListener(aId, aEventType, aCallback)
@ -1289,10 +1274,10 @@ diff --git a/browser/components/preferences/in-content/main.js b/browser/compone
// when the user will select the default. We refresh here periodically // when the user will select the default. We refresh here periodically
// in case the default changes. On other Windows OS's defaults can also // in case the default changes. On other Windows OS's defaults can also
// be set while the prefs are open. // be set while the prefs are open.
@@ -704,16 +710,27 @@ var gMainPane = { @@ -736,16 +742,27 @@ var gMainPane = {
*/ let alwaysCheckPref = document.getElementById("browser.shell.checkDefaultBrowser");
setDefaultBrowser: function() alwaysCheckPref.value = true;
{
let shellSvc = getShellService(); let shellSvc = getShellService();
if (!shellSvc) if (!shellSvc)
return; return;
@ -1313,8 +1298,8 @@ diff --git a/browser/components/preferences/in-content/main.js b/browser/compone
Cu.reportError(ex); Cu.reportError(ex);
return; return;
} }
let selectedIndex =
shellSvc.isDefaultBrowser(false, true) ? 1 : 0; let selectedIndex = shellSvc.isDefaultBrowser(false, true) ? 1 : 0;
document.getElementById("setDefaultPane").selectedIndex = selectedIndex; document.getElementById("setDefaultPane").selectedIndex = selectedIndex;
} }
diff --git a/browser/components/shell/moz.build b/browser/components/shell/moz.build diff --git a/browser/components/shell/moz.build b/browser/components/shell/moz.build
@ -1632,7 +1617,7 @@ new file mode 100644
diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in
--- a/browser/installer/package-manifest.in --- a/browser/installer/package-manifest.in
+++ b/browser/installer/package-manifest.in +++ b/browser/installer/package-manifest.in
@@ -703,16 +703,17 @@ @@ -697,16 +697,17 @@
@RESPATH@/greprefs.js @RESPATH@/greprefs.js
@RESPATH@/defaults/autoconfig/prefcalls.js @RESPATH@/defaults/autoconfig/prefcalls.js
@RESPATH@/browser/defaults/permissions @RESPATH@/browser/defaults/permissions

View file

@ -45,8 +45,8 @@ Source4: %{name}.desktop
Source9: kde.js Source9: kde.js
Source1000: README.urpmi Source1000: README.urpmi
# Patches for kde integration of FF # Patches for kde integration of FF
Patch11: firefox-46-kde.patch Patch11: firefox-47-kde.patch
Patch12: mozilla-46-kde.patch Patch12: mozilla-47-kde.patch
#Patch13: mozilla-kde-background.patch #Patch13: mozilla-kde-background.patch
Patch34: xulrunner_nojit.patch Patch34: xulrunner_nojit.patch
Patch35: firefox-37-build-with-time-independent-uuids.patch Patch35: firefox-37-build-with-time-independent-uuids.patch

View file

@ -1,5 +1,5 @@
# HG changeset patch # HG changeset patch
# Parent 61cdc9af8ceaf75083e751e0d6497feddc26f7ba # Parent f2726ebfae7cdded8e7ca6030829b0a3fae4e438
Description: Add KDE integration to Firefox (toolkit parts) Description: Add KDE integration to Firefox (toolkit parts)
Author: Wolfgang Rosenauer <wolfgang@rosenauer.org> Author: Wolfgang Rosenauer <wolfgang@rosenauer.org>
Author: Lubos Lunak <lunak@suse.com> Author: Lubos Lunak <lunak@suse.com>
@ -27,7 +27,7 @@ diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp
#include "prefread.h" #include "prefread.h"
#include "prefapi_private_data.h" #include "prefapi_private_data.h"
@@ -1135,16 +1136,34 @@ pref_LoadPrefsInDir(nsIFile* aDir, char @@ -1138,16 +1139,34 @@ pref_LoadPrefsInDir(nsIFile* aDir, char
static nsresult pref_LoadPrefsInDirList(const char *listId) static nsresult pref_LoadPrefsInDirList(const char *listId)
{ {
@ -62,7 +62,7 @@ diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp
return NS_OK; return NS_OK;
bool hasMore; bool hasMore;
@@ -1160,17 +1179,17 @@ static nsresult pref_LoadPrefsInDirList( @@ -1163,17 +1182,17 @@ static nsresult pref_LoadPrefsInDirList(
nsAutoCString leaf; nsAutoCString leaf;
path->GetNativeLeafName(leaf); path->GetNativeLeafName(leaf);
@ -81,7 +81,7 @@ diff --git a/modules/libpref/Preferences.cpp b/modules/libpref/Preferences.cpp
{ {
nsZipItemPtr<char> manifest(jarReader, name, true); nsZipItemPtr<char> manifest(jarReader, name, true);
NS_ENSURE_TRUE(manifest.Buffer(), NS_ERROR_NOT_AVAILABLE); NS_ENSURE_TRUE(manifest.Buffer(), NS_ERROR_NOT_AVAILABLE);
@@ -1264,24 +1283,36 @@ static nsresult pref_InitInitialObjects( @@ -1267,24 +1286,36 @@ static nsresult pref_InitInitialObjects(
/* these pref file names should not be used: we process them after all other application pref files for backwards compatibility */ /* these pref file names should not be used: we process them after all other application pref files for backwards compatibility */
static const char* specialFiles[] = { static const char* specialFiles[] = {
#if defined(XP_MACOSX) #if defined(XP_MACOSX)
@ -337,7 +337,7 @@ new file mode 100644
+ +
+ <xul:hbox class="dialog-button-box" anonid="buttons" + <xul:hbox class="dialog-button-box" anonid="buttons"
+ xbl:inherits="pack=buttonpack,align=buttonalign,dir=buttondir,orient=buttonorient" + xbl:inherits="pack=buttonpack,align=buttonalign,dir=buttondir,orient=buttonorient"
+#ifdef XP_UNIX_GNOME +#ifdef XP_UNIX
+ > + >
+ <xul:button dlgtype="disclosure" class="dialog-button" hidden="true"/> + <xul:button dlgtype="disclosure" class="dialog-button" hidden="true"/>
+ <xul:button dlgtype="help" class="dialog-button" hidden="true"/> + <xul:button dlgtype="help" class="dialog-button" hidden="true"/>
@ -782,7 +782,7 @@ diff --git a/toolkit/content/widgets/preferences-kde.xml b/toolkit/content/widge
new file mode 100644 new file mode 100644
--- /dev/null --- /dev/null
+++ b/toolkit/content/widgets/preferences-kde.xml +++ b/toolkit/content/widgets/preferences-kde.xml
@@ -0,0 +1,1406 @@ @@ -0,0 +1,1408 @@
+<?xml version="1.0"?> +<?xml version="1.0"?>
+ +
+<!DOCTYPE bindings [ +<!DOCTYPE bindings [
@ -1228,7 +1228,9 @@ new file mode 100644
+ Components.utils.reportError(e); + Components.utils.reportError(e);
+ } + }
+ } + }
+ var val = rv !== undefined ? rv : (this.instantApply ? this.valueFromPreferences : this.value); + var val = rv;
+ if (val === undefined)
+ val = this.instantApply ? this.valueFromPreferences : this.value;
+ // if the preference is marked for reset, show default value in UI + // if the preference is marked for reset, show default value in UI
+ if (val === undefined) + if (val === undefined)
+ val = this.defaultValue; + val = this.defaultValue;
@ -1856,12 +1858,12 @@ new file mode 100644
+ .getService(Components.interfaces.nsIScriptSecurityManager); + .getService(Components.interfaces.nsIScriptSecurityManager);
+ if (this.type == "child" && window.opener && + if (this.type == "child" && window.opener &&
+ secMan.isSystemPrincipal(window.opener.document.nodePrincipal)) { + secMan.isSystemPrincipal(window.opener.document.nodePrincipal)) {
+ var psvc = Components.classes["@mozilla.org/preferences-service;1"] + let psvc = Components.classes["@mozilla.org/preferences-service;1"]
+ .getService(Components.interfaces.nsIPrefBranch); + .getService(Components.interfaces.nsIPrefBranch);
+ var pdocEl = window.opener.document.documentElement; + var pdocEl = window.opener.document.documentElement;
+ if (pdocEl.instantApply) { + if (pdocEl.instantApply) {
+ var panes = this.preferencePanes; + let panes = this.preferencePanes;
+ for (var i = 0; i < panes.length; ++i) + for (let i = 0; i < panes.length; ++i)
+ panes[i].writePreferences(true); + panes[i].writePreferences(true);
+ } + }
+ else { + else {
@ -1873,12 +1875,12 @@ new file mode 100644
+ var id = window.location.href + "#childprefs"; + var id = window.location.href + "#childprefs";
+ var childPrefs = pdoc.getElementById(id); + var childPrefs = pdoc.getElementById(id);
+ if (!childPrefs) { + if (!childPrefs) {
+ var childPrefs = pdoc.createElement("preferences"); + childPrefs = pdoc.createElement("preferences");
+ currentPane.appendChild(childPrefs); + currentPane.appendChild(childPrefs);
+ childPrefs.id = id; + childPrefs.id = id;
+ } + }
+ var panes = this.preferencePanes; + let panes = this.preferencePanes;
+ for (var i = 0; i < panes.length; ++i) { + for (let i = 0; i < panes.length; ++i) {
+ var preferences = panes[i].preferences; + var preferences = panes[i].preferences;
+ for (var j = 0; j < preferences.length; ++j) { + for (var j = 0; j < preferences.length; ++j) {
+ // Try to find a preference element for the same preference. + // Try to find a preference element for the same preference.
@ -1909,11 +1911,11 @@ new file mode 100644
+ } + }
+ } + }
+ else { + else {
+ var panes = this.preferencePanes; + let panes = this.preferencePanes;
+ for (var i = 0; i < panes.length; ++i) + for (var i = 0; i < panes.length; ++i)
+ panes[i].writePreferences(false); + panes[i].writePreferences(false);
+ +
+ var psvc = Components.classes["@mozilla.org/preferences-service;1"] + let psvc = Components.classes["@mozilla.org/preferences-service;1"]
+ .getService(Components.interfaces.nsIPrefService); + .getService(Components.interfaces.nsIPrefService);
+ psvc.savePrefFile(null); + psvc.savePrefFile(null);
+ } + }