Merge lp:~abreu-alexandre/webbrowser-app/new-tab-requested-when-in-webapp-mode into lp:webbrowser-app

Proposed by Alexandre Abreu
Status: Merged
Approved by: Olivier Tilloy
Approved revision: 359
Merged at revision: 362
Proposed branch: lp:~abreu-alexandre/webbrowser-app/new-tab-requested-when-in-webapp-mode
Merge into: lp:webbrowser-app
Diff against target: 20 lines (+9/-1)
1 file modified
src/app/Browser.qml (+9/-1)
To merge this branch: bzr merge lp:~abreu-alexandre/webbrowser-app/new-tab-requested-when-in-webapp-mode
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
David Barth (community) Approve
Review via email: mp+188674@code.launchpad.net

Commit message

When the browser is requested to create a new tab (from a new window request), open the new tab externally when in webapp mode.

Description of the change

When the browser is requested to create a new tab (from a new window request), open the new tab externally when in webapp mode.

To post a comment you must log in.
359. By Alexandre Abreu

Handle the case of a new tab requested when in a webapp mode

Revision history for this message
David Barth (dbarth) wrote :

Issue fixed with this change.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/app/Browser.qml'
2--- src/app/Browser.qml 2013-09-26 02:27:18 +0000
3+++ src/app/Browser.qml 2013-10-01 18:29:41 +0000
4@@ -449,7 +449,15 @@
5 }
6 }
7
8- onNewTabRequested: browser.newTab(url, true)
9+ onNewTabRequested: {
10+
11+ if (webapp) {
12+ Qt.openUrlExternally(url);
13+ }
14+ else {
15+ browser.newTab(url, true);
16+ }
17+ }
18
19 // Small shim needed when running as a webapp to wire-up connections
20 // with the webview (message received, etc…).

Subscribers

People subscribed via source and target branches

to status/vote changes: