Bug 52111

Summary: [Qt] [WK2] MiniBrowser does not load pages opened in new windows
Product: WebKit Reporter: Benjamin Poulain <benjamin>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Critical CC: benjamin, kling, webkit.review.bot
Priority: P1 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
test case
none
Proposed patch hausmann: review+

Description Benjamin Poulain 2011-01-08 11:14:59 PST
Created attachment 78321 [details]
test case

When opening a page in new window with WebKit 2, the target page is never loaded.

The attached test case illustrate 3 cases not working with Minibrowser.
Comment 1 Andreas Kling 2011-01-10 06:58:14 PST
This is a bug in MiniBrowser, patch coming.
Comment 2 Andreas Kling 2011-01-10 07:06:31 PST
Created attachment 78397 [details]
Proposed patch
Comment 3 Andreas Kling 2011-01-10 07:07:46 PST
Comment on attachment 78397 [details]
Proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=78397&action=review

> Tools/MiniBrowser/qt/BrowserView.h:40
> +    BrowserView(QGraphicsWKView::BackingStoreType, QWKContext* context, QWidget* parent = 0);

Dammit Kling, the "context" argument name isn't necessary here.
Comment 4 WebKit Review Bot 2011-01-10 07:09:40 PST
Attachment 78397 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/MiniBrowser/qt/BrowserView.cpp', u'Tools/MiniBrowser/qt/BrowserView.h', u'Tools/MiniBrowser/qt/BrowserWindow.cpp', u'Tools/MiniBrowser/qt/BrowserWindow.h', u'WebKit2/ChangeLog', u'WebKit2/UIProcess/API/qt/qwkpage.cpp']" exit_code: 1
Tools/MiniBrowser/qt/BrowserView.h:40:  The parameter name "context" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 7 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Andreas Kling 2011-01-10 07:26:40 PST
Committed r75373: <http://trac.webkit.org/changeset/75373>
Comment 6 Benjamin Poulain 2011-01-10 11:22:14 PST
Wow, and https://bugs.webkit.org/show_bug.cgi?id=41441 fixes the last case so I have nothing left to do. Amazing job Andreas, thanks for the help.