[Webkit-unassigned] [Bug 119713] Remove focus if supportsFocus state is changed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 9 16:48:25 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=119713

Ahmad Saleem <zlip.792 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zlip.792 at gmail.com

--- Comment #1 from Ahmad Saleem <zlip.792 at gmail.com> ---
I took test cases from Chrome Commit:

Test Case 1 - https://jsfiddle.net/ojL52nsq/show

*** Safari 15.6 on macOS 12.6 ***

AIL document.activeElement should be javascript:. Was [object HTMLBodyElement].
Remove href.
FAIL No blur event
PASS successfullyParsed is true

TEST COMPLETE
link

>>>> then Safari HANGS!!


*** Firefox Nightly 105 ***

PASS document.activeElement is target
Remove href.
FAIL No blur event
PASS successfullyParsed is true

TEST COMPLETE
PASS blur event was disaptched.
PASS successfullyParsed is true

TEST COMPLETE

*** Chrome Canary 106 ***

PASS document.activeElement is target
Remove href.
PASS blur event was disaptched.
PASS successfullyParsed is true

TEST COMPLETE
FAIL No blur event
PASS successfullyParsed is true

TEST COMPLETE

______________

Test Case 2 - https://jsfiddle.net/r3x84k6y/show

*** Safari 15.6 on macOS 12.5 ***

FAIL document.activeElement should be [object HTMLDivElement]. Was [object HTMLBodyElement].
Remove tabindex.
FAIL No blur event
PASS successfullyParsed is true

TEST COMPLETE
div

>>>> then Safari HANGS!!

*** Chrome Canary 106 ***

PASS document.activeElement is target
Remove tabindex.
PASS blur event was disaptched.
PASS successfullyParsed is true

TEST COMPLETE
FAIL No blur event
PASS successfullyParsed is true

TEST COMPLETE

*** Firefox Nightly 105 ***

PASS document.activeElement is target
Remove tabindex.
FAIL No blur event
PASS successfullyParsed is true

TEST COMPLETE
PASS blur event was disaptched.
PASS successfullyParsed is true

TEST COMPLETE

____________

Test Case 3 - https://jsfiddle.net/ob561dma/show

*** Safari 15.6 on macOS 12.5 ***

FAIL document.activeElement should be [object HTMLButtonElement]. Was [object HTMLBodyElement].
Clicking a button makes the button disabled.
FAIL No blur event.
PASS successfullyParsed is true

TEST COMPLETE

*** Chrome Canary 106 ***

FAIL document.activeElement should be [object HTMLButtonElement]. Was [object HTMLBodyElement].
Clicking a button makes the button disabled.
FAIL No blur event.
PASS successfullyParsed is true

TEST COMPLETE

*** Firefox Nightly 105 ***

FAIL document.activeElement should be [object HTMLButtonElement]. Was [object HTMLBodyElement].
Clicking a button makes the button disabled.
FAIL No blur event.
PASS successfullyParsed is true

TEST COMPLETE

__________________

I just wanted to share updated test results and it shows that Safari do differ from other browsers in some cases. Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220809/21ad5f1a/attachment.htm>


More information about the webkit-unassigned mailing list