RESOLVED WONTFIX59235
[Chromium] createWindow() does not pass url to createView() in the case of a FrameLoadRequest
https://bugs.webkit.org/show_bug.cgi?id=59235
Summary [Chromium] createWindow() does not pass url to createView() in the case of a ...
anthony taranto
Reported 2011-04-22 14:38:47 PDT
The url is available if createWindow is called as a result of a NavigationRequest, but not for all cases of FrameLoadRequest. This patch always passes url to createView() in all cases. This is required to fix this Chromium Embedded Framework issue: http://code.google.com/p/chromiumembedded/issues/detail?id=5 Previous mailing list discussion: http://groups.google.com/group/chromium-dev/browse_thread/thread/6597b4b28e564a95
Attachments
fix (2.51 KB, patch)
2011-04-22 14:43 PDT, anthony taranto
fishd: review-
anthony taranto
Comment 1 2011-04-22 14:43:54 PDT
Eric Seidel (no email)
Comment 2 2011-04-26 16:24:44 PDT
This is chromium API, right? That means you need fishd sign-off.
Darin Fisher (:fishd, Google)
Comment 3 2011-04-26 16:29:54 PDT
Comment on attachment 90765 [details] fix View in context: https://bugs.webkit.org/attachment.cgi?id=90765&action=review > Source/WebKit/chromium/public/WebViewClient.h:90 > + const WebURL& url, what does this "url" refer to, and under what conditions does it differ from request.url()? it is very confusing for this method to be passed two "urls"... which one is meaningful to the implementer of the createView method? perhaps we should make sure that request.url() is always meaningful?
Darin Fisher (:fishd, Google)
Comment 4 2011-04-26 16:30:10 PDT
R- because there is no explanation for why these URLs are different.
Marshall Greenblatt
Comment 5 2011-05-11 12:44:54 PDT
Darin, the problem is that r.resourceRequest() is null in ChromeClientImpl::createWindow() when clicking a link with target="_blank". It might be best to create a request object in ChromeClientImpl::createWindow() with just the URL component from NavigationAction and pass that as the request argument to WebViewClient::createView().
Stephen Chenney
Comment 6 2013-04-11 13:41:48 PDT
Assuming fixed or no longer relevant as this is an old issue. Reopen in crbug if that's not true.
Note You need to log in before you can comment on or make changes to this bug.