Closed
Bug 1306505
Opened 9 years ago
Closed 8 years ago
[webvr] Implement mochitest: VRDisplay.exitPresent must only be allowed by content that started VR Presentation
Categories
(Core :: WebVR, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla55
| Tracking | Status | |
|---|---|---|
| firefox55 | --- | fixed |
People
(Reporter: kip, Assigned: cleu)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [gfx-noted][webvr])
Attachments
(1 file)
Content from separate iframes, separate tabs, or separate windows should not be able to exit a VR presentation with VRDisplay.exitPresent unless it was the content that started the presentation with VRDisplay.beginPresent.
Updated•9 years ago
|
OS: Unspecified → Windows
Priority: -- → P3
Hardware: Unspecified → x86_64
Whiteboard: [gfx-noted]
Updated•9 years ago
|
Whiteboard: [gfx-noted] → [gfx-noted][webr]
Updated•9 years ago
|
Whiteboard: [gfx-noted][webr] → [gfx-noted][webvr]
| Reporter | ||
Updated•8 years ago
|
Component: Graphics → WebVR
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → cleu
| Comment hidden (mozreview-request) |
Comment 2•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8850812 [details]
Bug 1306505 - Implement mochitest: VRDisplay.exitPresent must only be allowed by content that started VR Presentation;
https://reviewboard.mozilla.org/r/123330/#review125714
::: dom/vr/test/test_vrDisplay_exitPresent.html:21
(Diff revision 1)
> + return content.vrDisplay.exitPresent();
> + });
> + }
> + var initVRPresentation = function(content) {
> + return content.navigator.getVRDisplays().then((displays) => {
> + console.log("GetVRDisplay!!");
Please remove console.log
::: dom/vr/test/test_vrDisplay_exitPresent.html:33
(Diff revision 1)
> + function startTest() {
> + var ifr1 = document.getElementById("iframe1");
> + var ifr2 = document.getElementById("iframe2");
> + var frame1 = ifr1.contentWindow;
> + var frame2 = ifr2.contentWindow;
> + initVRPresentation(frame1).then(() => {
You should confirm the vrdisplay from iframe 1 is isPresenting and then start to check iframe 2 whether it is available to present.
Attachment #8850812 -
Flags: review?(dmu)
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 5•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8850812 [details]
Bug 1306505 - Implement mochitest: VRDisplay.exitPresent must only be allowed by content that started VR Presentation;
https://reviewboard.mozilla.org/r/123330/#review125786
LGTM. Please make sure getting the green lights from try before landing.
Attachment #8850812 -
Flags: review?(dmu) → review+
| Assignee | ||
Comment 6•8 years ago
|
||
Here is try result, anything other than green light seems to have nothing to do with it.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d6e326c4b97a6d92ef216d3ecaf4d2e02423888a&selectedJob=86154057
Comment 7•8 years ago
|
||
Please don't forget to have a try on Android.
| Assignee | ||
Comment 8•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e4a5ffd72900ac8aac41d21b70b98723cad0a4b6
Here is try result with Android, looks OK.
| Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 9•8 years ago
|
||
hg error in cmd: hg push -r tip ssh://hg.mozilla.org/integration/autoland: pushing to ssh://hg.mozilla.org/integration/autoland
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 2 changes to 2 files
remote:
remote:
remote: ************************** ERROR ****************************
remote: Rev 6faedea20076 needs "Bug N" or "No bug" in the commit message.
remote: Chih-Yi Leu <cleu@mozilla.com>
remote: Bug1306505 - Implement mochitest: VRDisplay.exitPresent must only be allowed by content that started VR Presentation; r=daoshengmu
remote:
remote: MozReview-Commit-ID: 8iFE4vK4oiZ
remote: *************************************************************
remote:
remote:
remote: transaction abort!
remote: rollback completed
remote: pretxnchangegroup.c_commitmessage hook failed
abort: push failed on remote
Updated•8 years ago
|
Keywords: checkin-needed
| Comment hidden (mozreview-request) |
Comment 11•8 years ago
|
||
Pushed by dmu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/16e182457e16
Implement mochitest: VRDisplay.exitPresent must only be allowed by content that started VR Presentation; r=daoshengmu
Comment 12•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•