Skip to content

Some UserActivation tests are incorrect and could use a cleanup - #14229

Closed
marcoscaceres wants to merge 1 commit into
WebKit:mainfrom
marcoscaceres:eng/Some-UserActivation-tests-are-incorrect-and-could-use-a-cleanup
Closed

marcoscaceres wants to merge 1 commit into
WebKit:mainfrom
marcoscaceres:eng/Some-UserActivation-tests-are-incorrect-and-could-use-a-cleanup

Conversation

@marcoscaceres

@marcoscaceres marcoscaceres commented May 23, 2023 •

Copy link
Copy Markdown
Contributor

23ca985

Some UserActivation tests are incorrect and could use a cleanup
https://bugs.webkit.org/show_bug.cgi?id=257183
rdar://109696805

Reviewed by NOBODY (OOPS!).

Removed duplicate test (.tentative.) one.

Rewrote two tests to use promise_tests instead. Also found that the cross-origin test
was incorrectly assuming that hasBeenActive would be revealed cross-origin, which is not correct.

* LayoutTests/TestExpectations:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-same-and-cross-origin.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-keyboard-enter.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-keyboard-escape.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-mouse-left.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-mouse-right-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-mouse-right.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-pointerevent.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-pointerevent_pen-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-pointerevent_touch-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/consumption-sameorigin.html: Removed.
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/propagation-crossorigin.sub-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/propagation-crossorigin.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/propagation-sameorigin-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/propagation-sameorigin.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/resources/child-one.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/resources/propagation-crossorigin-child.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/resources/utils.js:
(recurse):
(delayByFrames):
(getEvent):
(async consumeTransientActivation): Deleted.
(receiveMessage.return.new.Promise): Deleted.
(receiveMessage): Deleted.
* LayoutTests/imported/w3c/web-platform-tests/resources/testdriver.js:
(window.test_driver.cancel_fedcm_dialog):
(window.test_driver.select_fedcm_account):
(window.test_driver.get_fedcm_account_list):
(window.test_driver.get_fedcm_dialog_title):
(window.test_driver.get_fedcm_dialog_type):
(window.test_driver.set_fedcm_delay_enabled):
(window.test_driver.reset_fedcm_cooldown):
(window.test_driver_internal.async cancel_fedcm_dialog):
(window.test_driver_internal.async select_fedcm_account):
(window.test_driver_internal.async get_fedcm_account_list):
(window.test_driver_internal.async get_fedcm_dialog_title):
(window.test_driver_internal.async get_fedcm_dialog_type):
(window.test_driver_internal.async set_fedcm_delay_enabled):
(window.test_driver_internal.async reset_fedcm_cooldown):
(window.test_driver_internal.async consume_user_activation):
* LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/user-activation/propagation-same-and-cross-origin.sub-expected.txt:
* LayoutTests/platform/wpe/TestExpectations:

23ca985

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 wincairo
✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ❌ 🧪 wpe-wk2
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🛠 gtk
✅ 🛠 🧪 jsc ✅ 🧪 api-ios ❌ 🧪 mac-wk2 ❌ 🧪 gtk-wk2
✅ 🛠 🧪 jsc-arm64 ✅ 🛠 tv ❌ 🧪 mac-AS-debug-wk2 ✅ 🧪 api-gtk
✅ 🛠 tv-sim ✅ 🛠 jsc-armv7
✅ 🛠 watch ✅ 🧪 jsc-armv7-tests
✅ 🛠 watch-sim

@marcoscaceres marcoscaceres self-assigned this May 23, 2023
@marcoscaceres marcoscaceres added the Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases label May 23, 2023
@marcoscaceres
marcoscaceres requested a review from cdumez May 23, 2023 05:26
@marcoscaceres
marcoscaceres force-pushed the eng/Some-UserActivation-tests-are-incorrect-and-could-use-a-cleanup branch from a0708dc to fde3c8a Compare May 23, 2023 05:28
@webkit-early-warning-system

webkit-early-warning-system commented May 23, 2023 •

Copy link
Copy Markdown
Collaborator

@marcoscaceres
marcoscaceres force-pushed the eng/Some-UserActivation-tests-are-incorrect-and-could-use-a-cleanup branch from fde3c8a to e90db97 Compare May 23, 2023 07:10
@webkit-early-warning-system

webkit-early-warning-system commented May 23, 2023 •

