mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Attach bindings via addBinding even to nodes not in a document. Bug 380990, r+sr=sicking
This commit is contained in:
parent
053c2cc91f
commit
54d9fbc29a
@ -494,13 +494,7 @@ nsXBLService::LoadBindings(nsIContent* aContent, nsIURI* aURL, PRBool aAugmentFl
|
||||
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIDocument> document;
|
||||
if (aContent->HasFlag(NODE_FORCE_XBL_BINDINGS)) {
|
||||
document = aContent->GetOwnerDoc();
|
||||
}
|
||||
else {
|
||||
document = aContent->GetCurrentDoc();
|
||||
}
|
||||
nsCOMPtr<nsIDocument> document = aContent->GetOwnerDoc();
|
||||
|
||||
// XXX document may be null if we're in the midst of paint suppression
|
||||
if (!document)
|
||||
|
Loading…
Reference in New Issue
Block a user