Closed
Bug 1370605
Opened 9 years ago
Closed 8 years ago
[geckoview] Add exitFullScreen() call
Categories
(GeckoView :: General, enhancement)
GeckoView
General
Tracking
(firefox56 fixed)
RESOLVED
FIXED
mozilla56
| Tracking | Status | |
|---|---|---|
| firefox56 | --- | fixed |
People
(Reporter: snorp, Assigned: snorp)
Details
Attachments
(2 files)
Right now content can enter fullscreen, and the app gets notified, but it cannot exit fullscreen.
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 3•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8874916 [details]
Bug 1370605 - Don't wait for a resize before entering fullscreen on Android
https://reviewboard.mozilla.org/r/146290/#review150292
Wasn't this put in place to ensure that content gets the new viewport size when "fullscreenchange" is fired?
Comment 4•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8874917 [details]
Bug 1370605 - Add GeckoView.exitFullScreen()
https://reviewboard.mozilla.org/r/146292/#review150296
::: mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoView.java:612
(Diff revision 1)
> }
>
> /**
> + * Exits fullscreen mode
> + */
> + public void exitFullScreen() {
Fullscreen?
::: mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoView.java:613
(Diff revision 1)
>
> /**
> + * Exits fullscreen mode
> + */
> + public void exitFullScreen() {
> + mEventDispatcher.dispatch("GeckoViewContent:ExitFullScreen", null);
The other events spell it "Fullscreen", better keep it consistent.
::: mobile/android/modules/geckoview/GeckoViewContent.jsm:36
(Diff revision 1)
> +
> + this.eventDispatcher.registerListener(this, ["GeckoViewContent:ExitFullScreen"]);
> + }
> +
> + // Bundle event handler.
> + onEvent(aEvent, aData, aCallback) {
Please add a general debug log with the event type.
::: mobile/android/modules/geckoview/GeckoViewContent.jsm:39
(Diff revision 1)
> +
> + // Bundle event handler.
> + onEvent(aEvent, aData, aCallback) {
> + switch (aEvent) {
> + case "GeckoViewContent:ExitFullScreen":
> + this.browser.messageManager.sendAsyncMessage("GeckoView:DOMFullscreenExited");
All instances of this.browser.messageManager can be refactored to this.messageManager.
Attachment #8874917 -
Flags: review?(esawin) → review+
| Assignee | ||
Updated•9 years ago
|
Component: Embedding: APIs → GeckoView
Product: Core → Firefox for Android
Version: unspecified → Trunk
Comment 5•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8874916 [details]
Bug 1370605 - Don't wait for a resize before entering fullscreen on Android
https://reviewboard.mozilla.org/r/146290/#review153488
Attachment #8874916 -
Flags: review?(esawin) → review+
| Assignee | ||
Comment 6•8 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8874916 [details]
Bug 1370605 - Don't wait for a resize before entering fullscreen on Android
https://reviewboard.mozilla.org/r/146290/#review150292
We'll probably get two resize events now instead of one. We could fix that by keeping the two-stage API, but would need better hooks exposed for GV. Probably worth a followup bug.
Pushed by jwillcox@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/3d36177387cb
Don't wait for a resize before entering fullscreen on Android r=esawin
https://hg.mozilla.org/integration/mozilla-inbound/rev/2733d0c87013
Add GeckoView.exitFullScreen() r=esawin
Comment 8•8 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/3d36177387cb
https://hg.mozilla.org/mozilla-central/rev/2733d0c87013
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Updated•7 years ago
|
Assignee: nobody → snorp
Updated•7 years ago
|
Product: Firefox for Android → GeckoView
Updated•7 years ago
|
Target Milestone: Firefox 56 → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•