Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug

MozReview-Commit-ID: DAAm6tLubhJ
This commit is contained in:
Nika Layzell
2017-11-21 18:07:45 -05:00
parent 34556665b3
commit 20ee9a4927
55 changed files with 22 additions and 640 deletions

View File

@@ -1965,8 +1965,7 @@ EventSource::Constructor(const GlobalObject& aGlobal, const nsAString& aURL,
nsCOMPtr<nsPIDOMWindowInner> ownerWindow =
do_QueryInterface(aGlobal.GetAsSupports());
MOZ_ASSERT(!NS_IsMainThread() ||
(ownerWindow && ownerWindow->IsInnerWindow()));
MOZ_ASSERT(!NS_IsMainThread() || ownerWindow);
RefPtr<EventSource> eventSource =
new EventSource(ownerWindow, aEventSourceInitDict.mWithCredentials);