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

Issue 1076783002: Support non-function object values assigned to EventHandler attributes (Closed)

Created:
5 years, 8 months ago by Jens Widell
Modified:
5 years, 8 months ago
Reviewers:
haraken, vivekg
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Support non-function object values assigned to EventHandler attributes In HTML, the type EventHandler, used for event handler IDL attributes, is defined [TreatNonObjectAsNull] callback EventHandlerNonNull = any (Event event); typedef EventHandlerNonNull? EventHandler; Aside from treating non-object values as null, the extended attribute means non-callable object values should be allowed by the attribute's setter (and returned by its getter) and should be treated as if they were no-op functions returning undefined. BUG=475428 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193516

Patch Set 1 #

Patch Set 2 : drop (now) pointless assert #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -6 lines) Patch
M LayoutTests/fast/html/eventhandler-attribute-non-callable.html View 1 chunk +7 lines, -1 line 0 comments Download
M LayoutTests/fast/html/eventhandler-attribute-non-callable-expected.txt View 1 chunk +5 lines, -1 line 0 comments Download
M Source/bindings/core/v8/V8EventListener.cpp View 1 1 chunk +7 lines, -1 line 2 comments Download
M Source/bindings/core/v8/V8EventListenerList.h View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Jens Widell
PTAL
5 years, 8 months ago (2015-04-09 14:14:08 UTC) #2
vivekg
I see the behavior in FF has been already working as per the test of ...
5 years, 8 months ago (2015-04-09 14:39:13 UTC) #4
Jens Widell
https://codereview.chromium.org/1076783002/diff/20001/Source/bindings/core/v8/V8EventListener.cpp File Source/bindings/core/v8/V8EventListener.cpp (right): https://codereview.chromium.org/1076783002/diff/20001/Source/bindings/core/v8/V8EventListener.cpp#newcode52 Source/bindings/core/v8/V8EventListener.cpp:52: if (listener.IsEmpty()) On 2015/04/09 14:39:13, vivekg_ wrote: > Is ...
5 years, 8 months ago (2015-04-09 14:49:04 UTC) #5
vivekg
On 2015/04/09 at 14:49:04, jl wrote: > https://codereview.chromium.org/1076783002/diff/20001/Source/bindings/core/v8/V8EventListener.cpp > File Source/bindings/core/v8/V8EventListener.cpp (right): > > https://codereview.chromium.org/1076783002/diff/20001/Source/bindings/core/v8/V8EventListener.cpp#newcode52 ...
5 years, 8 months ago (2015-04-09 14:58:51 UTC) #6
haraken
LGTM
5 years, 8 months ago (2015-04-09 23:35:14 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1076783002/20001
5 years, 8 months ago (2015-04-10 04:40:33 UTC) #9
commit-bot: I haz the power
5 years, 8 months ago (2015-04-10 06:24:11 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193516

Powered by Google App Engine
This is Rietveld 408576698