Bug 703098 - Removing unneeded file.exist checks. Stats are terrible. r=mfinkle
authorDoug Turner <dougt@dougt.org>
Thu, 17 Nov 2011 13:03:57 -0800
changeset 83526 ca12f13374458367fe6f92490beeadaf2d870280
parent 83525 1931173a30a0d350782bcffffd287f4c785dd689
child 83527 556bacb7c080579406083a28118796a4f3fada85
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs703098
milestone11.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 703098 - Removing unneeded file.exist checks. Stats are terrible. r=mfinkle
mobile/android/components/BrowserCLH.js
--- a/mobile/android/components/BrowserCLH.js
+++ b/mobile/android/components/BrowserCLH.js
@@ -20,28 +20,20 @@ function openWindow(aParent, aURL, aTarg
   }
 
   return Services.ww.openWindow(aParent, aURL, aTarget, aFeatures, argString || aArgs);
 }
 
 
 function resolveURIInternal(aCmdLine, aArgument) {
   let uri = aCmdLine.resolveURI(aArgument);
-
-  if (!(uri instanceof Ci.nsIFileURL))
+  if (uri)
     return uri;
 
   try {
-    if (uri.file.exists())
-      return uri;
-  } catch (e) {
-    Cu.reportError(e);
-  }
-
-  try {
     let urifixup = Cc["@mozilla.org/docshell/urifixup;1"].getService(Ci.nsIURIFixup);
     uri = urifixup.createFixupURI(aArgument, 0);
   } catch (e) {
     Cu.reportError(e);
   }
 
   return uri;
 }