Merge lp:~osomon/webbrowser-app/hyperlinks-blank-target into lp:webbrowser-app
Status: | Merged |
---|---|
Approved by: | Ugo Riboni |
Approved revision: | 89 |
Merged at revision: | 98 |
Proposed branch: | lp:~osomon/webbrowser-app/hyperlinks-blank-target |
Merge into: | lp:webbrowser-app |
Diff against target: |
57 lines (+41/-1) 2 files modified
src/Ubuntu/Browser/Browser.qml (+2/-1) src/Ubuntu/Browser/hyperlinks.js (+39/-0) |
To merge this branch: | bzr merge lp:~osomon/webbrowser-app/hyperlinks-blank-target |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Approve | |
Ubuntu Phablet Team | Pending | ||
Review via email: mp+155216@code.launchpad.net |
Commit message
Use javascript event delegation to work around the lack of support for handling hyperlinks with a target attribute set to '_blank' in QtWebKit.
Description of the change
Note to the reviewer: bug #1129281 was originally reported against the twitter web app. Unfortunately, this MR doesn’t fix the original issue because the twitter web app does additional event handling that conflicts with my solution (see https:/
However this patch does fix the handling of "normal" hyperlinks with target="_blank" (hopefully the majority of them out there), so I think it’s still valuable on its own. It can be tested against http://
PASSED: Continuous integration, rev:89 jenkins. qa.ubuntu. com/job/ webbrowser- app-ci/ 7/ jenkins. qa.ubuntu. com/job/ webbrowser- app-quantal- armhf-ci/ 7 jenkins. qa.ubuntu. com/job/ webbrowser- app-quantal- armhf-ci/ 7/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ webbrowser- app-quantal- i386-ci/ 7 jenkins. qa.ubuntu. com/job/ webbrowser- app-raring- armhf-ci/ 4 jenkins. qa.ubuntu. com/job/ webbrowser- app-raring- armhf-ci/ 4/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ webbrowser- app-raring- i386-ci/ 4 jenkins. qa.ubuntu. com/job/ generic- mediumtests- runner/ 305
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins: 8080/job/ webbrowser- app-ci/ 7/rebuild
http://