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

Issue 2744573002: DevTools: [hosted mode] avoid exception in devtools_compatibility:addExtensions (Closed)

Created:
3 years, 9 months ago by lushnikov
Modified:
3 years, 9 months ago
Reviewers:
dgozman
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, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: [hosted mode] avoid exception in devtools_compatibility:addExtensions The addExtensions command gets sent on front-end relatively early, when the onload event gets triggered. However, in case of hosted mode, the load event happens before actual InspectorFrontendHost initialization, since Runtime.js starts loading and evaling all the dependencies by itself. This patch protects from this race so that there's no annoying exception thrown. BUG=none R=dgozman Review-Url: https://codereview.chromium.org/2744573002 Cr-Commit-Position: refs/heads/master@{#455993} Committed: https://chromium.googlesource.com/chromium/src/+/6a70689503a8565c13b842657227421fab3a2145

Patch Set 1 #

Total comments: 2

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js View 1 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
lushnikov
please, take a look
3 years, 9 months ago (2017-03-09 08:44:10 UTC) #1
lushnikov
please, take a look
3 years, 9 months ago (2017-03-09 08:45:14 UTC) #2
dgozman
lgtm https://codereview.chromium.org/2744573002/diff/1/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js File third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js (right): https://codereview.chromium.org/2744573002/diff/1/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js#newcode71 third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js:71: // DevTools front-end. In case of DEBUG_DEVTOOLS/hosted mode, ...
3 years, 9 months ago (2017-03-09 23:35:18 UTC) #7
lushnikov
https://codereview.chromium.org/2744573002/diff/1/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js File third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js (right): https://codereview.chromium.org/2744573002/diff/1/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js#newcode71 third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js:71: // DevTools front-end. In case of DEBUG_DEVTOOLS/hosted mode, this ...
3 years, 9 months ago (2017-03-10 02:27:59 UTC) #9
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/2744573002/20001
3 years, 9 months ago (2017-03-10 02:28:43 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 04:23:01 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/6a70689503a8565c13b842657227...

Powered by Google App Engine
This is Rietveld 408576698