This isn't exactly what you want, but it might help:

The new tab page wants all links it opens to be opened in a new
process (to help avoid potential leakage of private data due to
unanticipated bugs from the new tab page into the page you're
opening).  So it blocks webkit loading of URLs and instead pushes the
URL load out into the browser process, which means the page load
effectively goes through the "typed a URL into the URL bar" code path.

The code has all changed since I last worked with it, but grepping
around for AllowDOMUIBindings might help find it.

On Wed, Jan 28, 2009 at 12:48 PM, Marshall Greenblatt
<[email protected]> wrote:
> Hi All,
>
> I would like to evaluate the URL that will be opened in a newly created
> popup window before the view for that window is created.  It seems that the
> WebViewDelegate::CreateWebView() method might be the appropriate place to do
> this, but that method does not get the popup URL as an argument.   This URL
> information is available in WebCore::createWindow() but is not passed into
> FrameLoader::createWindow(), etc.  Is it reasonable to pass the URL through
> the call chain to WebViewDelegate::CreateWebView() (which will require
> changes to third_party\WebKit\WebCore), or is there a more appropriate way
> to access this information before the popup window view is created in
> WebViewDelegate::CreateWebView()?
>
> Here is the relevant call chain:
>
> WebCore::createWindow() in webkit\port\bindings\v8\v8_custom.cpp
> WebCore::FrameLoader::createWindow() in
> third_party\WebKit\WebCore\loader\FrameLoader.cpp
> WebCore::Chrome::createWindow() in
> third_party\WebKit\WebCore\page\Chrome.cpp
> ChromeClientImpl::createWindow() in webkit\glue\chrome_client_impl.cc
> WebViewDelegate::CreateWebView()
>
> Thanks,
> Marshall
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to