-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JS] Format all the fields if any when the document is open (bug 1766987) #14950
Conversation
calixteman
commented
May 22, 2022
- it aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1766987.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we (easily) add a test-case for this behaviour?
E.g. would it work with an integration-test that just loads the affected document, and then checks that one of the affected fields is formatted correctly?
I'll add an integration test. |
/botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/04791fda5ffd5ff/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/8ca3589ba8e9394/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/04791fda5ffd5ff/output.txt Total script time: 4.45 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/8ca3589ba8e9394/output.txt Total script time: 6.96 mins
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this, and for adding tests!
… open (issue mozilla#15818) It's a follow-up of mozilla#14950: some format actions are ran when the document is open but we must be sure we've everything ready for that, hence we have to run some named actions before runnig the global format. In playing with the form, I discovered that the blur event wasn't triggered when JS called `setFocus` (because in such a case the mouse was never down). So I removed the mouseState thing to just use the correct commitKey when blur is triggered by a TAB key.
… open (issue mozilla#15818) It's a follow-up of mozilla#14950: some format actions are ran when the document is open but we must be sure we've everything ready for that, hence we have to run some named actions before runnig the global format. In playing with the form, I discovered that the blur event wasn't triggered when JS called `setFocus` (because in such a case the mouse was never down). So I removed the mouseState thing to just use the correct commitKey when blur is triggered by a TAB key.