-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: properly return promise from requestFullscreen and exitFullscreen (
#7299) Mapping the promise returned from the helpers to the executor's resolve, and reject methods. We also need to catch the error in the promise chain that's created inside exitFullscreenHelper_. Fixes #7298.
- Loading branch information
Showing
6 changed files
with
139 additions
and
62 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* eslint-disable no-undef */ | ||
|
||
const s = document.createElement('script'); | ||
|
||
// on IE11 and Safari 9, load the last supported sinon version | ||
if (/(?:MSIE|Trident\/7.0|Version\/9.*Safari)/.test(navigator.userAgent)) { | ||
s.src = 'https://unpkg.com/sinon@9.2.4/pkg/sinon-no-sourcemaps.js'; | ||
} else { | ||
s.src = '/test/base/node_modules/sinon/pkg/sinon.js'; | ||
} | ||
|
||
document.write(s.outerHTML); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters