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

Issue 382833003: Revert of IDL: Treat undefined as missing for optional arguments with defaults (Closed)

Created:
6 years, 5 months ago by Justin Novosad
Modified:
6 years, 5 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Revert of IDL: Treat undefined as missing for optional arguments with defaults (https://codereview.chromium.org/373043004/) Reason for revert: The following layout tests fail on Mac: fast/css/shorthand-setProperty-important.html fast/dom/Comment/comment-constructor.html fast/dom/DOMImplementation/createHTMLDocument-optional-title.html fast/dom/HTMLDialogElement/dialog-return-value.html fast/dom/NodeIterator/NodeIterator-basic.html fast/dom/Text/text-constructor.html fast/dom/TreeWalker/TreeWalker-basic.html fast/dom/Window/custom-constructors.html fast/dom/Window/alert-undefined.html fast/encoding/api/basics.html fast/js/custom-constructors.html fast/workers/shared-worker-name.html media/encrypted-media/encrypted-media-istypesupported.html Original issue's description: > IDL: Treat undefined as missing for optional arguments with defaults > > For optional arguments with defaults, treat undefined as missing simply > by checking 'info[N].IsUndefined()' instead of 'N <= info.Length()'. > > This works since V8's indexing operator returns an undefined value for > all out-of-range indexes. > > Changes in behavior that had (or now has) testing coverade matches > Firefox (Nightly), except in the case of WebKitCSSMatrix's constructor, > which Firefox naturally doesn't have. > > BUG=335871 > > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177857 TBR=haraken@chromium.org,arv@chromium.org,jl@opera.com NOTREECHECKS=true NOTRY=true BUG=335871 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177866

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -175 lines) Patch
M LayoutTests/fast/css/shorthand-setProperty-important.html View 1 chunk +0 lines, -10 lines 0 comments Download
M LayoutTests/fast/css/shorthand-setProperty-important-expected.txt View 1 chunk +0 lines, -4 lines 0 comments Download
M LayoutTests/fast/dom/Comment/comment-constructor.html View 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/Comment/comment-constructor-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/DOMImplementation/createHTMLDocument-optional-title.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/DOMImplementation/createHTMLDocument-optional-title-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/HTMLDialogElement/dialog-return-value.html View 1 chunk +0 lines, -5 lines 0 comments Download
M LayoutTests/fast/dom/HTMLDialogElement/dialog-return-value-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html View 2 chunks +5 lines, -17 lines 0 comments Download
M LayoutTests/fast/dom/NodeIterator/NodeIterator-basic-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/fast/dom/Text/text-constructor.html View 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/Text/text-constructor-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html View 2 chunks +4 lines, -16 lines 0 comments Download
M LayoutTests/fast/dom/TreeWalker/TreeWalker-basic-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/fast/dom/Window/alert-undefined-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/Window/custom-constructors-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/encoding/api/basics.html View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/forms/resources/common-setrangetext.js View 1 chunk +0 lines, -7 lines 0 comments Download
M LayoutTests/fast/forms/search/search-setrangetext-expected.txt View 2 chunks +0 lines, -12 lines 0 comments Download
M LayoutTests/fast/forms/setrangetext-expected.txt View 5 chunks +0 lines, -30 lines 0 comments Download
M LayoutTests/fast/forms/textarea/textarea-setrangetext-expected.txt View 2 chunks +0 lines, -12 lines 0 comments Download
M LayoutTests/fast/js/custom-constructors-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/js/script-tests/custom-constructors.js View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/workers/resources/shared-worker-name.js View 6 chunks +32 lines, -15 lines 0 comments Download
M LayoutTests/fast/workers/shared-worker-name-expected.txt View 1 chunk +3 lines, -1 line 0 comments Download
M LayoutTests/media/encrypted-media/encrypted-media-istypesupported.html View 1 chunk +0 lines, -8 lines 0 comments Download
M Source/bindings/templates/methods.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceConstructor2.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 10 chunks +12 lines, -12 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Justin Novosad
Created Revert of IDL: Treat undefined as missing for optional arguments with defaults
6 years, 5 months ago (2014-07-10 18:23:14 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/junov@chromium.org/382833003/1
6 years, 5 months ago (2014-07-10 18:24:04 UTC) #2
commit-bot: I haz the power
Change committed as 177866
6 years, 5 months ago (2014-07-10 18:24:55 UTC) #3
Jens Widell
On 2014/07/10 18:23:14, junov wrote: > Created Revert of IDL: Treat undefined as missing for ...
6 years, 5 months ago (2014-07-10 19:37:29 UTC) #4
Justin Novosad
Failed build: http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Win7/builds/17994 On Thu, Jul 10, 2014 at 3:37 PM, <jl@opera.com> wrote: > On ...
6 years, 5 months ago (2014-07-10 19:39:45 UTC) #5
Justin Novosad
The actual vs. expected results from the test run sound the same to me (https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Win7/17994/layout-test-results/results.html) ...
6 years, 5 months ago (2014-07-10 19:44:12 UTC) #6
Jens Widell
On 2014/07/10 19:39:45, junov wrote: > Failed build: > http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Win7/builds/17994 That's a Win7 build, and ...
6 years, 5 months ago (2014-07-10 19:44:23 UTC) #7
sof
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.7/builds/29162
6 years, 5 months ago (2014-07-10 19:47:00 UTC) #8
Jens Widell
On 2014/07/10 19:47:00, sof wrote: > http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.7/builds/29162 Thanks. It looks like it might actually have ...
6 years, 5 months ago (2014-07-10 19:52:41 UTC) #9
Justin Novosad
Oops. sorry. I reverted a lot of stuff today. I was looking at the wrong ...
6 years, 5 months ago (2014-07-10 19:54:12 UTC) #10
Justin Novosad
I have been quick on the revert trigger because I was facing a lot of ...
6 years, 5 months ago (2014-07-10 19:55:58 UTC) #11
Jens Widell
6 years, 5 months ago (2014-07-10 20:04:44 UTC) #12
Message was sent while issue was closed.
On 2014/07/10 19:55:58, junov wrote:
> I have been quick on the revert trigger because I was facing a lot of failures
> to clean up earlier. If you conclude this was just bot flake, go ahead and
> resubmit. Sorry for the inconvenience.

I think it was a flake. These tests are really quite simple, and test quite
unrelated things, so I see no logical reason why they should all fail just on
Mac. (Which they of course didn't when I committed the patch through CQ in the
first place.)

Powered by Google App Engine
This is Rietveld 408576698