WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
117306
IndieUI: Support UIValueChangeRequestEvent
https://bugs.webkit.org/show_bug.cgi?id=117306
Summary
IndieUI: Support UIValueChangeRequestEvent
chris fleizach
Reported
2013-06-06 09:09:27 PDT
Support the UIValueChangeRequestEvent
https://dvcs.w3.org/hg/IndieUI/raw-file/default/src/indie-ui-events.html#dictionary-uivaluechangerequesteventinit-members
Attachments
patch
(30.79 KB, patch)
2013-06-24 09:36 PDT
,
chris fleizach
webkit-ews
: commit-queue-
Details
Formatted Diff
Diff
patch
(30.88 KB, patch)
2013-06-24 10:02 PDT
,
chris fleizach
no flags
Details
Formatted Diff
Diff
patch
(32.24 KB, patch)
2013-07-09 10:42 PDT
,
chris fleizach
beidson
: review-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
chris fleizach
Comment 1
2013-06-24 09:36:43 PDT
Created
attachment 205303
[details]
patch
WebKit Commit Bot
Comment 2
2013-06-24 09:38:36 PDT
Attachment 205303
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast/js/global-constructors-attributes-expected.txt', u'LayoutTests/indieui/uivaluechangerequest-expected.txt', u'LayoutTests/indieui/uivaluechangerequest.html', u'Source/WebCore/ChangeLog', u'Source/WebCore/DerivedSources.make', u'Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.cpp', u'Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h', u'Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.idl', u'Source/WebCore/WebCore.exp.in', u'Source/WebCore/WebCore.xcodeproj/project.pbxproj', u'Source/WebCore/accessibility/AccessibilityNodeObject.cpp', u'Source/WebCore/accessibility/AccessibilityNodeObject.h', u'Source/WebCore/dom/EventNames.h', u'Source/WebCore/dom/EventNames.in', u'Source/WebCore/testing/Internals.cpp', u'Source/WebCore/testing/Internals.h', u'Source/WebCore/testing/Internals.idl']" exit_code: 1 Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.cpp:49: When wrapping a line, only indent 4 spaces. [whitespace/indent] [3] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.cpp:61: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:44: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:45: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:46: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:47: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:48: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:49: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:50: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:51: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:52: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:57: When wrapping a line, only indent 4 spaces. [whitespace/indent] [3] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:69: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:70: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 14 in 18 files If any of these errors are false positives, please file a bug against check-webkit-style.
Early Warning System Bot
Comment 3
2013-06-24 09:45:45 PDT
Comment on
attachment 205303
[details]
patch
Attachment 205303
[details]
did not pass qt-ews (qt): Output:
http://webkit-queues.appspot.com/results/878076
Early Warning System Bot
Comment 4
2013-06-24 09:47:07 PDT
Comment on
attachment 205303
[details]
patch
Attachment 205303
[details]
did not pass qt-wk2-ews (qt-wk2): Output:
http://webkit-queues.appspot.com/results/856396
chris fleizach
Comment 5
2013-06-24 10:02:14 PDT
Created
attachment 205307
[details]
patch I think I have to ignore the style complaint about the all caps constants, since those are the names specified in the spec
WebKit Commit Bot
Comment 6
2013-06-24 10:04:17 PDT
Attachment 205307
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast/js/global-constructors-attributes-expected.txt', u'LayoutTests/indieui/uivaluechangerequest-expected.txt', u'LayoutTests/indieui/uivaluechangerequest.html', u'Source/WebCore/ChangeLog', u'Source/WebCore/DerivedSources.make', u'Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.cpp', u'Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h', u'Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.idl', u'Source/WebCore/WebCore.exp.in', u'Source/WebCore/WebCore.xcodeproj/project.pbxproj', u'Source/WebCore/accessibility/AccessibilityNodeObject.cpp', u'Source/WebCore/accessibility/AccessibilityNodeObject.h', u'Source/WebCore/dom/EventNames.h', u'Source/WebCore/dom/EventNames.in', u'Source/WebCore/testing/Internals.cpp', u'Source/WebCore/testing/Internals.h', u'Source/WebCore/testing/Internals.idl']" exit_code: 1 Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:44: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:45: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:46: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:47: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:48: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:49: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:50: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:51: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:52: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 9 in 18 files If any of these errors are false positives, please file a bug against check-webkit-style.
Ryosuke Niwa
Comment 7
2013-06-28 18:18:45 PDT
Comment on
attachment 205307
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=205307&action=review
> Source/WebCore/ChangeLog:10 > + (Example, allow a screen reader user to change the value of a custom slider).
It seems like this line can fit on the previous line.
> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1019 > + DEFINE_STATIC_LOCAL(const AtomicString, noAction, ());
Why don't we use nullAtom or emptyAtom instead?
> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1041 > + uiActionValue.split(' ', uiActions);
The spec says it's a list of "a set of whitespace-separated tokens". I'm actually surprised that uiactions DOM property isn't DOMTokenList. Perhaps we should give that feedback to the standards body. Regardless, we should probably use DOMTokenList's algorithm to split the tokens here. We also need a test that uses non-space whitespaces.
> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1061 > + UIValueChangeRequestEventInit eventInit; > + eventInit.changeType = increase ? UIValueChangeRequestEvent::INCREMENT : UIValueChangeRequestEvent::DECREMENT; > + eventInit.receiver = receiver;
Can we add a constructor to do this?
> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1065 > + RefPtr<UIValueChangeRequestEvent> event = UIValueChangeRequestEvent::create(eventNames().valuechangerequestEvent, eventInit); > + > + node()->dispatchUIRequestEvent(event);
You can do both of these things in single line.
> Source/WebCore/testing/Internals.cpp:2065 > + UIValueChangeRequestEventInit eventInit; > + eventInit.changeType = changeType; > + eventInit.receiver = receiver;
Ditto.
> Source/WebCore/testing/Internals.cpp:2069 > + RefPtr<UIValueChangeRequestEvent> event = UIValueChangeRequestEvent::create(eventNames().valuechangerequestEvent, eventInit); > + > + target->dispatchUIRequestEvent(event);
Ditto.
chris fleizach
Comment 8
2013-07-01 17:46:42 PDT
Comment on
attachment 205307
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=205307&action=review
>> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1041 >> + uiActionValue.split(' ', uiActions); > > The spec says it's a list of "a set of whitespace-separated tokens". I'm actually surprised that uiactions DOM property isn't DOMTokenList. > Perhaps we should give that feedback to the standards body. Regardless, we should probably use DOMTokenList's algorithm to split the tokens here. > We also need a test that uses non-space whitespaces.
I'll inform the committee about this. I'll file another bug about testing uiactions with non space whitespaces
>> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1061 >> + eventInit.receiver = receiver; > > Can we add a constructor to do this?
Yes. Will add some new eventInit constructors
>> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1065 >> + node()->dispatchUIRequestEvent(event); > > You can do both of these things in single line.
If i do that I think the event will be leaked. I'm relying on the static allocation to dealloc the event
chris fleizach
Comment 9
2013-07-01 17:50:10 PDT
(In reply to
comment #8
)
> (From update of
attachment 205307
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=205307&action=review
> > >> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1041 > >> + uiActionValue.split(' ', uiActions); > > > > The spec says it's a list of "a set of whitespace-separated tokens". I'm actually surprised that uiactions DOM property isn't DOMTokenList. > > Perhaps we should give that feedback to the standards body. Regardless, we should probably use DOMTokenList's algorithm to split the tokens here. > > We also need a test that uses non-space whitespaces. > > I'll inform the committee about this. I'll file another bug about testing uiactions with non space whitespaces
https://bugs.webkit.org/show_bug.cgi?id=118270
> > >> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1061 > >> + eventInit.receiver = receiver; > > > > Can we add a constructor to do this? > > Yes. Will add some new eventInit constructors > > >> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1065 > >> + node()->dispatchUIRequestEvent(event); > > > > You can do both of these things in single line. > > If i do that I think the event will be leaked. I'm relying on the static allocation to dealloc the event
James Craig
Comment 10
2013-07-01 23:53:15 PDT
INDIEUI-ACTION-60: uiactions attr value should be a DOMTokenList
https://www.w3.org/WAI/IndieUI/track/actions/60
chris fleizach
Comment 11
2013-07-09 10:42:09 PDT
Created
attachment 206341
[details]
patch This should address Ryosuke's comments
WebKit Commit Bot
Comment 12
2013-07-09 10:45:02 PDT
Attachment 206341
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast/js/global-constructors-attributes-expected.txt', u'LayoutTests/indieui/uivaluechangerequest-expected.txt', u'LayoutTests/indieui/uivaluechangerequest.html', u'Source/WebCore/ChangeLog', u'Source/WebCore/DerivedSources.make', u'Source/WebCore/Modules/indieui/UIRequestEvent.cpp', u'Source/WebCore/Modules/indieui/UIRequestEvent.h', u'Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.cpp', u'Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h', u'Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.idl', u'Source/WebCore/WebCore.exp.in', u'Source/WebCore/WebCore.xcodeproj/project.pbxproj', u'Source/WebCore/accessibility/AccessibilityNodeObject.cpp', u'Source/WebCore/accessibility/AccessibilityNodeObject.h', u'Source/WebCore/dom/EventNames.h', u'Source/WebCore/dom/EventNames.in', u'Source/WebCore/testing/Internals.cpp', u'Source/WebCore/testing/Internals.h', u'Source/WebCore/testing/Internals.idl']" exit_code: 1 Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:45: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:46: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:47: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:48: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:49: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:50: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:51: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:52: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Source/WebCore/Modules/indieui/UIValueChangeRequestEvent.h:53: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 9 in 20 files If any of these errors are false positives, please file a bug against check-webkit-style.
James Craig
Comment 13
2013-07-09 23:25:53 PDT
FYI, the uiactions IDL attribute is now a DOMTokenList, not a DOMString. The uiactions content attribute is still a string, of course.
https://dvcs.w3.org/hg/IndieUI/rev/3ab9f0b62e4d
James Craig
Comment 14
2013-07-10 14:49:41 PDT
…which means you'll need to update this test at the very least: LayoutTests/indieui/uiactions.html
chris fleizach
Comment 15
2013-07-10 14:52:23 PDT
(In reply to
comment #14
)
> …which means you'll need to update this test at the very least: > LayoutTests/indieui/uiactions.html
That change will need to come in a different patch, and which point this test will get updated yes
Radar WebKit Bug Importer
Comment 16
2013-07-10 14:56:32 PDT
<
rdar://problem/14407328
>
chris fleizach
Comment 17
2013-07-15 08:44:13 PDT
(In reply to
comment #7
)
> (From update of
attachment 205307
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=205307&action=review
> > > Source/WebCore/ChangeLog:10 > > + (Example, allow a screen reader user to change the value of a custom slider). > > It seems like this line can fit on the previous line. > > > Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1019 > > + DEFINE_STATIC_LOCAL(const AtomicString, noAction, ()); > > Why don't we use nullAtom or emptyAtom instead? > > > Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1041 > > + uiActionValue.split(' ', uiActions); > > The spec says it's a list of "a set of whitespace-separated tokens". I'm actually surprised that uiactions DOM property isn't DOMTokenList. > Perhaps we should give that feedback to the standards body. Regardless, we should probably use DOMTokenList's algorithm to split the tokens here. > We also need a test that uses non-space whitespaces. > > > Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1061 > > + UIValueChangeRequestEventInit eventInit; > > + eventInit.changeType = increase ? UIValueChangeRequestEvent::INCREMENT : UIValueChangeRequestEvent::DECREMENT; > > + eventInit.receiver = receiver; > > Can we add a constructor to do this? > > > Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1065 > > + RefPtr<UIValueChangeRequestEvent> event = UIValueChangeRequestEvent::create(eventNames().valuechangerequestEvent, eventInit); > > + > > + node()->dispatchUIRequestEvent(event); > > You can do both of these things in single line. > > > Source/WebCore/testing/Internals.cpp:2065 > > + UIValueChangeRequestEventInit eventInit; > > + eventInit.changeType = changeType; > > + eventInit.receiver = receiver; > > Ditto. > > > Source/WebCore/testing/Internals.cpp:2069 > > + RefPtr<UIValueChangeRequestEvent> event = UIValueChangeRequestEvent::create(eventNames().valuechangerequestEvent, eventInit); > > + > > + target->dispatchUIRequestEvent(event); > > Ditto.
Hi Ryosuke, could you take a look again?
Brady Eidson
Comment 18
2016-05-24 22:06:32 PDT
Comment on
attachment 206341
[details]
patch Assuming that patches for review since 2013 are stale, r-
James Craig
Comment 19
2016-10-21 01:18:54 PDT
Closing. This approach/spec is no longer being pursued.
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