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

Issue 2010603002: Use SourceLocation when reporting runtime exceptions. (Closed)

Created:
4 years, 7 months ago by dgozman
Modified:
4 years, 7 months ago
CC:
chromium-reviews, tzik, eae+blinkwatch, apavlov+blink_chromium.org, kinuko+worker_chromium.org, kinuko+watch, rwlbuis, jsbell+serviceworker_chromium.org, caseq+blink_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, devtools-reviews_chromium.org, blink-reviews, blink-worker-reviews_chromium.org, sof, lushnikov+blink_chromium.org, nhiroki, haraken, michaeln, serviceworker-reviews, falken, pfeldman+blink_chromium.org, kinuko+serviceworker, horo+watch_chromium.org, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@2004243002
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use SourceLocation when reporting runtime exceptions. This migrates all plumbing to use SourceLocation and puts all the logic for gathering location information into SourceLocation. Next logical step would be to use SourceLocation in ErrorEvent internally, which should add stack traces in some places (e.g. when we postpone dispatching error event) and remove more plumbing. BUG=613882 Committed: https://crrev.com/dcf3826071f4aa88abe1bd2ebe3a71f510a238ed Cr-Commit-Position: refs/heads/master@{#396122}

Patch Set 1 #

Total comments: 5

Patch Set 2 : addressed comments #

Patch Set 3 : rebased #

Patch Set 4 : test fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -183 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/RejectedPromises.h View 3 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp View 6 chunks +10 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCallStack.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptCallStack.cpp View 1 2 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SourceLocation.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp View 1 2 2 chunks +32 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp View 13 chunks +19 lines, -63 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ExecutionContext.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ExecutionContext.cpp View 1 2 3 chunks +8 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/ConsoleMessage.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/ConsoleMessage.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/testing/NullExecutionContext.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.h View 3 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 5 chunks +5 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerReportingProxy.h View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h View 1 2 3 3 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/V8StackTraceImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/v8_inspector/public/V8Debugger.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (9 generated)
dgozman
Could you please take a look? https://codereview.chromium.org/2010603002/diff/1/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp File third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp (right): https://codereview.chromium.org/2010603002/diff/1/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp#newcode174 third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp:174: if (m_workerObject->dispatchEvent(event) == ...
4 years, 7 months ago (2016-05-24 18:50:37 UTC) #2
haraken
bindings/ LGTM https://codereview.chromium.org/2010603002/diff/1/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp File third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp (right): https://codereview.chromium.org/2010603002/diff/1/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp#newcode86 third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp:86: unsigned columnNumber = message->GetStartColumn(isolate->GetCurrentContext()).FromMaybe(-1) + 1; Use ...
4 years, 7 months ago (2016-05-24 19:48:34 UTC) #3
pfeldman
lgtm
4 years, 7 months ago (2016-05-24 23:06:04 UTC) #4
dgozman
https://codereview.chromium.org/2010603002/diff/1/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp File third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp (right): https://codereview.chromium.org/2010603002/diff/1/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp#newcode86 third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp:86: unsigned columnNumber = message->GetStartColumn(isolate->GetCurrentContext()).FromMaybe(-1) + 1; On 2016/05/24 19:48:34, ...
4 years, 7 months ago (2016-05-24 23:13:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2010603002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2010603002/40001
4 years, 7 months ago (2016-05-25 20:23:01 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/176083)
4 years, 7 months ago (2016-05-25 20:48:24 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2010603002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2010603002/60001
4 years, 7 months ago (2016-05-25 21:25:55 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/228256)
4 years, 7 months ago (2016-05-26 00:50:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2010603002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2010603002/60001
4 years, 7 months ago (2016-05-26 03:08:44 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-26 05:06:57 UTC) #18
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 05:08:01 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/dcf3826071f4aa88abe1bd2ebe3a71f510a238ed
Cr-Commit-Position: refs/heads/master@{#396122}

Powered by Google App Engine
This is Rietveld 408576698