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

Issue 1740923004: IntersectionObserver: make exceptions match spec (Closed)

Created:
4 years, 10 months ago by szager1
Modified:
4 years, 9 months ago
Reviewers:
haraken, esprehn, ojan
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IntersectionObserver: fix exceptions and handling of cross-origin root margin BUG=540528 Committed: https://crrev.com/d151332e6b19119aff8ab7ef05b602ead73fb090 Cr-Commit-Position: refs/heads/master@{#378387}

Patch Set 1 #

Patch Set 2 : Call disconnect from clearWeakMembers #

Total comments: 2

Patch Set 3 : Handle cross-origin root margin correctly. #

Patch Set 4 : Get rid of IntersectionObserver::hasRootMargin #

Total comments: 2

Patch Set 5 : ASSERT observer constructor succeeded if no exception was thrown #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -65 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/intersection-observer/resources/cross-origin-subframe.html View 1 2 1 chunk +3 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/intersection-observer/observer-exceptions.html View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/intersection-observer/observer-exceptions-expected.txt View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/root-margin.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/intersection-observer/root-margin-expected.txt View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp View 1 2 3 4 1 chunk +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObservation.h View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObservation.cpp View 1 2 4 chunks +13 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObserver.h View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObserver.cpp View 1 2 3 5 chunks +10 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObserver.idl View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
szager1
4 years, 10 months ago (2016-02-27 00:06:52 UTC) #3
ojan
https://codereview.chromium.org/1740923004/diff/20001/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp File third_party/WebKit/Source/core/dom/IntersectionObserver.cpp (right): https://codereview.chromium.org/1740923004/diff/20001/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp#newcode178 third_party/WebKit/Source/core/dom/IntersectionObserver.cpp:178: exceptionState.throwDOMException(InvalidStateError, "Invalid observer: root element or containing document has ...
4 years, 10 months ago (2016-02-27 01:45:45 UTC) #4
szager1
https://codereview.chromium.org/1740923004/diff/20001/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp File third_party/WebKit/Source/core/dom/IntersectionObserver.cpp (right): https://codereview.chromium.org/1740923004/diff/20001/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp#newcode178 third_party/WebKit/Source/core/dom/IntersectionObserver.cpp:178: exceptionState.throwDOMException(InvalidStateError, "Invalid observer: root element or containing document has ...
4 years, 9 months ago (2016-02-29 22:35:53 UTC) #6
ojan
lgtm
4 years, 9 months ago (2016-02-29 23:32:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740923004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740923004/60001
4 years, 9 months ago (2016-02-29 23:33:01 UTC) #9
haraken
bindings LGTM https://codereview.chromium.org/1740923004/diff/60001/third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp (right): https://codereview.chromium.org/1740923004/diff/60001/third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp#newcode46 third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp:46: if (!observer) { Can this be ASSERT(observer)? ...
4 years, 9 months ago (2016-02-29 23:35:56 UTC) #11
szager1
https://codereview.chromium.org/1740923004/diff/60001/third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp File third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp (right): https://codereview.chromium.org/1740923004/diff/60001/third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp#newcode46 third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp:46: if (!observer) { On 2016/02/29 23:35:56, haraken wrote: > ...
4 years, 9 months ago (2016-02-29 23:45:39 UTC) #13
ojan
lgtm
4 years, 9 months ago (2016-03-01 00:56:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740923004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740923004/80001
4 years, 9 months ago (2016-03-01 00:56:40 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/188035)
4 years, 9 months ago (2016-03-01 01:53:42 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740923004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740923004/80001
4 years, 9 months ago (2016-03-01 01:57:16 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-01 03:26:34 UTC) #23
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 03:28:03 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d151332e6b19119aff8ab7ef05b602ead73fb090
Cr-Commit-Position: refs/heads/master@{#378387}

Powered by Google App Engine
This is Rietveld 408576698