[WebKit-devel] Review Request: Honour the "Open links in new tab instead of new window" option

Jonathan Marten jjm at keelhaul.me.uk
Wed Nov 7 12:02:45 UTC 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/107238/
-----------------------------------------------------------

Review request for kwebkitpart.


Description
-------

If using the WebKit part as the default HTML engine in Konqueror, its "Open links in new tab instead of in new window" option appears to be ignored.  I'm not intimately familiar with the kwebkitpart code, but what appears to be happening is that it is setting the "action requested by user" flag to always false for any navigation request.  This then ignores the Konqueror setting in KonqMainWindow::slotCreateNewWindow().

Looking at the logic in NewWindowPage::acceptNavigationRequest(), the m_disableJSOpenwindowCheck appears to be a flag saying whether this page is being opened as a result of a JS popup.  I'm assuming, therefore, that the reverse of that is a normal user interaction, and "requested by user" should be set accordingly.

Should this also be done in NewWindowPage::slotLoadFinished()?


This addresses bug 309649.
    http://bugs.kde.org/show_bug.cgi?id=309649


Diffs
-----

  src/webpage.cpp 2f224dc 

Diff: http://git.reviewboard.kde.org/r/107238/diff/


Testing
-------

Built kwebitpart with this change, checked operation with the test case as described in the bug and other web browsing (including sites which open new windows and JS popups).  New windows and tabs are opened as expected.


Thanks,

Jonathan Marten

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/webkit-devel/attachments/20121107/bf0513e6/attachment.html>


More information about the WebKit-devel mailing list