зеркало из https://github.com/mozilla/gecko-dev.git
Bug 464174. r=sicking, sr=sicking, a=beltzner
This commit is contained in:
Родитель
1207ceca43
Коммит
b4af46ef18
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче