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

Issue 23465030: Prevent entering XHR methods while loader is being cancelled. (Closed)

Created:
7 years, 3 months ago by tyoshino (SeeGerritForStatus)
Modified:
7 years, 3 months ago
Reviewers:
Nate Chapin
CC:
blink-reviews, do-not-use
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Prevent entering XHR methods while loader is being cancelled. Calling cancel() on DocumentThreadableLoader may results in calling window.onload synchronously. If open(), send(), etc. are called on the same XMLHttpRequest object, it'll be hard to resolve conflict of states without losing spec conformance. This CL avoids that by just disallowing reentrant and throwing an exception. BUG=292422

Patch Set 1 #

Patch Set 2 : Removed unnecessary stuff #

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -3 lines) Patch
M LayoutTests/http/tests/xmlhttprequest/reentrant-cancel-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.h View 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 2 6 chunks +24 lines, -1 line 1 comment Download
M Source/core/xml/XMLHttpRequest.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
tyoshino (SeeGerritForStatus)
7 years, 3 months ago (2013-09-19 14:48:51 UTC) #1
Nate Chapin
Ideally, we could solve this without an exception and without the new boolean. Particularly, I ...
7 years, 3 months ago (2013-09-19 16:31:30 UTC) #2
tyoshino (SeeGerritForStatus)
On 2013/09/19 16:31:30, Nate Chapin wrote: > Ideally, we could solve this without an exception ...
7 years, 3 months ago (2013-09-19 17:51:50 UTC) #3
Nate Chapin
On 2013/09/19 17:51:50, tyoshino wrote: > On 2013/09/19 16:31:30, Nate Chapin wrote: > > Ideally, ...
7 years, 3 months ago (2013-09-19 17:58:21 UTC) #4
tyoshino (SeeGerritForStatus)
On 2013/09/19 17:58:21, Nate Chapin wrote: > Ok, what about: > > RefPtr<ThreadableLoader> loader = ...
7 years, 3 months ago (2013-09-19 18:15:16 UTC) #5
Nate Chapin
On 2013/09/19 18:15:16, tyoshino wrote: > On 2013/09/19 17:58:21, Nate Chapin wrote: > > Ok, ...
7 years, 3 months ago (2013-09-19 18:19:04 UTC) #6
Nate Chapin
I believe this was fixed another way in a different issue. Can we close this ...
7 years, 3 months ago (2013-09-24 18:28:05 UTC) #7
tyoshino (SeeGerritForStatus)
7 years, 3 months ago (2013-09-24 18:29:20 UTC) #8
Message was sent while issue was closed.
On 2013/09/24 18:28:05, Nate Chapin wrote:
> I believe this was fixed another way in a different issue. Can we close this
> one?

Yes. Closed. Thanks for review.

Powered by Google App Engine
This is Rietveld 408576698