Bug 1450271 Make MediaQueryList bind to its document's inner window. r=baku

This commit is contained in:
Ben Kelly 2018-04-02 08:35:52 -07:00
parent a6499922db
commit 9d0c860356

View File

@ -23,7 +23,8 @@ namespace dom {
MediaQueryList::MediaQueryList(nsIDocument* aDocument,
const nsAString& aMediaQueryList,
CallerType aCallerType)
: mDocument(aDocument)
: DOMEventTargetHelper(aDocument->GetInnerWindow())
, mDocument(aDocument)
, mMatches(false)
, mMatchesValid(false)
{