diff --git a/html/user-activation/activation-trigger-keyboard-enter.html b/html/user-activation/activation-trigger-keyboard-enter.html index be32d999b1a650..6bdc9cf7fb1169 100644 --- a/html/user-activation/activation-trigger-keyboard-enter.html +++ b/html/user-activation/activation-trigger-keyboard-enter.html @@ -27,17 +27,17 @@

Test for keyboard activation trigger for ENTER key

await test_driver.send_keys(document.body, ENTER_KEY); await keydown_event; - let consumed = await consumeTransientActivation(); + let consumed = await test_driver.consume_user_activation(); assert_true(consumed, "ENTER keydown event should result in activation"); await keypress_event; - consumed = await consumeTransientActivation(); + consumed = await test_driver.consume_user_activation(); assert_false(consumed, "ENTER keypress should have no activation after keydown consumption"); await keyup_event; - consumed = await consumeTransientActivation(); + consumed = await test_driver.consume_user_activation(); assert_false(consumed, "ENTER keyup should have no activation after keydown consumption"); }, "Activation through ENTER keyboard event"); diff --git a/html/user-activation/activation-trigger-keyboard-escape.html b/html/user-activation/activation-trigger-keyboard-escape.html index 82c94d84c2a959..6c0ded0922415b 100644 --- a/html/user-activation/activation-trigger-keyboard-escape.html +++ b/html/user-activation/activation-trigger-keyboard-escape.html @@ -26,12 +26,12 @@

Test for keyboard activation trigger for ESCAPE key

await test_driver.send_keys(document.body, ESCAPE_KEY); await keydown_event; - let consumed = await consumeTransientActivation(); + let consumed = await test_driver.consume_user_activation(); assert_false(consumed, "ESCAPE keydown event should not result in activation"); await keyup_event; - consumed = await consumeTransientActivation(); + consumed = await test_driver.consume_user_activation(); assert_false(consumed, "ESCAPE keyup should have no activation after keydown consumption"); }, "Activation through ESCAPE keyboard event"); diff --git a/html/user-activation/activation-trigger-mouse-left.html b/html/user-activation/activation-trigger-mouse-left.html index 75a248c4259b50..96ef2153a4f1b1 100644 --- a/html/user-activation/activation-trigger-mouse-left.html +++ b/html/user-activation/activation-trigger-mouse-left.html @@ -25,17 +25,17 @@

Test for click activation trigger

await test_driver.click(document.body); await mousedown_event; - let consumed = await consumeTransientActivation(); + let consumed = await test_driver.consume_user_activation(); assert_true(consumed, "mousedown event should result in activation"); await mouseup_event; - consumed = await consumeTransientActivation(); + consumed = await test_driver.consume_user_activation(); assert_false(consumed, "mouseup should have no activation after mousedown consumption"); await click_event; - consumed = await consumeTransientActivation(); + consumed = await test_driver.consume_user_activation(); assert_false(consumed, "click should have no activation after mousedown consumption"); }, "Activation through left-click mouse event"); diff --git a/html/user-activation/activation-trigger-mouse-right.html b/html/user-activation/activation-trigger-mouse-right.html index f98a54fe238107..e600dfeff3bb47 100644 --- a/html/user-activation/activation-trigger-mouse-right.html +++ b/html/user-activation/activation-trigger-mouse-right.html @@ -35,22 +35,22 @@

Test for right-click activation trigger

let contextmenu_event = getEvent('contextmenu'); await mousedown_event; - let consumed = await consumeTransientActivation(); + let consumed = await test_driver.consume_user_activation(); assert_true(consumed, "mousedown event should result in activation"); await mouseup_event; - consumed = await consumeTransientActivation(); + consumed = await test_driver.consume_user_activation(); assert_false(consumed, "mouseup should have no activation after mousedown consumption"); await auxclick_event; - consumed = await consumeTransientActivation(); + consumed = await test_driver.consume_user_activation(); assert_false(consumed, "auxclick should have no activation after mousedown consumption"); await contextmenu_event; - consumed = await consumeTransientActivation(); + consumed = await test_driver.consume_user_activation(); assert_false(consumed, "contextmenu should have no activation after mousedown consumption"); }, "Activation through right-click mouse event"); diff --git a/html/user-activation/activation-trigger-pointerevent.html b/html/user-activation/activation-trigger-pointerevent.html index 5d3eedb925e55d..cae14ac1312a5b 100644 --- a/html/user-activation/activation-trigger-pointerevent.html +++ b/html/user-activation/activation-trigger-pointerevent.html @@ -36,11 +36,11 @@

Test for pointerevent click activation trigger

let click_event = getEvent('click'); await pointerdown_event; - let consumed_pointerdown = await consumeTransientActivation(); + let consumed_pointerdown = await test_driver.consume_user_activation(); await pointerup_event; - let consumed_pointerup = await consumeTransientActivation(); + let consumed_pointerup = await test_driver.consume_user_activation(); await click_event; - let consumed_click = await consumeTransientActivation(); + let consumed_click = await test_driver.consume_user_activation(); if (pointer_type === "mouse") { assert_true(consumed_pointerdown, diff --git a/html/user-activation/resources/consumption-crossorigin-child.sub.html b/html/user-activation/resources/consumption-crossorigin-child.sub.html index 518e000d0b9cd9..cca319d6545ce8 100644 --- a/html/user-activation/resources/consumption-crossorigin-child.sub.html +++ b/html/user-activation/resources/consumption-crossorigin-child.sub.html @@ -1,5 +1,7 @@ + + +