- Explicitly load the URL after calling UIT_CreatePopupWindow (issue #215).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@231 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-05-10 16:41:41 +00:00
parent 092c4e4a9f
commit 2c0f941830
2 changed files with 6 additions and 2 deletions

View File

@@ -638,8 +638,11 @@ void BrowserWebViewDelegate::loadURLExternally(
WebFrame* frame, const WebURLRequest& request,
WebNavigationPolicy policy) {
DCHECK_NE(policy, WebKit::WebNavigationPolicyCurrentTab);
browser_->UIT_CreatePopupWindow(std::string(request.url().spec().data()),
CefPopupFeatures());
std::string url = request.url().spec().data();
CefRefPtr<CefBrowser> newBrowser =
browser_->UIT_CreatePopupWindow(url, CefPopupFeatures());
if (newBrowser.get() && !url.empty())
newBrowser->GetMainFrame()->LoadURL(url);
}
WebNavigationPolicy BrowserWebViewDelegate::decidePolicyForNavigation(