mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1134021
- Use composed document when getting nsDOMWindowUtils from shadow DOM content. r=kats
This commit is contained in:
parent
2649263bed
commit
46214bb09f
@ -244,7 +244,7 @@ already_AddRefed<nsIDOMWindowUtils>
|
||||
APZCCallbackHelper::GetDOMWindowUtils(const nsIContent* aContent)
|
||||
{
|
||||
nsCOMPtr<nsIDOMWindowUtils> utils;
|
||||
nsIDocument* doc = aContent->GetCurrentDoc();
|
||||
nsIDocument* doc = aContent->GetComposedDoc();
|
||||
if (doc) {
|
||||
utils = GetDOMWindowUtils(doc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user