mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 464174. r=sicking, sr=sicking, a=beltzner
This commit is contained in:
parent
f32e0ba3e6
commit
a871090e67
@ -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)) {
|
||||
|
@ -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))
|
||||
|
@ -64,6 +64,7 @@ public:
|
||||
|
||||
nsresult InstallField(nsIScriptContext* aContext,
|
||||
JSObject* aBoundNode,
|
||||
nsIPrincipal* aPrincipal,
|
||||
nsIURI* aBindingDocURI,
|
||||
PRBool* aDidInstall) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user