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

Issue 2678583002: Make MutationObserver observe parameter optional as per spec (Closed)

Created:
3 years, 10 months ago by chasej
Modified:
3 years, 10 months ago
Reviewers:
foolip
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make MutationObserver observe parameter optional as per spec. The spec for MutationObserver: https://dom.spec.whatwg.org/#interface-mutationobserver According to the spec, the observe() method has an "options" dictionary parameter, which should be optional. The IDL definition of observe() was missing the optional modifier, making the parameter required. This CL corrects the IDL so that it conforms exactly with the spec. As it turns out, the options parameter is effectively required, as the spec requires at least one of the values to be set. The result of this change is only observable in different error messages (the type thrown is the same). BUG=673698 Review-Url: https://codereview.chromium.org/2678583002 Cr-Commit-Position: refs/heads/master@{#448769} Committed: https://chromium.googlesource.com/chromium/src/+/48d992b90f2a9a95bb591cf2a5d48baea27567df

Patch Set 1 #

Patch Set 2 : Fix failing wpt #

Total comments: 1

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M third_party/WebKit/LayoutTests/external/wpt/dom/interfaces-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/MutationObserver/observe-exceptions-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/MutationObserver.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (16 generated)
chasej
foolip@, please take a look.
3 years, 10 months ago (2017-02-07 04:11:32 UTC) #11
foolip
lgtm https://codereview.chromium.org/2678583002/diff/20001/third_party/WebKit/LayoutTests/external/wpt/dom/interfaces-expected.txt File third_party/WebKit/LayoutTests/external/wpt/dom/interfaces-expected.txt (left): https://codereview.chromium.org/2678583002/diff/20001/third_party/WebKit/LayoutTests/external/wpt/dom/interfaces-expected.txt#oldcode148 third_party/WebKit/LayoutTests/external/wpt/dom/interfaces-expected.txt:148: FAIL MutationObserver interface: operation observe(Node,MutationObserverInit) assert_equals: property has ...
3 years, 10 months ago (2017-02-07 15:49:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2678583002/20001
3 years, 10 months ago (2017-02-07 15:50:02 UTC) #14
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/dom/MutationObserver.idl: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-02-07 15:54:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2678583002/40001
3 years, 10 months ago (2017-02-07 21:03:58 UTC) #19
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 23:06:51 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/48d992b90f2a9a95bb591cf2a5d4...

Powered by Google App Engine
This is Rietveld 408576698