Bug 1356922 - Part 2: Remove TabParent::sNextTabParent; r=billm

This commit is contained in:
Ehsan Akhgari 2017-04-16 19:38:10 -04:00 коммит произвёл Ehsan Akhgari
Родитель 6399dc4d9a
Коммит 755165acec
2 изменённых файлов: 0 добавлений и 19 удалений

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

@ -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