Bug 1170894 - Implement nsIFrameLoader::SwitchProcessAndLoadURI. r=smaug

This commit is contained in:
Kan-Ru Chen
2015-08-31 18:21:40 +08:00
parent 0d9a44a185
commit fe1960d0a5
9 changed files with 255 additions and 21 deletions

View File

@@ -66,10 +66,13 @@ nsBrowserElement::InitBrowserElementAPI()
return;
}
mBrowserElementAPI = do_CreateInstance("@mozilla.org/dom/browser-element-api;1");
if (mBrowserElementAPI) {
mBrowserElementAPI->SetFrameLoader(frameLoader);
if (!mBrowserElementAPI) {
mBrowserElementAPI = do_CreateInstance("@mozilla.org/dom/browser-element-api;1");
if (NS_WARN_IF(!mBrowserElementAPI)) {
return;
}
}
mBrowserElementAPI->SetFrameLoader(frameLoader);
}
void