mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-27 18:01:44 -10:00
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
This commit is contained in:
1 parent
366da70c9f
commit
e95edb30a9
806 files changed
+4708
-5299
No files matched your search
@@ -77,7 +77,7 @@ DeviceStorageFileSystem::Init(nsDOMDeviceStorage* aDeviceStorage)
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread(), "Only call on main thread!");
|
||||
MOZ_ASSERT(aDeviceStorage);
|
||||
nsCOMPtr<nsPIDOMWindow> window = aDeviceStorage->GetOwner();
|
||||
nsCOMPtr<nsPIDOMWindowInner> window = aDeviceStorage->GetOwner();
|
||||
MOZ_ASSERT(window->IsInnerWindow());
|
||||
mWindowId = window->WindowID();
|
||||
}
|
||||
@@ -89,13 +89,13 @@ DeviceStorageFileSystem::Shutdown()
|
||||
mShutdown = true;
|
||||
}
|
||||
|
||||
nsPIDOMWindow*
|
||||
nsPIDOMWindowInner*
|
||||
DeviceStorageFileSystem::GetWindow() const
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread(), "Only call on main thread!");
|
||||
nsGlobalWindow* window = nsGlobalWindow::GetInnerWindowWithId(mWindowId);
|
||||
MOZ_ASSERT_IF(!mShutdown, window);
|
||||
return window;
|
||||
return window ? window->AsInner() : nullptr;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in new issue
Block a user