Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Issue 766863002: Implement checked attribute for menuitem. (Closed)

Created:
6 years ago by pals
Modified:
6 years ago
Reviewers:
tkent
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Implement checked attribute for menuitem. The checked attribute is a boolean attribute that, if present, indicates that the command is selected. The attribute must be omitted unless the type attribute is in either the Checkbox state or the Radio state. If the type attribute is in the Checkbox state If the element has a checked attribute, the UA must remove that attribute. Otherwise, the UA must add a checked attribute, with the literal value "checked". Specification https://html.spec.whatwg.org/multipage/forms.html#attr-menuitem-checked BUG=87553 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186584

Patch Set 1 #

Total comments: 5

Patch Set 2 : Update #

Patch Set 3 : Added tests to verify activation behavior of context menu #

Patch Set 4 : Moved post-activation steps to menuitem #

Patch Set 5 : Added layout test for click on menuitem. #

Patch Set 6 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -3 lines) Patch
M LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu.html View 3 chunks +10 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu-expected.txt View 2 chunks +4 lines, -1 line 0 comments Download
A LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-click.html View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLMenuItemElement/menuitem-click-expected.txt View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLMenuItemElement.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLMenuItemElement.cpp View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
A Source/core/page/ContextMenuControllerTest.cpp View 1 2 3 4 5 1 chunk +93 lines, -0 lines 0 comments Download
M Source/core/page/CustomContextMenuProvider.cpp View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 24 (4 generated)
pals
I have tested the activation behavior manually which works as expected with http://jsfiddle.net/oec7vv4r/2/show/. PTAL.
6 years ago (2014-11-28 07:54:21 UTC) #2
tkent
We need a way to test activation behavior. Adding something to testRunner? https://codereview.chromium.org/766863002/diff/1/Source/core/page/CustomContextMenuProvider.cpp File Source/core/page/CustomContextMenuProvider.cpp ...
6 years ago (2014-11-28 08:17:24 UTC) #3
pals
Once I found a way to test activation behavior. https://codereview.chromium.org/243403006/#ps300001 Can you please check if ...
6 years ago (2014-11-28 09:12:00 UTC) #4
tkent
https://codereview.chromium.org/766863002/diff/1/Source/core/page/CustomContextMenuProvider.cpp File Source/core/page/CustomContextMenuProvider.cpp (right): https://codereview.chromium.org/766863002/diff/1/Source/core/page/CustomContextMenuProvider.cpp#newcode50 Source/core/page/CustomContextMenuProvider.cpp:50: element->dispatchEvent(click.release()); On 2014/11/28 09:12:00, sanjoy_pal wrote: > On 2014/11/28 ...
6 years ago (2014-12-01 01:57:27 UTC) #5
pals
On 2014/12/01 01:57:27, tkent wrote: > https://codereview.chromium.org/766863002/diff/1/Source/core/page/CustomContextMenuProvider.cpp > File Source/core/page/CustomContextMenuProvider.cpp (right): > > https://codereview.chromium.org/766863002/diff/1/Source/core/page/CustomContextMenuProvider.cpp#newcode50 > ...
6 years ago (2014-12-02 06:34:56 UTC) #6
tkent
Thank you for the clarification. So, the code change looks ok. What about testing?
6 years ago (2014-12-03 00:18:21 UTC) #7
pals
On 2014/12/03 00:18:21, tkent wrote: > Thank you for the clarification. So, the code change ...
6 years ago (2014-12-04 11:24:48 UTC) #8
tkent
Should HTMLMenuItemElement do activation behavior by click() IDL function?
6 years ago (2014-12-04 12:56:15 UTC) #9
pals
On 2014/12/04 12:56:15, tkent wrote: > Should HTMLMenuItemElement do activation behavior by click() IDL function? ...
6 years ago (2014-12-04 14:19:25 UTC) #10
tkent
On 2014/12/04 14:19:25, sanjoy_pal wrote: > On 2014/12/04 12:56:15, tkent wrote: > > Should HTMLMenuItemElement ...
6 years ago (2014-12-05 00:58:12 UTC) #11
pals
On 2014/12/05 00:58:12, tkent wrote: > On 2014/12/04 14:19:25, sanjoy_pal wrote: > > On 2014/12/04 ...
6 years ago (2014-12-05 07:00:16 UTC) #12
tkent
On 2014/12/05 07:00:16, sanjoy_pal wrote: > > Right. If so, CustomContextMenuProvider::contextMenuItemSelected should just > > ...
6 years ago (2014-12-05 07:33:07 UTC) #13
pals
On 2014/12/05 07:33:07, tkent wrote: > On 2014/12/05 07:00:16, sanjoy_pal wrote: > > > Right. ...
6 years ago (2014-12-05 08:56:07 UTC) #14
tkent
On 2014/12/05 08:56:07, sanjoy_pal wrote: > The 'checked' attribute should be added and this is ...
6 years ago (2014-12-05 08:59:04 UTC) #15
pals
On 2014/12/05 08:59:04, tkent wrote: > On 2014/12/05 08:56:07, sanjoy_pal wrote: > > The 'checked' ...
6 years ago (2014-12-05 09:40:35 UTC) #16
tkent
lgtm
6 years ago (2014-12-05 10:07:22 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/766863002/80001
6 years ago (2014-12-05 10:07:50 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/37094)
6 years ago (2014-12-05 10:17:12 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/766863002/100001
6 years ago (2014-12-05 10:19:55 UTC) #23
commit-bot: I haz the power
6 years ago (2014-12-05 11:35:30 UTC) #24
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186584

Powered by Google App Engine
This is Rietveld 408576698