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

Issue 2209203002: binding: Always throws an exception in the current realm. (Closed)

Created:
4 years, 4 months ago by Yuki
Modified:
4 years, 4 months ago
Reviewers:
haraken
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

binding: Always throws an exception in the current realm. Rewrote V8ThrowException, plus made it throws exceptions always in the current realm. Exceptions shouldn't be thrown in the relevant realm for the context object. BUG=618672 Committed: https://crrev.com/d375d0327f654294eeb1e0d7bcae0829dcd89ae4 Cr-Commit-Position: refs/heads/master@{#411016}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : Synced. #

Patch Set 5 : Updated test expectations. #

Total comments: 17

Patch Set 6 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -188 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/cross-frame-accessor-throw-expected.txt View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ThrowException.h View 1 2 1 chunk +22 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp View 1 2 3 4 5 2 chunks +46 lines, -102 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/custom/V8IDBObserverCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/templates/methods.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedPrimaryGlobal.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor3.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor2.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 38 chunks +38 lines, -38 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (19 generated)
Yuki
Could you review this CL?
4 years, 4 months ago (2016-08-09 07:39:22 UTC) #12
haraken
https://codereview.chromium.org/2209203002/diff/80001/third_party/WebKit/LayoutTests/fast/dom/cross-frame-accessor-throw-expected.txt File third_party/WebKit/LayoutTests/fast/dom/cross-frame-accessor-throw-expected.txt (right): https://codereview.chromium.org/2209203002/diff/80001/third_party/WebKit/LayoutTests/fast/dom/cross-frame-accessor-throw-expected.txt#newcode3 third_party/WebKit/LayoutTests/fast/dom/cross-frame-accessor-throw-expected.txt:3: FAIL Check that DOM exception is created in setter's ...
4 years, 4 months ago (2016-08-09 07:53:51 UTC) #13
Yuki
https://codereview.chromium.org/2209203002/diff/80001/third_party/WebKit/LayoutTests/fast/dom/cross-frame-accessor-throw-expected.txt File third_party/WebKit/LayoutTests/fast/dom/cross-frame-accessor-throw-expected.txt (right): https://codereview.chromium.org/2209203002/diff/80001/third_party/WebKit/LayoutTests/fast/dom/cross-frame-accessor-throw-expected.txt#newcode3 third_party/WebKit/LayoutTests/fast/dom/cross-frame-accessor-throw-expected.txt:3: FAIL Check that DOM exception is created in setter's ...
4 years, 4 months ago (2016-08-10 03:11:10 UTC) #16
haraken
https://codereview.chromium.org/2209203002/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp File third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp (left): https://codereview.chromium.org/2209203002/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp#oldcode73 third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp:73: if (!frame || !BindingSecurity::shouldAllowAccessToFrame(isolate, currentDOMWindow(isolate), frame, DoNotReportSecurityError)) { On ...
4 years, 4 months ago (2016-08-10 05:00:33 UTC) #17
Yuki
https://codereview.chromium.org/2209203002/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp File third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp (right): https://codereview.chromium.org/2209203002/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp#newcode82 third_party/WebKit/Source/bindings/core/v8/V8ThrowException.cpp:82: if (tryCatch.HasCaught()) { On 2016/08/10 05:00:33, haraken wrote: > ...
4 years, 4 months ago (2016-08-10 05:45:11 UTC) #20
haraken
LGTM
4 years, 4 months ago (2016-08-10 06:01:50 UTC) #21
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/2209203002/100001
4 years, 4 months ago (2016-08-10 10:02:55 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-10 10:07:01 UTC) #26
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 10:09:11 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d375d0327f654294eeb1e0d7bcae0829dcd89ae4
Cr-Commit-Position: refs/heads/master@{#411016}

Powered by Google App Engine
This is Rietveld 408576698