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

Issue 1622633003: [DevTools] Check that mainFrameImpl() has been initalized before accessing it. (Closed)

Created:
4 years, 11 months ago by dgozman
Modified:
4 years, 10 months ago
Reviewers:
nasko, dcheng, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Check that mainFrameImpl() has been initalized before accessing it. During reattach, InspectorEmulationAgent tries to access mainFrameImpl() too early, which happens to break during remote -> local main frame transition. Similar thing happens when we cleanup during local -> remote transition. Somehow, we also enable emulation for remote frames sometimes (or just not disbale it, so it keeps going). Added null-check for now and TODO. BUG=579065, 579474, 578968, 543896 Committed: https://crrev.com/228893becc4c3c8936f80a1f5a9885ef7095e216 Cr-Commit-Position: refs/heads/master@{#372200}

Patch Set 1 #

Total comments: 3

Patch Set 2 : more checks, better comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -7 lines) Patch
M third_party/WebKit/Source/web/DevToolsEmulator.cpp View 1 5 chunks +26 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
dgozman
Nasko, could you please take a look? I think we are mostly doing the right ...
4 years, 11 months ago (2016-01-22 18:46:14 UTC) #2
dgozman
Friendly ping. Adding Daniel, in case Nasko is unavailable.
4 years, 11 months ago (2016-01-26 17:13:19 UTC) #4
nasko
I'm not sure my knowledge of DevTools is good enough to judge the validity of ...
4 years, 11 months ago (2016-01-26 19:43:07 UTC) #5
dgozman
+pfeldman for devtools. https://codereview.chromium.org/1622633003/diff/1/third_party/WebKit/Source/web/DevToolsEmulator.cpp File third_party/WebKit/Source/web/DevToolsEmulator.cpp (right): https://codereview.chromium.org/1622633003/diff/1/third_party/WebKit/Source/web/DevToolsEmulator.cpp#newcode324 third_party/WebKit/Source/web/DevToolsEmulator.cpp:324: // local main frame, and remove ...
4 years, 11 months ago (2016-01-27 17:54:44 UTC) #8
nasko
https://codereview.chromium.org/1622633003/diff/1/third_party/WebKit/Source/web/DevToolsEmulator.cpp File third_party/WebKit/Source/web/DevToolsEmulator.cpp (right): https://codereview.chromium.org/1622633003/diff/1/third_party/WebKit/Source/web/DevToolsEmulator.cpp#newcode324 third_party/WebKit/Source/web/DevToolsEmulator.cpp:324: // local main frame, and remove InspectorEmulationAgent entirely. On ...
4 years, 11 months ago (2016-01-27 17:55:57 UTC) #9
dgozman
On 2016/01/27 17:55:57, nasko wrote: > https://codereview.chromium.org/1622633003/diff/1/third_party/WebKit/Source/web/DevToolsEmulator.cpp > File third_party/WebKit/Source/web/DevToolsEmulator.cpp (right): > > https://codereview.chromium.org/1622633003/diff/1/third_party/WebKit/Source/web/DevToolsEmulator.cpp#newcode324 > ...
4 years, 11 months ago (2016-01-27 18:21:23 UTC) #10
pfeldman
lgtm
4 years, 11 months ago (2016-01-27 18:26:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1622633003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1622633003/20001
4 years, 10 months ago (2016-01-28 21:57:38 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-01-28 23:13:52 UTC) #14
commit-bot: I haz the power
4 years, 10 months ago (2016-01-28 23:14:46 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/228893becc4c3c8936f80a1f5a9885ef7095e216
Cr-Commit-Position: refs/heads/master@{#372200}

Powered by Google App Engine
This is Rietveld 408576698