You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
promise_test(asynct=>{awaittest_driver.bless("request full screen",()=>{returndocument.documentElement.requestFullscreen();});constnewOrientation=getOppositeOrientation();constpMustReject=screen.orientation.lock(newOrientation);constpMustResolve=newPromise(r=>{screen.orientation.onchange=()=>{r(screen.orientation.unlock());};});awaitpromise_rejects(t,newTypeError(),pMustReject);awaitpMustResolve;returndocument.exitFullscreen();},"Unlocking screen orientation during change event causes orientationPendingPromise to reject");
Presumedly, calling unlock() during onchange would cause the [[orientationPendingPromise]] to reject.
The text was updated successfully, but these errors were encountered:
marcoscaceres
changed the title
unlocking during event propagation is undefined
unlocking during event dispatching is undefined
Mar 14, 2019
Consider:
Presumedly, calling
unlock()
duringonchange
would cause the [[orientationPendingPromise]] to reject.The text was updated successfully, but these errors were encountered: