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

Issue 464903002: Add contextmenu attribute for HTMLElement. (Closed)

Created:
6 years, 4 months ago by pals
Modified:
6 years, 4 months ago
Reviewers:
tkent
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org, arv+blink, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Add contextmenu attribute for HTMLElement. contextmenu attribute which enables web pages to specify custom context menu along with or in place of default platform context menu for a particular element. The value of the contextmenu attribute must be the ID of menu element with type popup. Specifications: http://www.whatwg.org/specs/web-apps/current-work/#htmlelement http://www.whatwg.org/specs/web-apps/current-work/#context-menus BUG=87553 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180551

Patch Set 1 #

Total comments: 18

Patch Set 2 : Updated tests #

Total comments: 14

Patch Set 3 : Added more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -0 lines) Patch
A LayoutTests/fast/dom/HTMLElement/contextmenu.html View 1 2 1 chunk +128 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLElement/contextmenu-expected.txt View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
M Source/core/html/HTMLAttributeNames.in View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLElement.h View 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/html/HTMLElement.cpp View 1 2 2 chunks +35 lines, -0 lines 0 comments Download
M Source/core/html/HTMLElement.idl View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
pals
Please review. https://codereview.chromium.org/464903002/diff/1/LayoutTests/fast/dom/HTMLElement/contextmenu.html File LayoutTests/fast/dom/HTMLElement/contextmenu.html (right): https://codereview.chromium.org/464903002/diff/1/LayoutTests/fast/dom/HTMLElement/contextmenu.html#newcode56 LayoutTests/fast/dom/HTMLElement/contextmenu.html:56: container5.contextMenu = menu3; Specification http://www.whatwg.org/specs/web-apps/current-work/#reflect under section ...
6 years, 4 months ago (2014-08-17 17:18:13 UTC) #1
tkent
https://codereview.chromium.org/464903002/diff/1/LayoutTests/fast/dom/HTMLElement/contextmenu-expected.txt File LayoutTests/fast/dom/HTMLElement/contextmenu-expected.txt (right): https://codereview.chromium.org/464903002/diff/1/LayoutTests/fast/dom/HTMLElement/contextmenu-expected.txt#newcode21 LayoutTests/fast/dom/HTMLElement/contextmenu-expected.txt:21: FAIL container5.contextMenu.label should be menu 6. Was menu 5. ...
6 years, 4 months ago (2014-08-18 02:24:53 UTC) #2
tkent
https://codereview.chromium.org/464903002/diff/1/Source/core/html/HTMLElement.cpp File Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/464903002/diff/1/Source/core/html/HTMLElement.cpp#newcode924 Source/core/html/HTMLElement.cpp:924: if (!contextMenuId.isNull() && equalIgnoringCase(contextMenuType, "popup") && contextMenu->inDocument()) On 2014/08/18 ...
6 years, 4 months ago (2014-08-18 02:27:27 UTC) #3
pals
Fixed the failing tests. Also added test for a shadow dom. PTAL. https://codereview.chromium.org/464903002/diff/1/LayoutTests/fast/dom/HTMLElement/contextmenu-expected.txt File LayoutTests/fast/dom/HTMLElement/contextmenu-expected.txt ...
6 years, 4 months ago (2014-08-18 14:23:25 UTC) #4
tkent
https://codereview.chromium.org/464903002/diff/40001/LayoutTests/fast/dom/HTMLElement/contextmenu.html File LayoutTests/fast/dom/HTMLElement/contextmenu.html (right): https://codereview.chromium.org/464903002/diff/40001/LayoutTests/fast/dom/HTMLElement/contextmenu.html#newcode8 LayoutTests/fast/dom/HTMLElement/contextmenu.html:8: description('Tests the contextmenu attribute.'); Inconsistent quote characters. You use ...
6 years, 4 months ago (2014-08-19 01:14:42 UTC) #5
pals
Added more tests. PTAL. https://codereview.chromium.org/464903002/diff/40001/LayoutTests/fast/dom/HTMLElement/contextmenu.html File LayoutTests/fast/dom/HTMLElement/contextmenu.html (right): https://codereview.chromium.org/464903002/diff/40001/LayoutTests/fast/dom/HTMLElement/contextmenu.html#newcode8 LayoutTests/fast/dom/HTMLElement/contextmenu.html:8: description('Tests the contextmenu attribute.'); On ...
6 years, 4 months ago (2014-08-19 10:12:32 UTC) #6
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 4 months ago (2014-08-19 12:38:35 UTC) #7
tkent
lgtm
6 years, 4 months ago (2014-08-19 12:38:35 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sanjoy.pal@samsung.com/464903002/80001
6 years, 4 months ago (2014-08-19 12:39:26 UTC) #9
commit-bot: I haz the power
6 years, 4 months ago (2014-08-19 13:44:03 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (80001) as 180551

Powered by Google App Engine
This is Rietveld 408576698