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

Issue 20679002: Add 'colno' attribute to ErrorEvent interface (Closed)

Created:
7 years, 5 months ago by do-not-use
Modified:
7 years, 4 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, lgombos, Mike West
Visibility:
Public.

Description

Add 'colno' attribute to ErrorEvent interface Add 'colno' attribute to ErrorEvent interface to match the latest specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#errorevent The 'colno' attribute is already supported by IE10. BUG=264197 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155148

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -33 lines) Patch
M LayoutTests/fast/events/constructors/error-event-constructor.html View 1 chunk +37 lines, -5 lines 2 comments Download
M LayoutTests/fast/events/constructors/error-event-constructor-expected.txt View 1 chunk +28 lines, -5 lines 0 comments Download
M LayoutTests/fast/events/window-onerror-08.html View 1 chunk +1 line, -3 lines 1 comment Download
M LayoutTests/fast/events/window-onerror-08-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/workers/worker-script-error.html View 5 chunks +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/workers/worker-script-error-expected.txt View 1 chunk +6 lines, -6 lines 0 comments Download
M Source/bindings/v8/V8ErrorHandler.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/ErrorEvent.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/ErrorEvent.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/dom/ErrorEvent.idl View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
do-not-use
Note1: an intent to implement/ship was sent by Mike West to blink-dev. Note2: The spec ...
7 years, 5 months ago (2013-07-26 07:48:55 UTC) #1
Mike West
LGTM, thanks for taking care of this. Now that the spec has changed to match ...
7 years, 5 months ago (2013-07-26 08:32:39 UTC) #2
haraken
In terms of implementation, LGTM.
7 years, 5 months ago (2013-07-26 10:17:26 UTC) #3
do-not-use
An API Owner still needs to approve.
7 years, 5 months ago (2013-07-27 07:44:32 UTC) #4
tkent
https://codereview.chromium.org/20679002/diff/1/LayoutTests/fast/events/constructors/error-event-constructor.html File LayoutTests/fast/events/constructors/error-event-constructor.html (right): https://codereview.chromium.org/20679002/diff/1/LayoutTests/fast/events/constructors/error-event-constructor.html#newcode79 LayoutTests/fast/events/constructors/error-event-constructor.html:79: shouldBe("new ErrorEvent('eventType', { colno: 0 }).colno", "0"); According to ...
7 years, 4 months ago (2013-07-28 21:52:11 UTC) #5
do-not-use
On 2013/07/28 21:52:11, tkent wrote: > https://codereview.chromium.org/20679002/diff/1/LayoutTests/fast/events/constructors/error-event-constructor.html > File LayoutTests/fast/events/constructors/error-event-constructor.html (right): > > https://codereview.chromium.org/20679002/diff/1/LayoutTests/fast/events/constructors/error-event-constructor.html#newcode79 > ...
7 years, 4 months ago (2013-07-29 05:36:54 UTC) #6
do-not-use
https://codereview.chromium.org/20679002/diff/1/LayoutTests/fast/events/constructors/error-event-constructor.html File LayoutTests/fast/events/constructors/error-event-constructor.html (right): https://codereview.chromium.org/20679002/diff/1/LayoutTests/fast/events/constructors/error-event-constructor.html#newcode79 LayoutTests/fast/events/constructors/error-event-constructor.html:79: shouldBe("new ErrorEvent('eventType', { colno: 0 }).colno", "0"); On 2013/07/28 ...
7 years, 4 months ago (2013-07-30 05:20:12 UTC) #7
tkent
lgtm
7 years, 4 months ago (2013-07-30 05:22:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/20679002/1
7 years, 4 months ago (2013-07-30 05:55:00 UTC) #9
commit-bot: I haz the power
Change committed as 155148
7 years, 4 months ago (2013-07-30 08:28:57 UTC) #10
arv (Not doing code reviews)
7 years, 4 months ago (2013-07-31 16:07:23 UTC) #11
Message was sent while issue was closed.
LGTM

https://chromiumcodereview.appspot.com/20679002/diff/1/LayoutTests/fast/event...
File LayoutTests/fast/events/window-onerror-08.html (right):

https://chromiumcodereview.appspot.com/20679002/diff/1/LayoutTests/fast/event...
LayoutTests/fast/events/window-onerror-08.html:17:
shouldBeEqualToString('window.event.type', 'error');
We should not be using window.event.

A better approach would have been to do:

var event;

window.addEventListener('error', function(e) {
    event = e;
});
....

Powered by Google App Engine
This is Rietveld 408576698