Bug 464174. r=sicking, sr=sicking, a=beltzner

This commit is contained in:
Blake Kaplan 2008-11-28 18:16:17 -08:00
parent f32e0ba3e6
commit a871090e67
3 changed files with 4 additions and 1 deletions

View File

@ -206,6 +206,7 @@ XBLResolve(JSContext *cx, JSObject *obj, jsval id, uintN flags,
// Now we either resolve or fail
PRBool didInstall;
nsresult rv = field->InstallField(context, origObj,
content->NodePrincipal(),
protoBinding->DocURI(),
&didInstall);
if (NS_FAILED(rv)) {

View File

@ -94,6 +94,7 @@ nsXBLProtoImplField::AppendFieldText(const nsAString& aText)
nsresult
nsXBLProtoImplField::InstallField(nsIScriptContext* aContext,
JSObject* aBoundNode,
nsIPrincipal* aPrincipal,
nsIURI* aBindingDocURI,
PRBool* aDidInstall) const
{
@ -131,7 +132,7 @@ nsXBLProtoImplField::InstallField(nsIScriptContext* aContext,
rv = context->EvaluateStringWithValue(nsDependentString(mFieldText,
mFieldTextLength),
aBoundNode,
nsnull, uriSpec.get(),
aPrincipal, uriSpec.get(),
mLineNumber, JSVERSION_LATEST,
(void*) &result, &undefined);
if (NS_FAILED(rv))

View File

@ -64,6 +64,7 @@ public:
nsresult InstallField(nsIScriptContext* aContext,
JSObject* aBoundNode,
nsIPrincipal* aPrincipal,
nsIURI* aBindingDocURI,
PRBool* aDidInstall) const;