Bug 1445923 - Removed references of systemAppUrl along with meaningless code. r=gsvelto
authorpet_flipper <kalraabhishek98@gmail.com>
Tue, 09 Apr 2019 09:41:19 +0000
changeset 468542 5b234fb94513ebe03a71434b08ef77e627c94f96
parent 468541 0c5e505e37994e00ad32d1bc837ffcda2499d0fa
child 468543 6e52132e84820d113675c86a68cabf661d603d6d
push id112733
push usercsabou@mozilla.com
push dateTue, 09 Apr 2019 16:30:22 +0000
treeherdermozilla-inbound@e14dba56bbfd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgsvelto
bugs1445923
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1445923 - Removed references of systemAppUrl along with meaningless code. r=gsvelto Differential Revision: https://phabricator.services.mozilla.com/D26503
dom/audiochannel/AudioChannelAgent.cpp
--- a/dom/audiochannel/AudioChannelAgent.cpp
+++ b/dom/audiochannel/AudioChannelAgent.cpp
@@ -90,36 +90,16 @@ nsresult AudioChannelAgent::FindCorrectW
   if (!doc) {
     return NS_OK;
   }
 
   if (nsContentUtils::IsChromeDoc(doc)) {
     return NS_OK;
   }
 
-  nsAutoCString systemAppUrl;
-  nsresult rv =
-      mozilla::Preferences::GetCString("b2g.system_startup_url", systemAppUrl);
-  if (NS_FAILED(rv)) {
-    return NS_OK;
-  }
-
-  nsCOMPtr<nsIPrincipal> principal = doc->NodePrincipal();
-  nsCOMPtr<nsIURI> uri;
-  principal->GetURI(getter_AddRefs(uri));
-
-  if (uri) {
-    nsAutoCString spec;
-    uri->GetSpec(spec);
-
-    if (spec.Equals(systemAppUrl)) {
-      return NS_OK;
-    }
-  }
-
   return FindCorrectWindow(parent);
 }
 
 nsresult AudioChannelAgent::InitInternal(
     nsPIDOMWindowInner* aWindow, nsIAudioChannelAgentCallback* aCallback,
     bool aUseWeakRef) {
   if (NS_WARN_IF(!aWindow)) {
     return NS_ERROR_FAILURE;