From 57976c909bd8ba095f2e8fd5207e91a073b63923 Mon Sep 17 00:00:00 2001 From: Ben Turner Date: Mon, 8 Sep 2008 11:37:09 -0700 Subject: [PATCH] Bug 453380 - "Compile worker scripts with principals to enable eval support". Forgot jst's nits. --- dom/src/threads/nsDOMWorkerSecurityManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/src/threads/nsDOMWorkerSecurityManager.cpp b/dom/src/threads/nsDOMWorkerSecurityManager.cpp index 9b630bfc556..b94973abb4f 100644 --- a/dom/src/threads/nsDOMWorkerSecurityManager.cpp +++ b/dom/src/threads/nsDOMWorkerSecurityManager.cpp @@ -53,7 +53,7 @@ class nsDOMWorkerPrincipal : public JSPrincipals { public: nsDOMWorkerPrincipal() { - codebase = "domworker-890cfb50-cbae-4470-8475-8f60056f49f2"; + codebase = "domworkerthread"; getPrincipalArray = NULL; globalPrivilegesEnabled = NULL; refcount = 1; @@ -138,5 +138,6 @@ JSBool nsDOMWorkerSecurityManager::JSTranscodePrincipals(JSXDRState* aXdr, JSPrincipals** aJsprinp) { + NS_NOTREACHED("Shouldn't ever call this!"); return JS_FALSE; }