Bug 52111 - [Qt] [WK2] MiniBrowser does not load pages opened in new windows
Summary: [Qt] [WK2] MiniBrowser does not load pages opened in new windows
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P1 Critical
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2011-01-08 11:14 PST by Benjamin Poulain
Modified: 2011-01-10 11:22 PST (History)
3 users (show)

See Also:


Attachments
test case (404 bytes, text/html)
2011-01-08 11:14 PST, Benjamin Poulain
no flags Details
Proposed patch (4.46 KB, patch)
2011-01-10 07:06 PST, Andreas Kling
hausmann: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.