diff --git a/chrome/src/nsChromeProtocolHandler.cpp b/chrome/src/nsChromeProtocolHandler.cpp index 4b28cb5373b..6714260dba7 100644 --- a/chrome/src/nsChromeProtocolHandler.cpp +++ b/chrome/src/nsChromeProtocolHandler.cpp @@ -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; diff --git a/content/xul/content/src/nsXULElement.cpp b/content/xul/content/src/nsXULElement.cpp index c2eaccfbac2..75534b8c2fc 100644 --- a/content/xul/content/src/nsXULElement.cpp +++ b/content/xul/content/src/nsXULElement.cpp @@ -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(); + } } } } diff --git a/rdf/chrome/src/nsChromeProtocolHandler.cpp b/rdf/chrome/src/nsChromeProtocolHandler.cpp index 4b28cb5373b..6714260dba7 100644 --- a/rdf/chrome/src/nsChromeProtocolHandler.cpp +++ b/rdf/chrome/src/nsChromeProtocolHandler.cpp @@ -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; diff --git a/rdf/content/src/nsXULElement.cpp b/rdf/content/src/nsXULElement.cpp index c2eaccfbac2..75534b8c2fc 100644 --- a/rdf/content/src/nsXULElement.cpp +++ b/rdf/content/src/nsXULElement.cpp @@ -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(); + } } } }