Bug 424066 - "CheckSameOriginURI reports spurious error during routine internal comparison" (make NS_ScriptErrorReporter not whine about inequal origin URLs when constructing exceptions) [p=shaver@mozilla.org (Mike Shaver) sr=bzbarsky a1.9b5=beltzner]
authorreed@reedloden.com
Tue, 25 Mar 2008 22:37:23 -0700
changeset 13566 73bff33fbf58e20988f0229ec821c256a9f191da
parent 13565 6abed41b79718ae57473267fcb1abc9cfc48bd4d
child 13567 0e1351bb8d11e5f2cb83bda9b5a58a3d5aaa6e61
push idunknown
push userunknown
push dateunknown
reviewersbzbarsky
bugs424066
milestone1.9b5pre
Bug 424066 - "CheckSameOriginURI reports spurious error during routine internal comparison" (make NS_ScriptErrorReporter not whine about inequal origin URLs when constructing exceptions) [p=shaver@mozilla.org (Mike Shaver) sr=bzbarsky a1.9b5=beltzner]
dom/src/base/nsJSEnvironment.cpp
--- a/dom/src/base/nsJSEnvironment.cpp
+++ b/dom/src/base/nsJSEnvironment.cpp
@@ -498,17 +498,18 @@ NS_ScriptErrorReporter(JSContext *cx,
 
               if (errorURI && codebase) {
                 // FIXME: Once error reports contain the origin of the
                 // error (principals) we should change this to do the
                 // security check based on the principals and not
                 // URIs. See bug 387476.
                 sameOrigin =
                   NS_SUCCEEDED(sSecurityManager->
-                               CheckSameOriginURI(errorURI, codebase, PR_TRUE));
+                               CheckSameOriginURI(errorURI, codebase,
+                                                  PR_FALSE));
               }
             }
 
             if (sameOrigin) {
               errorevent.errorMsg = msg.get();
               errorevent.lineNr = report->lineno;
             } else {
               errorevent.errorMsg = xoriginMsg.get();