WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
264991
'NotEnumerable' causing Selection API 'idlharness' stringification test failure
https://bugs.webkit.org/show_bug.cgi?id=264991
Summary
'NotEnumerable' causing Selection API 'idlharness' stringification test failure
Ahmad Saleem
Reported
2023-11-16 16:01:34 PST
Hi Team, While trying to investigate 'browser specific failure', I noticed that Safari / WebKit fails one 'idlharness' test from Selection API: WPT Test Case:
https://wpt.fyi/results/selection/idlharness.window.html?label=master&label=experimental&aligned=&q=safari%3Afail+idlharness
^ Failing: Selection interface: stringifier While loading 'Assert', I noticed that it was failing here: Fail assert_true(false, "property should be enumerable") /resources/idlharness.js:2642:20 and while looking into 'DOMSelection.idl', I noticed that we have following:
https://github.com/WebKit/WebKit/blob/54a799c39b9970cface5982aefe8e5f6cc508bf7/Source/WebCore/page/DOMSelection.idl#L70
[NotEnumerable] DOMString toString(); and change above to: DOMString toString(); ___ It leads us to pass all test cases in 'idlharness'. I just wanted to raise so we can track this failure and fix the issue. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2023-11-16 16:46:46 PST
Web-Spec:
https://w3c.github.io/selection-api/#dom-selection-stringifier
Ahmad Saleem
Comment 2
2023-11-16 16:52:33 PST
Just to update, we have following: undefined setBaseAndExtent(Node? baseNode, unsigned long baseOffset, Node? extentNode, unsigned long extentOffset); but Web-Spec has following: undefined setBaseAndExtent(Node anchorNode, unsigned long anchorOffset, Node focusNode, unsigned long focusOffset); ___ Web-Spec:
https://w3c.github.io/selection-api/#selection-interface
Ryosuke Niwa
Comment 3
2023-11-17 15:46:03 PST
It seems like a good change assuming that other browser engines pass those tests.
Ahmad Saleem
Comment 4
2023-11-17 16:21:17 PST
PR to sync partially with bug -
https://github.com/WebKit/WebKit/pull/20696
As for '
Comment 02
', it is bit more involved change, will create separate bug for it. @Ryosuke - thanks for your input. For some reason, we don't have 'idlharness' expectation file but I will run above PR as draft via EWS to see, what this change leads and then will make it 'Open' once everything looks good.
EWS
Comment 5
2023-11-17 23:38:01 PST
Committed
270933@main
(6b9b667d2d27): <
https://commits.webkit.org/270933@main
> Reviewed commits have been landed. Closing PR #20696 and removing active labels.
Radar WebKit Bug Importer
Comment 6
2023-11-17 23:39:15 PST
<
rdar://problem/118594710
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug