mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 21:28:04 +02:00
Automatic update from web-platform-tests[KeyboardMap] Blink module now handles iFrames and multiple calls This CL adds the following: - KeyboardMap now requires the caller to be a top-level, secure browsing context - Multiple calls to getKeyboardLayout() will now be given the same promise instead of it being timing dependent (the initial promise might get overwritten with the old logic) - Sequential calls to getKeyboardLayout() still get their own promise - All promise rejections will return a DOM exception (similar to KeyboardLock) - I've cleaned up KeyboardLock a bit as well so it has similar logic/formatting to what I added to KeyboardMap - Added several tests to KeyboardMap and fixed some failing cases BUG=832811 Change-Id: I4a03f68c239cff42b8840e9513257384038f04b4 Reviewed-on: https://chromium-review.googlesource.com/1093474 Commit-Queue: Joe Downing <joedow@chromium.org> Reviewed-by: Gary Kacmarcik <garykac@chromium.org> Cr-Commit-Position: refs/heads/master@{#565833} -- wpt-commits: 4565dc5875f3841b0884bdfd8ad6b9ad6f4a5944 wpt-pr: 11440
14 lines
364 B
HTML
14 lines
364 B
HTML
<!DOCTYPE html>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script>
|
|
'use strict';
|
|
|
|
promise_test(() => {
|
|
return navigator.keyboard.getLayoutMap()
|
|
.then(() => {
|
|
return navigator.keyboard.getLayoutMap();
|
|
});
|
|
}, '[Keyboard Map] getLayoutMap() called twice sequentially');
|
|
|
|
</script>
|