mirror of
https://abf.rosa.ru/djam/firefox.git
synced 2025-02-25 11:02:59 +00:00
commit
a7e1d0d6c2
6 changed files with 139 additions and 168 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
|||
sources:
|
||||
firefox-49.0.2.source.tar.xz: 52d527f06c522c95e2fcf4008dce1a9913379aaf
|
||||
firefox-50.0.source.tar.xz: 0770365882cecfbedf76c577b621a5a0d4ca69da
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
# HG changeset patch
|
||||
# Parent 2704257a50b4ff60fa43eca8d4a547c6d70bb30e
|
||||
# Parent 2cb2f829aabd7e3efaa973a0a8cf99aca9605bdc
|
||||
|
||||
diff --git a/browser/base/content/browser-kde.xul b/browser/base/content/browser-kde.xul
|
||||
new file mode 100644
|
||||
--- /dev/null
|
||||
+++ b/browser/base/content/browser-kde.xul
|
||||
@@ -0,0 +1,1179 @@
|
||||
@@ -0,0 +1,1200 @@
|
||||
+#filter substitution
|
||||
+<?xml version="1.0"?>
|
||||
+# -*- Mode: HTML -*-
|
||||
|
@ -19,7 +19,7 @@ new file mode 100644
|
|||
+<?xml-stylesheet href="chrome://browser/content/usercontext/usercontext.css" type="text/css"?>
|
||||
+<?xml-stylesheet href="chrome://devtools/skin/devtools-browser.css" type="text/css"?>
|
||||
+<?xml-stylesheet href="chrome://browser/skin/controlcenter/panel.css" type="text/css"?>
|
||||
+<?xml-stylesheet href="chrome://browser/skin/customizableui/panelUIOverlay.css" type="text/css"?>
|
||||
+<?xml-stylesheet href="chrome://browser/skin/customizableui/panelUI.css" type="text/css"?>
|
||||
+<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
|
||||
+<?xml-stylesheet href="chrome://browser/skin/browser-lightweightTheme.css" type="text/css"?>
|
||||
+
|
||||
|
@ -112,6 +112,12 @@ new file mode 100644
|
|||
+ hidden="true"
|
||||
+ oncommand="gBrowser.openNonRemoteWindow(TabContextMenu.contextTab);"/>
|
||||
+#endif
|
||||
+ <menuseparator id="context_sendTabToDevice_separator" hidden="true"/>
|
||||
+ <menu id="context_sendTabToDevice" label="&sendTabToDevice.label;"
|
||||
+ accesskey="&sendTabToDevice.accesskey;" hidden="true">
|
||||
+ <menupopup id="context_sendTabToDevicePopupMenu"
|
||||
+ onpopupshowing="gFxAccounts.populateSendTabToDevicesMenu(event.target, TabContextMenu.contextTab.linkedBrowser.currentURI.spec, TabContextMenu.contextTab.linkedBrowser.contentTitle);"/>
|
||||
+ </menu>
|
||||
+ <menuseparator/>
|
||||
+ <menuitem id="context_reloadAllTabs" label="&reloadAllTabs.label;" accesskey="&reloadAllTabs.accesskey;"
|
||||
+ tbattr="tabbrowser-multiple-visible"
|
||||
|
@ -380,7 +386,6 @@ new file mode 100644
|
|||
+ <menupopup id="placesContext">
|
||||
+ <menuseparator id="placesContext_recentlyBookmarkedSeparator"
|
||||
+ ignoreitem="true"
|
||||
+ ordinal="2"
|
||||
+ hidden="true"/>
|
||||
+ <menuitem id="placesContext_hideRecentlyBookmarked"
|
||||
+ label="&hideRecentlyBookmarked.label;"
|
||||
|
@ -388,7 +393,6 @@ new file mode 100644
|
|||
+ oncommand="BookmarkingUI.hideRecentlyBookmarked();"
|
||||
+ closemenu="single"
|
||||
+ ignoreitem="true"
|
||||
+ ordinal="2"
|
||||
+ hidden="true"/>
|
||||
+ <menuitem id="placesContext_showRecentlyBookmarked"
|
||||
+ label="&showRecentlyBookmarked.label;"
|
||||
|
@ -396,11 +400,10 @@ new file mode 100644
|
|||
+ oncommand="BookmarkingUI.showRecentlyBookmarked();"
|
||||
+ closemenu="single"
|
||||
+ ignoreitem="true"
|
||||
+ ordinal="2"
|
||||
+ hidden="true"/>
|
||||
+ </menupopup>
|
||||
+
|
||||
+ <panel id="ctrlTab-panel" class="KUI-panel" hidden="true" norestorefocus="true" level="top">
|
||||
+ <panel id="ctrlTab-panel" hidden="true" norestorefocus="true" level="top">
|
||||
+ <hbox>
|
||||
+ <button class="ctrlTab-preview" flex="1"/>
|
||||
+ <button class="ctrlTab-preview" flex="1"/>
|
||||
|
@ -553,12 +556,11 @@ new file mode 100644
|
|||
+ <toolbox id="navigator-toolbox" mode="icons">
|
||||
+ <!-- Menu -->
|
||||
+ <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
|
||||
+ defaultset="menubar-items"
|
||||
+ mode="icons" iconsize="small"
|
||||
+#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
+ toolbarname="&menubarCmd.label;"
|
||||
+ accesskey="&menubarCmd.accesskey;"
|
||||
+#if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_QT)
|
||||
+#if defined(MOZ_WIDGET_GTK)
|
||||
+ autohide="true"
|
||||
+#endif
|
||||
+#endif
|
||||
|
@ -585,10 +587,9 @@ new file mode 100644
|
|||
+ iconsize="small"
|
||||
+ aria-label="&tabsToolbar.label;"
|
||||
+ context="toolbar-context-menu"
|
||||
+ defaultset="tabbrowser-tabs,new-tab-button,alltabs-button"
|
||||
+ collapsed="true">
|
||||
+
|
||||
+#if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_QT)
|
||||
+#if defined(MOZ_WIDGET_GTK)
|
||||
+ <hbox id="private-browsing-indicator"
|
||||
+ skipintoolbarset="true"/>
|
||||
+#endif
|
||||
|
@ -638,7 +639,7 @@ new file mode 100644
|
|||
+ </menupopup>
|
||||
+ </toolbarbutton>
|
||||
+
|
||||
+#if !defined(MOZ_WIDGET_GTK) && !defined(MOZ_WIDGET_QT)
|
||||
+#if !defined(MOZ_WIDGET_GTK)
|
||||
+ <hbox class="private-browsing-indicator" skipintoolbarset="true"/>
|
||||
+#endif
|
||||
+#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
|
@ -657,21 +658,10 @@ new file mode 100644
|
|||
+#endif
|
||||
+ </toolbar>
|
||||
+
|
||||
+ <!--
|
||||
+ CAVEAT EMPTOR
|
||||
+ Should you need to add items to the toolbar here, make sure to also add them
|
||||
+ to the default placements of buttons in CustomizableUI.jsm, so the
|
||||
+ customization code doesn't get confused.
|
||||
+ -->
|
||||
+ <toolbar id="nav-bar"
|
||||
+ aria-label="&navbarCmd.label;"
|
||||
+ fullscreentoolbar="true" mode="icons" customizable="true"
|
||||
+ iconsize="small"
|
||||
+#ifdef MOZ_DEV_EDITION
|
||||
+ defaultset="urlbar-container,search-container,developer-button,bookmarks-menu-button,downloads-button,home-button,loop-button"
|
||||
+#else
|
||||
+ defaultset="urlbar-container,search-container,bookmarks-menu-button,downloads-button,home-button,loop-button"
|
||||
+#endif
|
||||
+ customizationtarget="nav-bar-customization-target"
|
||||
+ overflowable="true"
|
||||
+ overflowbutton="nav-bar-overflow-button"
|
||||
|
@ -715,7 +705,41 @@ new file mode 100644
|
|||
+ pageproxystate="invalid"
|
||||
+ onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'"
|
||||
+ onblur="setTimeout(() => { document.getElementById('identity-box').style.MozUserFocus = ''; }, 0);">
|
||||
+ <box id="notification-popup-box" hidden="true" align="center">
|
||||
+ <!-- Use onclick instead of normal popup= syntax since the popup
|
||||
+ code fires onmousedown, and hence eats our favicon drag events.
|
||||
+ 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"
|
||||
+ aria-label="&urlbar.viewSiteInfo.label;"
|
||||
+ onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
|
||||
+ onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);"
|
||||
+ ondragstart="gIdentityHandler.onDragStart(event);">
|
||||
+ <image id="identity-icon"
|
||||
+ consumeanchor="identity-box"
|
||||
+ onclick="PageProxyClickHandler(event);"/>
|
||||
+ <box id="blocked-permissions-container" align="center" tooltiptext="">
|
||||
+ <image data-permission-id="geo" class="notification-anchor-icon geo-icon blocked" role="button"
|
||||
+ aria-label="&urlbar.geolocationNotificationAnchor.label;"/>
|
||||
+ <image data-permission-id="desktop-notification" class="notification-anchor-icon desktop-notification-icon blocked" role="button"
|
||||
+ aria-label="&urlbar.webNotsNotificationAnchor3.label;"/>
|
||||
+ <image data-permission-id="camera" class="notification-anchor-icon camera-icon blocked" role="button"
|
||||
+ aria-label="&urlbar.webRTCShareDevicesNotificationAnchor.label;"/>
|
||||
+ <image data-permission-id="indexedDB" class="notification-anchor-icon indexedDB-icon blocked" role="button"
|
||||
+ aria-label="&urlbar.indexedDBNotificationAnchor.label;"/>
|
||||
+ <image data-permission-id="microphone" class="notification-anchor-icon microphone-icon blocked" role="button"
|
||||
+ aria-label="&urlbar.webRTCShareMicrophoneNotificationAnchor.label;"/>
|
||||
+ <image data-permission-id="screen" class="notification-anchor-icon screen-icon blocked" role="button"
|
||||
+ aria-label="&urlbar.webRTCShareScreenNotificationAnchor.label;"/>
|
||||
+ <image data-permission-id="pointerLock" class="notification-anchor-icon pointerLock-icon blocked" role="button"
|
||||
+ aria-label="&urlbar.pointerLockNotificationAnchor.label;"/>
|
||||
+ </box>
|
||||
+ <box id="notification-popup-box"
|
||||
+ hidden="true"
|
||||
+ tooltiptext=""
|
||||
+ onmouseover="document.getElementById('identity-icon').classList.add('no-hover');"
|
||||
+ onmouseout="document.getElementById('identity-icon').classList.remove('no-hover');"
|
||||
+ align="center">
|
||||
+ <image id="default-notification-icon" class="notification-anchor-icon" role="button"
|
||||
+ aria-label="&urlbar.defaultNotificationAnchor.label;"/>
|
||||
+ <image id="geo-notification-icon" class="notification-anchor-icon geo-icon" role="button"
|
||||
|
@ -730,7 +754,7 @@ new file mode 100644
|
|||
+ aria-label="&urlbar.passwordNotificationAnchor.label;"/>
|
||||
+ <image id="plugins-notification-icon" class="notification-anchor-icon plugin-icon" role="button"
|
||||
+ aria-label="&urlbar.pluginsNotificationAnchor.label;"/>
|
||||
+ <image id="web-notifications-notification-icon" class="notification-anchor-icon web-notifications-icon" role="button"
|
||||
+ <image id="web-notifications-notification-icon" class="notification-anchor-icon desktop-notification-icon" role="button"
|
||||
+ aria-label="&urlbar.webNotsNotificationAnchor3.label;"/>
|
||||
+ <image id="webRTC-shareDevices-notification-icon" class="notification-anchor-icon camera-icon" role="button"
|
||||
+ aria-label="&urlbar.webRTCShareDevicesNotificationAnchor.label;"/>
|
||||
|
@ -744,7 +768,7 @@ new file mode 100644
|
|||
+ aria-label="&urlbar.webRTCShareScreenNotificationAnchor.label;"/>
|
||||
+ <image id="webRTC-sharingScreen-notification-icon" class="notification-anchor-icon screen-icon in-use" role="button"
|
||||
+ aria-label="&urlbar.webRTCSharingScreenNotificationAnchor.label;"/>
|
||||
+ <image id="pointerLock-notification-icon" class="notification-anchor-icon pointer-icon" role="button"
|
||||
+ <image id="pointerLock-notification-icon" class="notification-anchor-icon pointerLock-icon" role="button"
|
||||
+ aria-label="&urlbar.pointerLockNotificationAnchor.label;"/>
|
||||
+ <image id="servicesInstall-notification-icon" class="notification-anchor-icon service-icon" role="button"
|
||||
+ aria-label="&urlbar.servicesNotificationAnchor.label;"/>
|
||||
|
@ -755,19 +779,6 @@ new file mode 100644
|
|||
+ <image id="eme-notification-icon" class="notification-anchor-icon drm-icon" role="button"
|
||||
+ aria-label="&urlbar.emeNotificationAnchor.label;"/>
|
||||
+ </box>
|
||||
+ <!-- Use onclick instead of normal popup= syntax since the popup
|
||||
+ code fires onmousedown, and hence eats our favicon drag events.
|
||||
+ 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"
|
||||
+ aria-label="&urlbar.viewSiteInfo.label;"
|
||||
+ onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
|
||||
+ onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);"
|
||||
+ ondragstart="gIdentityHandler.onDragStart(event);">
|
||||
+ <image id="identity-icon"
|
||||
+ consumeanchor="identity-box"
|
||||
+ onclick="PageProxyClickHandler(event);"/>
|
||||
+ <image id="tracking-protection-icon"/>
|
||||
+ <image id="connection-icon"/>
|
||||
+ <hbox id="identity-icon-labels">
|
||||
|
@ -972,7 +983,6 @@ new file mode 100644
|
|||
+ mode="icons" iconsize="small"
|
||||
+ class="chromeclass-directories"
|
||||
+ context="toolbar-context-menu"
|
||||
+ defaultset="personal-bookmarks"
|
||||
+ toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
|
||||
+ collapsed="true"
|
||||
+ customizable="true">
|
||||
|
@ -1139,13 +1149,13 @@ new file mode 100644
|
|||
+#include ../../components/customizableui/content/customizeMode.inc.xul
|
||||
+ </deck>
|
||||
+
|
||||
+ <html:div id="fullscreen-warning" hidden="true">
|
||||
+ <html:div id="fullscreen-domain-text">
|
||||
+ <html:div id="fullscreen-warning" class="pointerlockfswarning" hidden="true">
|
||||
+ <html:div class="pointerlockfswarning-domain-text">
|
||||
+ &fullscreenWarning.beforeDomain.label;
|
||||
+ <html:span id="fullscreen-domain"/>
|
||||
+ <html:span class="pointerlockfswarning-domain"/>
|
||||
+ &fullscreenWarning.afterDomain.label;
|
||||
+ </html:div>
|
||||
+ <html:div id="fullscreen-generic-text">
|
||||
+ <html:div class="pointerlockfswarning-generic-text">
|
||||
+ &fullscreenWarning.generic.label;
|
||||
+ </html:div>
|
||||
+ <html:button id="fullscreen-exit-button"
|
||||
|
@ -1158,6 +1168,17 @@ new file mode 100644
|
|||
+ </html:button>
|
||||
+ </html:div>
|
||||
+
|
||||
+ <html:div id="pointerlock-warning" class="pointerlockfswarning" hidden="true">
|
||||
+ <html:div class="pointerlockfswarning-domain-text">
|
||||
+ &pointerlockWarning.beforeDomain.label;
|
||||
+ <html:span class="pointerlockfswarning-domain"/>
|
||||
+ &pointerlockWarning.afterDomain.label;
|
||||
+ </html:div>
|
||||
+ <html:div class="pointerlockfswarning-generic-text">
|
||||
+ &pointerlockWarning.generic.label;
|
||||
+ </html:div>
|
||||
+ </html:div>
|
||||
+
|
||||
+ <vbox id="browser-bottombox" layer="true">
|
||||
+ <notificationbox id="global-notificationbox" notificationside="bottom"/>
|
||||
+ </vbox>
|
||||
|
@ -1188,7 +1209,7 @@ new file mode 100644
|
|||
diff --git a/browser/base/jar.mn b/browser/base/jar.mn
|
||||
--- a/browser/base/jar.mn
|
||||
+++ b/browser/base/jar.mn
|
||||
@@ -69,16 +69,18 @@ browser.jar:
|
||||
@@ -68,16 +68,18 @@ browser.jar:
|
||||
content/browser/aboutTabCrashed.css (content/aboutTabCrashed.css)
|
||||
content/browser/aboutTabCrashed.js (content/aboutTabCrashed.js)
|
||||
content/browser/aboutTabCrashed.xhtml (content/aboutTabCrashed.xhtml)
|
||||
|
@ -1205,7 +1226,7 @@ diff --git a/browser/base/jar.mn b/browser/base/jar.mn
|
|||
content/browser/browser-data-submission-info-bar.js (content/browser-data-submission-info-bar.js)
|
||||
content/browser/browser-devedition.js (content/browser-devedition.js)
|
||||
content/browser/browser-feeds.js (content/browser-feeds.js)
|
||||
content/browser/browser-fullScreen.js (content/browser-fullScreen.js)
|
||||
content/browser/browser-fullScreenAndPointerLock.js (content/browser-fullScreenAndPointerLock.js)
|
||||
content/browser/browser-fullZoom.js (content/browser-fullZoom.js)
|
||||
diff --git a/browser/components/build/nsModule.cpp b/browser/components/build/nsModule.cpp
|
||||
--- a/browser/components/build/nsModule.cpp
|
||||
|
@ -1293,7 +1314,7 @@ diff --git a/browser/components/preferences/in-content/main.js b/browser/compone
|
|||
// when the user will select the default. We refresh here periodically
|
||||
// in case the default changes. On other Windows OS's defaults can also
|
||||
// be set while the prefs are open.
|
||||
@@ -730,16 +736,27 @@ var gMainPane = {
|
||||
@@ -703,16 +709,27 @@ var gMainPane = {
|
||||
let alwaysCheckPref = document.getElementById("browser.shell.checkDefaultBrowser");
|
||||
alwaysCheckPref.value = true;
|
||||
|
||||
|
@ -1636,7 +1657,7 @@ new file mode 100644
|
|||
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
|
||||
@@ -676,16 +676,17 @@
|
||||
@@ -674,16 +674,17 @@
|
||||
@RESPATH@/greprefs.js
|
||||
@RESPATH@/defaults/autoconfig/prefcalls.js
|
||||
@RESPATH@/browser/defaults/permissions
|
15
firefox.spec
15
firefox.spec
|
@ -7,7 +7,7 @@
|
|||
# This also means only STABLE upstream releases, NO betas.
|
||||
# This is a discussed topic. Please, do not flame it again.
|
||||
|
||||
%define major 49.0.2
|
||||
%define major 50.0
|
||||
%define ff_epoch 0
|
||||
# (tpg) set version HERE !!!
|
||||
%define realver %{major}
|
||||
|
@ -32,7 +32,7 @@ Summary: Next generation web browser
|
|||
Name: firefox
|
||||
Version: %{major}
|
||||
Epoch: %{ff_epoch}
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: MPLv1+
|
||||
Group: Networking/WWW
|
||||
Url: http://www.mozilla.com/firefox/
|
||||
|
@ -46,20 +46,19 @@ Source4: %{name}.desktop
|
|||
Source9: kde.js
|
||||
Source1000: README.urpmi
|
||||
# Patches for kde integration of FF
|
||||
Patch11: firefox-49-kde.patch
|
||||
Patch12: mozilla-49-kde.patch
|
||||
# http://www.rosenauer.org/hg/mozilla/summary
|
||||
Patch11: firefox-kde.patch
|
||||
Patch12: mozilla-kde.patch
|
||||
#Patch13: mozilla-kde-background.patch
|
||||
Patch34: xulrunner_nojit.patch
|
||||
Patch35: firefox-37-build-with-time-independent-uuids.patch
|
||||
Patch36: firefox-38.0-enable-NTLMv1.patch
|
||||
Patch42: mozilla-42.0-libproxy.patch
|
||||
|
||||
# Fedora specific patches
|
||||
# Unable to install addons from https pages
|
||||
Patch204: rhbz-966424.patch
|
||||
Patch215: firefox-enable-addons.patch
|
||||
Patch219: rhbz-1173156.patch
|
||||
Patch220: rhbz-1014858.patch
|
||||
|
||||
# Gtk3 upstream patches
|
||||
|
||||
|
@ -178,13 +177,11 @@ Files and macros mainly for building Firefox extensions.
|
|||
%endif
|
||||
%patch35 -p1
|
||||
%patch36 -p1
|
||||
#patch42 -p1
|
||||
|
||||
# Fedora patches
|
||||
%patch204 -p2 -b .966424
|
||||
%patch215 -p1 -b .addons
|
||||
%patch219 -p2 -b .rhbz-1173156
|
||||
#patch220 -p1 -b .rhbz-1014858
|
||||
|
||||
pushd js/src
|
||||
autoconf-2.13
|
||||
|
@ -201,7 +198,7 @@ export MOZCONFIG=`pwd`/mozconfig
|
|||
cat << EOF > $MOZCONFIG
|
||||
mk_add_options MOZILLA_OFFICIAL=1
|
||||
mk_add_options BUILD_OFFICIAL=1
|
||||
mk_add_options MOZ_MAKE_FLAGS="%{_smp_mflags}"
|
||||
mk_add_options MOZ_MAKE_FLAGS="-j1"
|
||||
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
|
||||
ac_add_options --host=%{_host}
|
||||
ac_add_options --target=%{_target_platform}
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
# HG changeset patch
|
||||
# User Wolfgang Rosenauer <wr@rosenauer.org>
|
||||
# Parent 95b421ca30846be2b5d7230d72263e6dff042d0b
|
||||
Bug 1220399 - building with libproxy support fails
|
||||
|
||||
diff --git a/toolkit/system/unixproxy/nsLibProxySettings.cpp b/toolkit/system/unixproxy/nsLibProxySettings.cpp
|
||||
--- a/toolkit/system/unixproxy/nsLibProxySettings.cpp
|
||||
+++ b/toolkit/system/unixproxy/nsLibProxySettings.cpp
|
||||
@@ -2,16 +2,17 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsISystemProxySettings.h"
|
||||
#include "mozilla/ModuleUtils.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsIURI.h"
|
||||
+#include "nsNetCID.h"
|
||||
#include "nsString.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nspr.h"
|
||||
|
||||
extern "C" {
|
||||
#include <proxy.h>
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
# HG changeset patch
|
||||
# Parent 1d3f5cacba056949ea9a56d4d805c3073efe403b
|
||||
# Parent 6ff55468281e12a84adefb46b17acb60d9cea608
|
||||
Description: Add KDE integration to Firefox (toolkit parts)
|
||||
Author: Wolfgang Rosenauer <wolfgang@rosenauer.org>
|
||||
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 "prefapi_private_data.h"
|
||||
|
||||
@@ -1162,16 +1163,34 @@ pref_LoadPrefsInDir(nsIFile* aDir, char
|
||||
@@ -1180,16 +1181,34 @@ pref_LoadPrefsInDir(nsIFile* aDir, char
|
||||
|
||||
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;
|
||||
|
||||
bool hasMore;
|
||||
@@ -1187,17 +1206,17 @@ static nsresult pref_LoadPrefsInDirList(
|
||||
@@ -1205,17 +1224,17 @@ static nsresult pref_LoadPrefsInDirList(
|
||||
|
||||
nsAutoCString 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);
|
||||
NS_ENSURE_TRUE(manifest.Buffer(), NS_ERROR_NOT_AVAILABLE);
|
||||
@@ -1291,24 +1310,36 @@ static nsresult pref_InitInitialObjects(
|
||||
@@ -1309,24 +1328,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 */
|
||||
static const char* specialFiles[] = {
|
||||
#if defined(XP_MACOSX)
|
||||
|
@ -228,7 +228,7 @@ diff --git a/toolkit/components/downloads/nsDownloadManager.cpp b/toolkit/compon
|
|||
#endif
|
||||
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
#include "AndroidBridge.h"
|
||||
#include "GeneratedJNIWrappers.h"
|
||||
#endif
|
||||
|
||||
@@ -2719,16 +2723,25 @@ nsDownload::SetState(DownloadState aStat
|
||||
|
@ -278,7 +278,7 @@ diff --git a/toolkit/components/downloads/nsDownloadManager.cpp b/toolkit/compon
|
|||
diff --git a/toolkit/content/jar.mn b/toolkit/content/jar.mn
|
||||
--- a/toolkit/content/jar.mn
|
||||
+++ b/toolkit/content/jar.mn
|
||||
@@ -72,29 +72,33 @@ toolkit.jar:
|
||||
@@ -67,29 +67,33 @@ toolkit.jar:
|
||||
content/global/viewZoomOverlay.js
|
||||
content/global/bindings/autocomplete.xml (widgets/autocomplete.xml)
|
||||
content/global/bindings/browser.xml (widgets/browser.xml)
|
||||
|
@ -784,7 +784,7 @@ diff --git a/toolkit/content/widgets/preferences-kde.xml b/toolkit/content/widge
|
|||
new file mode 100644
|
||||
--- /dev/null
|
||||
+++ b/toolkit/content/widgets/preferences-kde.xml
|
||||
@@ -0,0 +1,1408 @@
|
||||
@@ -0,0 +1,1410 @@
|
||||
+<?xml version="1.0"?>
|
||||
+
|
||||
+<!DOCTYPE bindings [
|
||||
|
@ -954,6 +954,8 @@ new file mode 100644
|
|||
+ <field name="_constructed">false</field>
|
||||
+ <property name="instantApply">
|
||||
+ <getter>
|
||||
+ if (this.getAttribute("instantApply") == "false")
|
||||
+ return false;
|
||||
+ return this.getAttribute("instantApply") == "true" || this.preferences.instantApply;
|
||||
+ </getter>
|
||||
+ </property>
|
||||
|
@ -2290,13 +2292,13 @@ diff --git a/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp b/toolkit/sy
|
|||
diff --git a/toolkit/xre/moz.build b/toolkit/xre/moz.build
|
||||
--- a/toolkit/xre/moz.build
|
||||
+++ b/toolkit/xre/moz.build
|
||||
@@ -47,17 +47,19 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'ui
|
||||
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
|
||||
EXPORTS += ['nsQAppInstance.h']
|
||||
SOURCES += [
|
||||
'!moc_nsNativeAppSupportQt.cpp',
|
||||
'nsNativeAppSupportQt.cpp',
|
||||
'nsQAppInstance.cpp',
|
||||
@@ -39,17 +39,19 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'co
|
||||
'updaterfileutils_osx.mm',
|
||||
]
|
||||
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'uikit':
|
||||
UNIFIED_SOURCES += [
|
||||
'nsNativeAppSupportDefault.cpp',
|
||||
'UIKitDirProvider.mm',
|
||||
]
|
||||
elif 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
+ EXPORTS += ['nsKDEUtils.h']
|
||||
|
@ -2730,7 +2732,7 @@ diff --git a/uriloader/exthandler/moz.build b/uriloader/exthandler/moz.build
|
|||
'android/nsExternalSharingAppService.cpp',
|
||||
'android/nsExternalURLHandlerService.cpp',
|
||||
'android/nsMIMEInfoAndroid.cpp',
|
||||
@@ -131,16 +133,17 @@ include('/ipc/chromium/chromium-config.m
|
||||
@@ -123,16 +125,17 @@ include('/ipc/chromium/chromium-config.m
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
|
@ -2746,7 +2748,7 @@ diff --git a/uriloader/exthandler/moz.build b/uriloader/exthandler/moz.build
|
|||
CXXFLAGS += CONFIG['TK_CFLAGS']
|
||||
CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3'):
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk2', 'gtk3'):
|
||||
CXXFLAGS += CONFIG['TK_CFLAGS']
|
||||
diff --git a/uriloader/exthandler/unix/nsCommonRegistry.cpp b/uriloader/exthandler/unix/nsCommonRegistry.cpp
|
||||
new file mode 100644
|
||||
|
@ -2974,13 +2976,12 @@ new file mode 100644
|
|||
diff --git a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp b/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp
|
||||
--- a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp
|
||||
+++ b/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp
|
||||
@@ -7,32 +7,35 @@
|
||||
#ifdef MOZ_WIDGET_QT
|
||||
#if (MOZ_ENABLE_CONTENTACTION)
|
||||
#include <contentaction/contentaction.h>
|
||||
#include "nsContentHandlerApp.h"
|
||||
#endif
|
||||
#endif
|
||||
@@ -1,50 +1,53 @@
|
||||
/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsMIMEInfoUnix.h"
|
||||
-#include "nsGNOMERegistry.h"
|
||||
|
@ -2992,9 +2993,6 @@ diff --git a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp b/uriloader/exthandler
|
|||
#ifdef MOZ_ENABLE_DBUS
|
||||
#include "nsDBusHandlerApp.h"
|
||||
#endif
|
||||
#ifdef MOZ_WIDGET_QT
|
||||
#include "nsMIMEInfoQt.h"
|
||||
#endif
|
||||
+#if defined(XP_UNIX) && !defined(XP_MACOSX)
|
||||
+#include "nsKDEUtils.h"
|
||||
+#endif
|
||||
|
@ -3002,17 +3000,14 @@ diff --git a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp b/uriloader/exthandler
|
|||
nsresult
|
||||
nsMIMEInfoUnix::LoadUriInternal(nsIURI * aURI)
|
||||
{
|
||||
- nsresult rv = nsGNOMERegistry::LoadURL(aURI);
|
||||
+ nsresult rv = nsCommonRegistry::LoadURL(aURI);
|
||||
|
||||
#ifdef MOZ_WIDGET_QT
|
||||
if (NS_FAILED(rv)) {
|
||||
rv = nsMIMEInfoQt::LoadUriInternal(aURI);
|
||||
- return nsGNOMERegistry::LoadURL(aURI);
|
||||
+ return nsCommonRegistry::LoadURL(aURI);
|
||||
}
|
||||
#endif
|
||||
|
||||
return rv;
|
||||
@@ -45,24 +48,24 @@ nsMIMEInfoUnix::GetHasDefaultHandler(boo
|
||||
NS_IMETHODIMP
|
||||
nsMIMEInfoUnix::GetHasDefaultHandler(bool *_retval)
|
||||
{
|
||||
// if mDefaultApplication is set, it means the application has been set from
|
||||
// either /etc/mailcap or ${HOME}/.mailcap, in which case we don't want to
|
||||
// give the GNOME answer.
|
||||
if (mDefaultApplication)
|
||||
|
@ -3040,7 +3035,7 @@ diff --git a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp b/uriloader/exthandler
|
|||
|
||||
if (*_retval)
|
||||
return NS_OK;
|
||||
@@ -97,16 +100,33 @@ nsMIMEInfoUnix::LaunchDefaultWithFile(ns
|
||||
@@ -79,16 +82,33 @@ nsMIMEInfoUnix::LaunchDefaultWithFile(ns
|
||||
ContentAction::Action::defaultActionForFile(uri, QString(mSchemeOrType.get()));
|
||||
if (action.isValid()) {
|
||||
action.trigger();
|
||||
|
@ -3166,7 +3161,7 @@ diff --git a/uriloader/exthandler/unix/nsOSHelperAppService.cpp b/uriloader/exth
|
|||
diff --git a/widget/gtk/moz.build b/widget/gtk/moz.build
|
||||
--- a/widget/gtk/moz.build
|
||||
+++ b/widget/gtk/moz.build
|
||||
@@ -87,16 +87,17 @@ else:
|
||||
@@ -90,16 +90,17 @@ else:
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
@ -3275,8 +3270,8 @@ diff --git a/widget/gtk/nsFilePicker.cpp b/widget/gtk/nsFilePicker.cpp
|
|||
GTK_WINDOW(mParentWidget->GetNativeData(NS_NATIVE_SHELLWIDGET));
|
||||
|
||||
GtkFileChooserAction action = GetGtkFileChooserAction(mMode);
|
||||
const gchar *accept_button = (action == GTK_FILE_CHOOSER_ACTION_SAVE)
|
||||
@@ -595,8 +615,235 @@ nsFilePicker::Done(GtkWidget* file_choos
|
||||
|
||||
@@ -603,8 +623,235 @@ nsFilePicker::Done(GtkWidget* file_choos
|
||||
if (mCallback) {
|
||||
mCallback->Done(result);
|
||||
mCallback = nullptr;
|
||||
|
@ -3590,7 +3585,7 @@ diff --git a/xpcom/components/ManifestParser.cpp b/xpcom/components/ManifestPars
|
|||
#pragma warning(disable:4996) // VC12+ deprecates GetVersionEx
|
||||
OSVERSIONINFO info = { sizeof(OSVERSIONINFO) };
|
||||
if (GetVersionEx(&info)) {
|
||||
nsTextFormatter::ssprintf(osVersion, MOZ_UTF16("%ld.%ld"),
|
||||
nsTextFormatter::ssprintf(osVersion, u"%ld.%ld",
|
||||
info.dwMajorVersion,
|
||||
info.dwMinorVersion);
|
||||
}
|
||||
|
@ -3599,12 +3594,12 @@ diff --git a/xpcom/components/ManifestParser.cpp b/xpcom/components/ManifestPars
|
|||
#elif defined(MOZ_WIDGET_COCOA)
|
||||
SInt32 majorVersion = nsCocoaFeatures::OSXVersionMajor();
|
||||
SInt32 minorVersion = nsCocoaFeatures::OSXVersionMinor();
|
||||
nsTextFormatter::ssprintf(osVersion, MOZ_UTF16("%ld.%ld"),
|
||||
nsTextFormatter::ssprintf(osVersion, u"%ld.%ld",
|
||||
majorVersion,
|
||||
minorVersion);
|
||||
+ desktop = NS_LITERAL_STRING("macosx");
|
||||
#elif defined(MOZ_WIDGET_GTK)
|
||||
nsTextFormatter::ssprintf(osVersion, MOZ_UTF16("%ld.%ld"),
|
||||
nsTextFormatter::ssprintf(osVersion, u"%ld.%ld",
|
||||
gtk_major_version,
|
||||
gtk_minor_version);
|
||||
+ desktop = nsKDEUtils::kdeSession() ? NS_LITERAL_STRING("kde") : NS_LITERAL_STRING("gnome");
|
||||
|
@ -3614,7 +3609,7 @@ diff --git a/xpcom/components/ManifestParser.cpp b/xpcom/components/ManifestPars
|
|||
mozilla::AndroidBridge::Bridge()->GetStaticStringField("android/os/Build$VERSION",
|
||||
"RELEASE",
|
||||
osVersion);
|
||||
isTablet = mozilla::widget::GeckoAppShell::IsTablet();
|
||||
isTablet = java::GeckoAppShell::IsTablet();
|
||||
}
|
||||
+ desktop = NS_LITERAL_STRING("android");
|
||||
#endif
|
|
@ -1,16 +0,0 @@
|
|||
diff -up mozilla-release/toolkit/xre/nsAppRunner.cpp.old mozilla-release/toolkit/xre/nsAppRunner.cpp
|
||||
--- mozilla-release/toolkit/xre/nsAppRunner.cpp.old 2014-11-26 03:17:40.000000000 +0100
|
||||
+++ mozilla-release/toolkit/xre/nsAppRunner.cpp 2015-01-05 14:23:05.977933308 +0100
|
||||
@@ -4168,10 +4168,8 @@ XREMain::XRE_main(int argc, char* argv[]
|
||||
|
||||
#if defined(MOZ_WIDGET_GTK)
|
||||
#if defined(MOZ_MEMORY) || defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
- // Disable the slice allocator, since jemalloc already uses similar layout
|
||||
- // algorithms, and using a sub-allocator tends to increase fragmentation.
|
||||
- // This must be done before g_thread_init() is called.
|
||||
- g_slice_set_config(G_SLICE_CONFIG_ALWAYS_MALLOC, 1);
|
||||
+ // rhbz#1014858 - enable slice allocator for child processes
|
||||
+ unsetenv("G_SLICE");
|
||||
#endif
|
||||
g_thread_init(nullptr);
|
||||
#endif
|
Loading…
Add table
Reference in a new issue