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

Issue 752713002: Make getComputedStyle throw for incorrect first parameter (Closed)

Created:
6 years, 1 month ago by rwlbuis
Modified:
6 years ago
Reviewers:
tkent
CC:
blink-reviews, arv+blink, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Make getComputedStyle throw for incorrect first parameter When the first parameter is null, undefined or not an Element type, throw an exception. Matches Firefox and IE behavior. BUG=431915 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185988

Patch Set 1 #

Patch Set 2 : V2 #

Total comments: 3

Patch Set 3 : Address issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -5 lines) Patch
A LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter-expected.txt View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/frame/Window.idl View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
rwlbuis
PTAL
6 years, 1 month ago (2014-11-21 23:17:57 UTC) #2
tkent
> Matches Firefox behavior. What about IE and the standard?
6 years ago (2014-11-25 01:18:25 UTC) #3
rwlbuis
On 2014/11/25 01:18:25, tkent wrote: > > Matches Firefox behavior. > > What about IE ...
6 years ago (2014-11-25 19:24:12 UTC) #4
rwlbuis
On 2014/11/25 01:18:25, tkent wrote: > > Matches Firefox behavior. > > What about IE ...
6 years ago (2014-11-25 20:36:12 UTC) #5
tkent
ok, let's go ahead. https://codereview.chromium.org/752713002/diff/20001/LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html File LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html (right): https://codereview.chromium.org/752713002/diff/20001/LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html#newcode3 LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html:3: if (window.testRunner) Indent the whole ...
6 years ago (2014-11-25 22:59:28 UTC) #6
rwlbuis
On 2014/11/25 22:59:28, tkent wrote: > ok, let's go ahead. > > https://codereview.chromium.org/752713002/diff/20001/LayoutTests/fast/css/getComputedStyle/computed-style-non-element-parameter.html > File ...
6 years ago (2014-11-25 23:29:01 UTC) #7
tkent
lgtm
6 years ago (2014-11-25 23:35:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/752713002/40001
6 years ago (2014-11-25 23:35:31 UTC) #10
commit-bot: I haz the power
6 years ago (2014-11-26 00:57:20 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=185988

Powered by Google App Engine
This is Rietveld 408576698