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

Issue 1940253002: Disallow certain blocking DOM calls during microtask execution. (Closed)

Created:
4 years, 7 months ago by jochen (gone - plz use gerrit)
Modified:
4 years, 7 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disallow certain blocking DOM calls during microtask execution. BUG=605517 R=adamk@chromium.org,esprehn@chromium.org,haraken@chromium.org Committed: https://crrev.com/0f5b86386accbd17d06a26475df674a2e1df8bf2 Cr-Commit-Position: refs/heads/master@{#391640}

Patch Set 1 #

Total comments: 1

Patch Set 2 : updates #

Patch Set 3 : XMLHttpRequest #

Patch Set 4 : updates #

Total comments: 1

Patch Set 5 : test only #

Patch Set 6 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -70 lines) Patch
A + third_party/WebKit/LayoutTests/fast/dom/modal-dialogs-during-microtasks.html View 1 chunk +5 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/dom/modal-dialogs-during-microtasks-expected.txt View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/workers/resources/worker-xhr-microtasks.js View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/workers/worker-xhr-microtasks.html View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/workers/worker-xhr-microtasks-expected.txt View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cors-fetch-failure-output.php View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cors-fetch-failure-output-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/sync-xhr-doesnt-deadlock.html View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/duplicate-revalidation-reload.html View 1 2 3 4 5 1 chunk +12 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/redirect-cross-origin-tripmine.html View 1 2 3 4 5 3 chunks +32 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ExceptionState.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/DOMWindow.h View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Deprecation.cpp View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 9 chunks +37 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RemoteDOMWindow.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RemoteDOMWindow.cpp View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Window.idl View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (4 generated)
jochen (gone - plz use gerrit)
4 years, 7 months ago (2016-05-03 10:05:07 UTC) #1
haraken
Do you know what other browsers are doing here? As Elliott mentioned in the bug, ...
4 years, 7 months ago (2016-05-03 12:10:50 UTC) #2
jochen (gone - plz use gerrit)
On 2016/05/03 at 12:10:50, haraken wrote: > Do you know what other browsers are doing ...
4 years, 7 months ago (2016-05-03 12:18:15 UTC) #3
haraken
On 2016/05/03 12:18:15, jochen wrote: > On 2016/05/03 at 12:10:50, haraken wrote: > > Do ...
4 years, 7 months ago (2016-05-03 12:22:14 UTC) #4
jochen (gone - plz use gerrit)
On 2016/05/03 at 12:22:14, haraken wrote: > On 2016/05/03 12:18:15, jochen wrote: > > On ...
4 years, 7 months ago (2016-05-03 12:26:07 UTC) #5
jochen (gone - plz use gerrit)
added a console error
4 years, 7 months ago (2016-05-03 13:11:23 UTC) #6
haraken
LGTM to try, but I'd like to hear opinions of Elliott and Adam.
4 years, 7 months ago (2016-05-03 13:29:32 UTC) #7
jochen (gone - plz use gerrit)
also throwing sync XHR into the mix...
4 years, 7 months ago (2016-05-03 14:29:32 UTC) #8
jochen (gone - plz use gerrit)
I should probably start a thread on blink-dev anyways
4 years, 7 months ago (2016-05-03 14:30:01 UTC) #9
haraken
On 2016/05/03 14:30:01, jochen wrote: > I should probably start a thread on blink-dev anyways ...
4 years, 7 months ago (2016-05-03 15:00:04 UTC) #10
jochen (gone - plz use gerrit)
+holte for histograms.xml I turned this a runtime enabled feature, and added use counters + ...
4 years, 7 months ago (2016-05-04 07:24:58 UTC) #12
esprehn
https://codereview.chromium.org/1940253002/diff/60001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in File third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/1940253002/diff/60001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in#newcode74 third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in:74: DisableBlockingMethodsDuringMicrotasks status=experimental This ships this to all users with ...
4 years, 7 months ago (2016-05-04 07:43:32 UTC) #13
jochen (gone - plz use gerrit)
what about status=test?
4 years, 7 months ago (2016-05-04 07:52:27 UTC) #14
jochen (gone - plz use gerrit)
ptal
4 years, 7 months ago (2016-05-04 07:59:52 UTC) #15
esprehn
Lgtm
4 years, 7 months ago (2016-05-04 09:24:25 UTC) #16
Steven Holte
histograms lgtm
4 years, 7 months ago (2016-05-04 19:07:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1940253002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1940253002/100001
4 years, 7 months ago (2016-05-04 19:41:00 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-04 21:04:13 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-04 21:06:22 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/0f5b86386accbd17d06a26475df674a2e1df8bf2
Cr-Commit-Position: refs/heads/master@{#391640}

Powered by Google App Engine
This is Rietveld 408576698