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

Issue 685203003: DevTools: Get rid of synchronous XHRs in the frontend code (Closed)

Created:
6 years, 1 month ago by apavlov
Modified:
6 years, 1 month ago
Reviewers:
vsevik, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

DevTools: Get rid of synchronous XHRs in the frontend code According to https://xhr.spec.whatwg.org/, sync XHRs on the main thread have detrimental effects on the end user's experience and shall be removed. R=vsevik Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185043

Patch Set 1 #

Total comments: 14

Patch Set 2 : Address comments #

Total comments: 9

Patch Set 3 : Adapt a worker promise to Worker interface #

Patch Set 4 : Fix ScriptFormatter worker construction #

Patch Set 5 : Annotate code, fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -114 lines) Patch
M LayoutTests/inspector/elements/styles/style-formatter.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/inspector/sources/debugger/script-extract-outline.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/inspector/sources/debugger/script-formatter.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/devtools.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/devtools/front_end/Runtime.js View 1 4 chunks +40 lines, -96 lines 0 comments Download
M Source/devtools/front_end/bindings/TempFile.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
A Source/devtools/front_end/common/WorkerRuntime.js View 1 2 3 4 1 chunk +276 lines, -0 lines 0 comments Download
M Source/devtools/front_end/common/module.json View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/devtools/front_end/profiler/HeapSnapshotProxy.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/front_end/sdk/CSSParser.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/front_end/sources/FilteredItemSelectionDialog.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/front_end/sources/ScriptFormatter.js View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M Source/devtools/front_end/ui/View.js View 1 chunk +3 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
apavlov
6 years, 1 month ago (2014-11-06 15:07:27 UTC) #1
apavlov
PTAL
6 years, 1 month ago (2014-11-07 14:11:16 UTC) #3
pfeldman
https://chromiumcodereview.appspot.com/685203003/diff/1/Source/devtools/front_end/Runtime.js File Source/devtools/front_end/Runtime.js (right): https://chromiumcodereview.appspot.com/685203003/diff/1/Source/devtools/front_end/Runtime.js#newcode246 Source/devtools/front_end/Runtime.js:246: Runtime.startWorker = function(moduleName) Lets extract WorkerRuntime. https://chromiumcodereview.appspot.com/685203003/diff/1/Source/devtools/front_end/Runtime.js#newcode750 Source/devtools/front_end/Runtime.js:750: .then(loadStylesheetsPromise.bind(this)) ...
6 years, 1 month ago (2014-11-07 14:51:18 UTC) #4
apavlov
https://chromiumcodereview.appspot.com/685203003/diff/1/Source/devtools/front_end/Runtime.js File Source/devtools/front_end/Runtime.js (right): https://chromiumcodereview.appspot.com/685203003/diff/1/Source/devtools/front_end/Runtime.js#newcode246 Source/devtools/front_end/Runtime.js:246: Runtime.startWorker = function(moduleName) On 2014/11/07 14:51:17, pfeldman wrote: > ...
6 years, 1 month ago (2014-11-10 07:44:12 UTC) #6
pfeldman
https://chromiumcodereview.appspot.com/685203003/diff/40001/Source/devtools/front_end/bindings/TempFile.js File Source/devtools/front_end/bindings/TempFile.js (right): https://chromiumcodereview.appspot.com/685203003/diff/40001/Source/devtools/front_end/bindings/TempFile.js#newcode390 Source/devtools/front_end/bindings/TempFile.js:390: callback(); Now new WebInspector.TempStorageCleaner().ensureStorageCleared(callback) will immediately issue callback. https://chromiumcodereview.appspot.com/685203003/diff/40001/Source/devtools/front_end/sdk/CSSParser.js ...
6 years, 1 month ago (2014-11-10 10:23:26 UTC) #7
pfeldman
lgtm.
6 years, 1 month ago (2014-11-10 14:52:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/685203003/80001
6 years, 1 month ago (2014-11-10 15:28:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/685203003/100001
6 years, 1 month ago (2014-11-10 16:00:44 UTC) #13
commit-bot: I haz the power
6 years, 1 month ago (2014-11-10 17:04:57 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as 185043

Powered by Google App Engine
This is Rietveld 408576698