Ubuntu WebView should not silently honour fullscreen requests
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | webbrowser-app (Ubuntu) |
High
|
Olivier Tilloy | ||
Bug Description
The current implementation¹ does this:
onFullscree
This default behaviour is not necessarily desirable for most embedders, who might want to intercept the request and cancel it.
Changing the default behaviour doesn’t require an API change, so it should be safe to do at any point in time (and the sooner the better).
Related branches
- PS Jenkins bot: Approve (continuous-integration) on 2015-06-11
- Alexandre Abreu (community): Approve on 2015-06-11
-
Diff: 32 lines (+3/-3)2 files modifiedsrc/Ubuntu/Web/UbuntuWebView02.qml (+0/-2)
src/app/WebViewImpl.qml (+3/-1)
| Changed in webbrowser-app (Ubuntu): | |
| status: | Triaged → In Progress |
| Launchpad Janitor (janitor) wrote : | #1 |
| Changed in webbrowser-app (Ubuntu): | |
| status: | In Progress → Fix Released |
| Oliver Grawert (ogra) wrote : | #2 |
with this fix my App does not recieve any fullscreen events from an embedded WebView anymore with the following code:
Connections {
target: webview
if (webview.fullscreen == true) {
} else {
}
}
}
when i hack /usr/lib/
| Oliver Grawert (ogra) wrote : | #3 |
ok, seems it requires now that i add the line:
onFullscreenReq
to my WebView {} definition in the code ... we should document this in https:/
| Olivier Tilloy (osomon) wrote : | #4 |
You’re right, this should be documented. I filed bug #1505690 to track this, thanks for pointing it out!


This bug was fixed in the package webbrowser-app - 0.23+15. 10.20150618- 0ubuntu1
--------------- 10.20150618- 0ubuntu1) wily; urgency=medium
webbrowser-app (0.23+15.
[ CI Train Bot ]
* New rebuild forced.
[ Michael Terry ]
* Fix spelling of OK in private browsing dialog.
[ Olivier Tilloy ]
* Actually push URLs to the clipboard. For some reason setting the
"text/url-list" mime type doesn’t seem to work (or other
applications do not implement pasting this kind of data), but
"text/plain" works well enough for this purpose. (LP: #1463435)
* Do not honour fullscreen requests silently at the Ubuntu WebView
level. Instead delegate that behaviour to the webview implementation
used by the browser and the webapp container. (LP: #1464249)
* Toggle application-level fullscreen when pressing F11. (LP:
#1464333)
[ Ugo Riboni ]
* Make the browser chrome usable on desktop by implementing common
keyboard shortcuts and behaviors that users normally expect in such
an app (LP: #1287361)
-- CI Train Bot <email address hidden> Thu, 18 Jun 2015 08:12:37 +0000