Skip to content

Commit

Permalink
Bug 1554285 [wpt PR 17003] - End XRSession when data provider is disc…
Browse files Browse the repository at this point in the history
…onnected., a=testonly

Automatic update from web-platform-tests
End XRSession when data provider is disconnected.

There are slightly different code paths to handle the disconnect for
immersive and non-immersive sessions. There can only be one immersive
session, but there can be multiple non-immersive sessions and they all
use the same magic window provider as their data provider.

Bug: 937906
Change-Id: I71f05fa2d854c2654744e818d407e4b94a2fd95e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1628269
Reviewed-by: Bill Orr <billorrchromium.org>
Reviewed-by: Alexander Cooper <alcooperchromium.org>
Commit-Queue: Jacob DeWitt <jacdechromium.org>
Cr-Commit-Position: refs/heads/master{#663821}

--

wp5At-commits: 060d986f6ced5d596805b23ca9382d0105cb2524
wpt-pr: 17003

UltraBlame original commit: 9c482b1370ed9a9a38c23fe4ab7b7dfb2267062e
  • Loading branch information
marco-c committed Oct 4, 2019
1 parent a18d4bf commit 65c6af6
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions testing/web-platform/tests/resources/chromium/webxr-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1962,6 +1962,19 @@ close
)
;
}
closeDataProvider
(
)
{
this
.
dataProviderBinding_
.
close
(
)
;
}
updateSessionGeometry
(
frame_size
Expand Down Expand Up @@ -2130,8 +2143,9 @@ makeRequest
dataProviderPtr
)
;
let
dataProviderBinding
this
.
dataProviderBinding_
=
new
mojo
Expand Down

0 comments on commit 65c6af6

Please sign in to comment.