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

Issue 12224055: Converting XHR from onLoad to onReadyStateChange (Closed)

Created:
7 years, 10 months ago by blois
Modified:
7 years, 10 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Converting XHR from onLoad to onReadyStateChange Thought that onLoad was sufficient, but it's causing issues for loading files from file:// URIs (from a Chrome extension). BUG=8401 Committed: https://code.google.com/p/dart/source/detail?r=18233

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -6 lines) Patch
M sdk/lib/html/dart2js/html_dart2js.dart View 2 chunks +8 lines, -2 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 2 chunks +8 lines, -2 lines 0 comments Download
M tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate View 1 2 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
blois
7 years, 10 months ago (2013-02-07 19:34:22 UTC) #1
blois
Going back on onLoad, the problem was that file:// URIs have status of 0 (since ...
7 years, 10 months ago (2013-02-07 20:53:10 UTC) #2
Emily Fortuna
https://codereview.chromium.org/12224055/diff/1/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate File tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate (right): https://codereview.chromium.org/12224055/diff/1/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate#newcode100 tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate:100: xhr.status == 304 ) { This doesn't fix the ...
7 years, 10 months ago (2013-02-07 20:53:44 UTC) #3
Emily Fortuna
lgtm, once the explanatory comment is also added. https://codereview.chromium.org/12224055/diff/3001/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate File tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate (right): https://codereview.chromium.org/12224055/diff/3001/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate#newcode100 tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate:100: xhr.status ...
7 years, 10 months ago (2013-02-07 20:55:50 UTC) #4
Siggi Cherem (dart-lang)
https://codereview.chromium.org/12224055/diff/3001/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate File tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate (right): https://codereview.chromium.org/12224055/diff/3001/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate#newcode103 tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate:103: completer.completeError(e); not for this CL, but we should also ...
7 years, 10 months ago (2013-02-07 21:03:30 UTC) #5
blois
On 2013/02/07 21:03:30, Siggi Cherem (dart-lang) wrote: > https://codereview.chromium.org/12224055/diff/3001/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate > File tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate (right): > > ...
7 years, 10 months ago (2013-02-07 21:09:42 UTC) #6
Siggi Cherem (dart-lang)
7 years, 10 months ago (2013-02-07 21:50:54 UTC) #7
Message was sent while issue was closed.
On 2013/02/07 21:09:42, blois wrote:
> On 2013/02/07 21:03:30, Siggi Cherem (dart-lang) wrote:
> >
>
https://codereview.chromium.org/12224055/diff/3001/tools/dom/templates/html/i...
> > File tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate (right):
> > 
> >
>
https://codereview.chromium.org/12224055/diff/3001/tools/dom/templates/html/i...
> > tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate:103:
> > completer.completeError(e);
> > not for this CL, but we should also consider whether the error should be 'e'
> > should be the event or a special error object (maybe that points to both xhr
> and
> > the event?).
> > 
> > When I got the error object I wasn't sure how to use it. Turns out I really
> > wanted to use xhr to inspect what was happening.
> 
> The target of the event is the XHR

Ah! good to know. THanks =)

Powered by Google App Engine
This is Rietveld 408576698