diff --git a/dom/network/src/MobileConnection.cpp b/dom/network/src/MobileConnection.cpp index d22060de601..ce9c6a6a2b0 100644 --- a/dom/network/src/MobileConnection.cpp +++ b/dom/network/src/MobileConnection.cpp @@ -102,8 +102,7 @@ MobileConnection::Init(nsPIDOMWindow* aWindow) mWindow = do_GetWeakReference(aWindow); mListener = new Listener(this); - if (!CheckPermission("mobilenetwork") && - CheckPermission("mobileconnection")) { + if (CheckPermission("mobileconnection")) { DebugOnly rv = mProvider->RegisterMobileConnectionMsg(mClientId, mListener); NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Failed registering mobile connection messages with provider");