Bug 1627723 - Move requestPointerLock to new user activation model; r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D69876

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Edgar Chen 2020-04-07 11:00:31 +00:00
parent 6551735516
commit 33f76b8038
2 changed files with 1 additions and 8 deletions

View File

@ -14028,7 +14028,7 @@ void Document::RequestPointerLock(Element* aElement, CallerType aCallerType) {
return;
}
bool userInputOrSystemCaller = UserActivation::IsHandlingUserInput() ||
bool userInputOrSystemCaller = HasValidTransientUserGestureActivation() ||
aCallerType == CallerType::System;
nsCOMPtr<nsIRunnable> request =
new PointerLockRequest(aElement, userInputOrSystemCaller);

View File

@ -1,7 +0,0 @@
[pointerevent_pointerlock_after_pointercapture.html]
expected:
if (os == "android") and not e10s: OK
ERROR
[mouse no pointercapture while pointerlock]
expected: FAIL