Bug 814264 follow-up: change the error text. DONTBUILD
authorMarco Bonardo <mbonardo@mozilla.com>
Wed, 28 Nov 2012 18:26:02 +0100
changeset 114377 bae3069ca3962ed9b2b9376d3fd2da5142050997
parent 114376 9659f41bda78ea565addb4ca85c9e210a02444ab
child 114378 2b6cc93b25fffac393468062f32eeed6933f2e82
push id23917
push useremorley@mozilla.com
push dateThu, 29 Nov 2012 14:20:29 +0000
treeherdermozilla-central@c72d38e7a212 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs814264
milestone20.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 814264 follow-up: change the error text. DONTBUILD r_irc=gavin
browser/base/content/utilityOverlay.js
--- a/browser/base/content/utilityOverlay.js
+++ b/browser/base/content/utilityOverlay.js
@@ -220,20 +220,18 @@ function openLinkIn(url, where, params) 
   var aInBackground         = params.inBackground;
   var aDisallowInheritPrincipal = params.disallowInheritPrincipal;
   // Currently, this parameter works only for where=="tab" or "current"
   var aIsUTF8               = params.isUTF8;
   var aInitiatingDoc        = params.initiatingDoc;
 
   if (where == "save") {
     if (!aInitiatingDoc) {
-      Components.utils.reportError(
-        "OpenLinkIn has been invoked without an initiating document.\n" +
-        "This may be caused by an add-on miscalling into it, or overriding " +
-        "some utilityOverlay.js methods.  See bug 814264 for details.");
+      Components.utils.reportError("openUILink/openLinkIn was called with " +
+        "where == 'save' but without initiatingDoc.  See bug 814264.");
       return;
     }
     saveURL(url, null, null, true, null, aReferrerURI, aInitiatingDoc);
     return;
   }
   const Cc = Components.classes;
   const Ci = Components.interfaces;