Bug 1134021 - Use composed document when getting nsDOMWindowUtils from shadow DOM content. r=kats

This commit is contained in:
William Chen 2015-02-23 10:10:23 -08:00
Родитель 2649263bed
Коммит 46214bb09f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);
}