Bug 111999

Summary: [EFL] accessibility/disabled-controls-not-focusable.html is failing
Product: WebKit Reporter: Krzysztof Czech <k.czech>
Component: WebKit EFLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: aboxhall, apinheiro, cdumez, cfleizach, commit-queue, darin, dmazzoni, g.czajkowski, gyuyoung.kim, gyuyoung.kim, jdiggs, justin.garcia, lucas.de.marchi, mario, mcatanzaro, rakuco, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Linux   
Bug Depends on:    
Bug Blocks: 111985    
Attachments:
Description Flags
Patch
none
Patch darin: review+, commit-queue: commit-queue-

Krzysztof Czech
Reported 2013-03-11 07:17:09 PDT
accessibility/disabled-controls-not-focusable.html is failing on all EFL platforms.
Attachments
Patch (1.98 KB, patch)
2013-10-09 07:11 PDT, Krzysztof Czech
no flags
Patch (2.87 KB, patch)
2013-10-09 07:16 PDT, Krzysztof Czech
darin: review+
commit-queue: commit-queue-
Krzysztof Czech
Comment 1 2013-10-09 07:11:19 PDT
Krzysztof Czech
Comment 2 2013-10-09 07:16:55 PDT
Mario Sanchez Prada
Comment 3 2013-10-09 07:41:13 PDT
It's very weird that we need this specific expectation here (same for GTK), since it seems the only difference compared to the cross-platform expected results is that a blank space is missing in the first line (before "This test makes sure..."). I've observed that if I comment out the debug(element.id) line in the test, then the number of blank spaces there is always the same, which suggests that something is wrong with our version of DRT/WKTR (also happens there), potentially causing more trouble in other tests. You can check yourself this weird situation by checking the diff $ diff -u \ ./platform/gtk/accessibility/disabled-controls-not-focusable-expected.txt \ ./accessibility/disabled-controls-not-focusable-expected.txt You will see how there are only 16 spaces in the first line of the output for the GTK specific version (identical to the one for EFL you are adding here now) and 17 spaces for the other version. How do you feel about investigating this issue instead of rebaselining this test?
Krzysztof Czech
Comment 4 2013-10-09 07:59:09 PDT
> How do you feel about investigating this issue instead of rebaselining this test? You are right, the difference is only in one space. Seems very weird. I will take a look at this.
Grzegorz Czajkowski
Comment 5 2013-10-18 07:30:11 PDT
As Mario said, the difference between cross-platform expectation and GTK/EFL is one space that seems to be missing. The problem is with dumping (via dumpAsText) the first <div>...</div> element which contains various HTML elements to be tested: <div> <button id="button"></button> <input id="text" type="text"> <input id="checkbox" type="checkbox"> <input id="radio" type="radio"> <input id="submit" type="submit"> <input id="slider" type="range"> <select id="listbox" multiple><option>1<option>2</select> <select id="combobox"><option>1<option>2</select> <textarea id="textarea"></textarea> </div> It seems that while dumping tree to text, we erroneously replace the last space with '\n' character indicating the end of div element. I've observed that if I exclude some elements from div, then the number of spaces seems fine. It looks that the problematic elements are: <input id="text" type="text"> <input id="submit" type="submit"> <input id="slider" type="range"> <select id="combobox"><option>1<option>2</select> <textarea id="textarea"></textarea> To check this, try to comment out one of above elements and then the number of spaces (decreased by removed element) is OK. What I found surprising that those elements cause problems only with this div element and its children. As a result, we cannot simplify the test case by defining own div, for example <div> <button id="button"></button> <input id="text" type="text"> <!-- cause problems in our accessibility test --> </div> because its output is correct here. As you've already mention, this bug is not related to accessibility at all and I could help in solving it. Do you guys prefer to continue work in this bug or creating a new one due to its core background? Then we could land EFL test expectation. CC'ing authors of editing/TextIterator where I see difference of behaviour between Mac and EFL/GTK (probably the cause of bug is somewhere deeper).
Darin Adler
Comment 6 2013-10-18 10:32:31 PDT
We should keep reducing this to the smallest possible test case.
Gyuyoung Kim
Comment 7 2014-02-09 21:16:03 PST
Krzystof, any update ?
Krzysztof Czech
Comment 8 2014-02-10 01:25:25 PST
(In reply to comment #7) > Krzystof, any update ? Basically this issue is not related to Accessibility. I will create a bug to handle this problem.
Krzysztof Czech
Comment 9 2014-02-10 01:43:31 PST
> I will create a bug to handle this problem. https://bugs.webkit.org/show_bug.cgi?id=128522
WebKit Commit Bot
Comment 10 2016-03-09 09:38:20 PST
Comment on attachment 213776 [details] Patch Rejecting attachment 213776 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'apply-attachment', '--no-update', '--non-interactive', 213776, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: g file LayoutTests/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file LayoutTests/platform/efl-wk2/TestExpectations Hunk #1 FAILED at 160. 1 out of 1 hunk FAILED -- saving rejects to file LayoutTests/platform/efl-wk2/TestExpectations.rej patching file LayoutTests/platform/efl/accessibility/disabled-controls-not-focusable-expected.txt Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Darin Adler']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Full output: http://webkit-queues.webkit.org/results/948700
Michael Catanzaro
Comment 11 2017-03-11 10:42:21 PST
Closing this bug because the EFL port has been removed from trunk. If you feel this bug applies to a different upstream WebKit port and was closed in error, please either update the title and reopen the bug, or leave a comment to request this.
Note You need to log in before you can comment on or make changes to this bug.