Bug 880854. When attaching XBL bindings to elements in a static document, sync-load the bindings document so that delayed changes to the shadow DOM don't mess up, for example, printing. r=mrbkap

--HG--
extra : rebase_source : 283ce66e7659b8ac9d8c5dc08d52b0f5a79452fb
This commit is contained in:
Robert O'Callahan 2013-08-02 21:26:21 +12:00
parent 50634577d5
commit 67635e3f83

View File

@ -901,6 +901,10 @@ nsXBLService::LoadBindingDocumentInfo(nsIContent* aBoundElement,
if (aBoundDocument) {
bindingManager = aBoundDocument->BindingManager();
info = bindingManager->GetXBLDocumentInfo(documentURI);
if (aBoundDocument->IsStaticDocument() &&
IsChromeOrResourceURI(aBindingURI)) {
aForceSyncLoad = true;
}
}
nsINodeInfo *ni = nullptr;