summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-01-21 14:46:17 +0100
committerRemi Collet <fedora@famillecollet.com>2013-01-21 14:46:17 +0100
commit3ac07f5e20413b4b298b9641c528680e72495f87 (patch)
treeac8dc55a5c29d8257604efde064b49b209a0ef33
parenta599d13268471fdb2e6a09d8af07e4320d6d6ddf (diff)
xulrunner: sync with rawhide
-rw-r--r--mozilla-791626.patch46
-rw-r--r--xulrunner.spec5
2 files changed, 51 insertions, 0 deletions
diff --git a/mozilla-791626.patch b/mozilla-791626.patch
new file mode 100644
index 0000000..c2e77ab
--- /dev/null
+++ b/mozilla-791626.patch
@@ -0,0 +1,46 @@
+# HG changeset patch
+# Parent 3523e7f7a89d7933c5f1dc8f5f22559b48ec44c4
+diff --git a/netwerk/base/src/nsIOService.cpp b/netwerk/base/src/nsIOService.cpp
+--- a/netwerk/base/src/nsIOService.cpp
++++ b/netwerk/base/src/nsIOService.cpp
+@@ -818,17 +818,18 @@ nsIOService::PrefsChanged(nsIPrefBranch
+ if (NS_SUCCEEDED(rv)) {
+ if (mSocketTransportService)
+ mSocketTransportService->SetAutodialEnabled(enableAutodial);
+ }
+ }
+
+ if (!pref || strcmp(pref, MANAGE_OFFLINE_STATUS_PREF) == 0) {
+ bool manage;
+- if (NS_SUCCEEDED(prefs->GetBoolPref(MANAGE_OFFLINE_STATUS_PREF,
++ if (mNetworkLinkServiceInitialized &&
++ NS_SUCCEEDED(prefs->GetBoolPref(MANAGE_OFFLINE_STATUS_PREF,
+ &manage)))
+ SetManageOfflineStatus(manage);
+ }
+
+ if (!pref || strcmp(pref, NECKO_BUFFER_CACHE_COUNT_PREF) == 0) {
+ int32_t count;
+ if (NS_SUCCEEDED(prefs->GetIntPref(NECKO_BUFFER_CACHE_COUNT_PREF,
+ &count)))
+@@ -928,16 +929,20 @@ nsIOService::Observe(nsISupports *subjec
+ }
+ else if (!strcmp(topic, kProfileDoChange)) {
+ if (data && NS_LITERAL_STRING("startup").Equals(data)) {
+ // Lazy initialization of network link service (see bug 620472)
+ InitializeNetworkLinkService();
+ // Set up the initilization flag regardless the actuall result.
+ // If we fail here, we will fail always on.
+ mNetworkLinkServiceInitialized = true;
++ // And now reflect the preference setting
++ nsCOMPtr<nsIPrefBranch> prefBranch;
++ GetPrefBranch(getter_AddRefs(prefBranch));
++ PrefsChanged(prefBranch, MANAGE_OFFLINE_STATUS_PREF);
+ }
+ }
+ else if (!strcmp(topic, NS_XPCOM_SHUTDOWN_OBSERVER_ID)) {
+ // Remember we passed XPCOM shutdown notification to prevent any
+ // changes of the offline status from now. We must not allow going
+ // online after this point.
+ mShutdown = true;
+
diff --git a/xulrunner.spec b/xulrunner.spec
index e9248bc..513e81b 100644
--- a/xulrunner.spec
+++ b/xulrunner.spec
@@ -118,6 +118,7 @@ Patch20: mozilla-193-pkgconfig.patch
# Upstream patches
Patch100: mozilla-677092-restartless-lang.patch
+Patch101: mozilla-791626.patch
# ---------------------------------------------------
@@ -268,6 +269,7 @@ cd %{tarballdir}
%patch20 -p2 -b .pk
%patch100 -p1 -R -b .restartless-lang
+%patch101 -p1 -b .791626
%{__rm} -f .mozconfig
%{__cat} %{SOURCE10} \
@@ -568,6 +570,9 @@ fi
#---------------------------------------------------------------------
%changelog
+* Tue Jan 15 2013 Martin Stransky <stransky@redhat.com> - 18.0-8
+- Added fix for NM regression (mozbz#791626)
+
* Sun Jan 13 2013 Remi Collet <RPMS@FamilleCollet.com> - 18.0-2
- sync with rawhide, re-enable webrtc