зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1356922 - Part 2: Remove TabParent::sNextTabParent; r=billm
This commit is contained in:
Родитель
6399dc4d9a
Коммит
755165acec
|
@ -565,16 +565,6 @@ TabParent::RecvEvent(const RemoteDOMEvent& aEvent)
|
|||
return IPC_OK();
|
||||
}
|
||||
|
||||
TabParent* TabParent::sNextTabParent;
|
||||
|
||||
/* static */ TabParent*
|
||||
TabParent::GetNextTabParent()
|
||||
{
|
||||
TabParent* result = sNextTabParent;
|
||||
sNextTabParent = nullptr;
|
||||
return result;
|
||||
}
|
||||
|
||||
bool
|
||||
TabParent::SendLoadRemoteScript(const nsString& aURL,
|
||||
const bool& aRunInGlobalScope)
|
||||
|
|
|
@ -553,8 +553,6 @@ public:
|
|||
|
||||
bool IsInitedByParent() const { return mInitedByParent; }
|
||||
|
||||
static TabParent* GetNextTabParent();
|
||||
|
||||
bool SendLoadRemoteScript(const nsString& aURL,
|
||||
const bool& aRunInGlobalScope);
|
||||
|
||||
|
@ -698,13 +696,6 @@ private:
|
|||
|
||||
TabId mTabId;
|
||||
|
||||
// When loading a new tab or window via window.open, the child process sends
|
||||
// a new PBrowser to use. We store that tab in sNextTabParent and then
|
||||
// proceed through the browser's normal paths to create a new
|
||||
// window/tab. When it comes time to create a new TabParent, we instead use
|
||||
// sNextTabParent.
|
||||
static TabParent* sNextTabParent;
|
||||
|
||||
// When loading a new tab or window via window.open, the child is
|
||||
// responsible for loading the URL it wants into the new TabChild. When the
|
||||
// parent receives the CreateWindow message, though, it sends a LoadURL
|
||||
|
|
Загрузка…
Ссылка в новой задаче