зеркало из https://github.com/mozilla/pjs.git
Fix for 41145, r-waterson
This commit is contained in:
Родитель
82eebb8026
Коммит
9dd6b8c0c0
|
@ -677,6 +677,10 @@ nsChromeProtocolHandler::NewChannel(nsIURI* aURI,
|
|||
rv = aURI->Clone(getter_AddRefs(chromeURI)); // don't mangle the original
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
//nsXPIDLCString oldSpec;
|
||||
//aURI->GetSpec(getter_Copies(oldSpec));
|
||||
//printf("*************************** %s\n", (const char*)oldSpec);
|
||||
|
||||
nsXPIDLCString spec;
|
||||
rv = reg->ConvertChromeURL(chromeURI, getter_Copies(spec));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
|
|
@ -1984,7 +1984,11 @@ nsXULElement::GetScriptObject(nsIScriptContext* aContext, void** aScriptObject)
|
|||
cssDecl->GetPropertyValue(behavior, value);
|
||||
if (!value.IsEmpty()) {
|
||||
// We have a binding that must be installed.
|
||||
xblService->LoadBindings(NS_STATIC_CAST(nsIStyledContent*, this), value, PR_FALSE);
|
||||
xblService->LoadBindings(NS_STATIC_CAST(nsIStyledContent*, this), value, PR_FALSE,
|
||||
getter_AddRefs(binding));
|
||||
if (binding) {
|
||||
binding->ExecuteAttachedHandler();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -677,6 +677,10 @@ nsChromeProtocolHandler::NewChannel(nsIURI* aURI,
|
|||
rv = aURI->Clone(getter_AddRefs(chromeURI)); // don't mangle the original
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
//nsXPIDLCString oldSpec;
|
||||
//aURI->GetSpec(getter_Copies(oldSpec));
|
||||
//printf("*************************** %s\n", (const char*)oldSpec);
|
||||
|
||||
nsXPIDLCString spec;
|
||||
rv = reg->ConvertChromeURL(chromeURI, getter_Copies(spec));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
|
|
@ -1984,7 +1984,11 @@ nsXULElement::GetScriptObject(nsIScriptContext* aContext, void** aScriptObject)
|
|||
cssDecl->GetPropertyValue(behavior, value);
|
||||
if (!value.IsEmpty()) {
|
||||
// We have a binding that must be installed.
|
||||
xblService->LoadBindings(NS_STATIC_CAST(nsIStyledContent*, this), value, PR_FALSE);
|
||||
xblService->LoadBindings(NS_STATIC_CAST(nsIStyledContent*, this), value, PR_FALSE,
|
||||
getter_AddRefs(binding));
|
||||
if (binding) {
|
||||
binding->ExecuteAttachedHandler();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче