From 3ac07f5e20413b4b298b9641c528680e72495f87 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 21 Jan 2013 14:46:17 +0100 Subject: xulrunner: sync with rawhide --- mozilla-791626.patch | 46 ++++++++++++++++++++++++++++++++++++++++++++++ xulrunner.spec | 5 +++++ 2 files changed, 51 insertions(+) create mode 100644 mozilla-791626.patch 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 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 - 18.0-8 +- Added fix for NM regression (mozbz#791626) + * Sun Jan 13 2013 Remi Collet - 18.0-2 - sync with rawhide, re-enable webrtc -- cgit