Copy link
Copy Markdown
Collaborator

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label May 23, 2023
@marcoscaceres marcoscaceres removed the merging-blocked Applied to prevent a change from being merged label Jun 5, 2023
@marcoscaceres
marcoscaceres force-pushed the eng/Some-UserActivation-tests-are-incorrect-and-could-use-a-cleanup branch from e90db97 to 7fc2b03 Compare June 5, 2023 05:11
@webkit-early-warning-system

webkit-early-warning-system commented Jun 5, 2023 •

Copy link
Copy Markdown
Collaborator

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jun 5, 2023
@marcoscaceres marcoscaceres removed the merging-blocked Applied to prevent a change from being merged label Jun 19, 2023
@marcoscaceres
marcoscaceres force-pushed the eng/Some-UserActivation-tests-are-incorrect-and-could-use-a-cleanup branch from 7fc2b03 to bf5d3b9 Compare June 19, 2023 06:50
@webkit-early-warning-system

webkit-early-warning-system commented Jun 19, 2023 •

Copy link
Copy Markdown
Collaborator

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jun 19, 2023
@marcoscaceres marcoscaceres removed the merging-blocked Applied to prevent a change from being merged label Jun 22, 2023
@marcoscaceres
marcoscaceres force-pushed the eng/Some-UserActivation-tests-are-incorrect-and-could-use-a-cleanup branch from bf5d3b9 to 76c81a4 Compare June 22, 2023 01:05
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jun 22, 2023
@hortont424
hortont424 requested review from rniwa and whsieh June 23, 2023 01:28
@marcoscaceres

marcoscaceres commented Jun 23, 2023 •

Copy link
Copy Markdown
Contributor Author

The failing mac-AS-debug-wk2 tests are unrelated to this patch.

https://bugs.webkit.org/show_bug.cgi?id=257183
rdar://109696805

Reviewed by NOBODY (OOPS!).

Removed duplicate test (.tentative.) one.

Rewrote two tests to use promise_tests instead. Also found that the cross-origin test
was incorrectly assuming that hasBeenActive would be revealed cross-origin, which is not correct.

* LayoutTests/TestExpectations:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-same-and-cross-origin.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-keyboard-enter.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-keyboard-escape.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-mouse-left.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-mouse-right-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-mouse-right.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-pointerevent.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-pointerevent_pen-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-pointerevent_touch-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/consumption-sameorigin.html: Removed.
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/propagation-crossorigin.sub-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/propagation-crossorigin.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/propagation-sameorigin-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/propagation-sameorigin.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/resources/child-one.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/resources/propagation-crossorigin-child.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/user-activation/resources/utils.js:
(recurse):
(delayByFrames):
(getEvent):
(async consumeTransientActivation): Deleted.
(receiveMessage.return.new.Promise): Deleted.
(receiveMessage): Deleted.
* LayoutTests/imported/w3c/web-platform-tests/resources/testdriver.js:
(window.test_driver.cancel_fedcm_dialog):
(window.test_driver.select_fedcm_account):
(window.test_driver.get_fedcm_account_list):
(window.test_driver.get_fedcm_dialog_title):
(window.test_driver.get_fedcm_dialog_type):
(window.test_driver.set_fedcm_delay_enabled):
(window.test_driver.reset_fedcm_cooldown):
(window.test_driver_internal.async cancel_fedcm_dialog):
(window.test_driver_internal.async select_fedcm_account):
(window.test_driver_internal.async get_fedcm_account_list):
(window.test_driver_internal.async get_fedcm_dialog_title):
(window.test_driver_internal.async get_fedcm_dialog_type):
(window.test_driver_internal.async set_fedcm_delay_enabled):
(window.test_driver_internal.async reset_fedcm_cooldown):
(window.test_driver_internal.async consume_user_activation):
* LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/user-activation/propagation-same-and-cross-origin.sub-expected.txt:
* LayoutTests/platform/wpe/TestExpectations:
@marcoscaceres marcoscaceres removed the merging-blocked Applied to prevent a change from being merged label Nov 20, 2023
@marcoscaceres
marcoscaceres force-pushed the eng/Some-UserActivation-tests-are-incorrect-and-could-use-a-cleanup branch from 76c81a4 to 23ca985 Compare November 20, 2023 02:45
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Nov 20, 2023
@marcoscaceres

Copy link
Copy Markdown
Contributor Author

Going to send this again in smaller pieces

@marcoscaceres
marcoscaceres deleted the eng/Some-UserActivation-tests-are-incorrect-and-could-use-a-cleanup branch January 17, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merging-blocked Applied to prevent a change from being merged Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants