|
Improve fidelity of XHR progress events.
When dispatching XMLHttpRequest progress events, for upload as well as
normal/download, supply the required 'loaded' and 'total' properties
on the events, if available, for better reporting to scripts.
Previously just left as 0. The new behavior mirrors what other
implementations are doing.
R=tyoshino,abarth
BUG= 318727
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162689
Total comments: 14
Total comments: 3
Total comments: 5
Total comments: 6
Total comments: 29
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+319 lines, -152 lines) |
Patch |
 |
M |
LayoutTests/fast/xmlhttprequest/xmlhttprequest-get.xhtml
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/xmlhttprequest/xmlhttprequest-get-expected.txt
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
LayoutTests/http/tests/xmlhttprequest/onload-event.html
|
View
|
1
2
3
4
5
6
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/http/tests/xmlhttprequest/onload-event-expected.txt
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/xmlhttprequest/onloadend-event-after-load.html
|
View
|
1
2
3
4
5
6
|
1 chunk |
+39 lines, -36 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/xmlhttprequest/onloadend-event-after-load-expected.txt
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/http/tests/xmlhttprequest/ontimeout-event.html
|
View
|
1
2
3
4
5
6
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/http/tests/xmlhttprequest/ontimeout-event-expected.txt
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/http/tests/xmlhttprequest/resources/post-echo.php
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/xmlhttprequest/upload-onload-event.html
|
View
|
1
2
3
4
5
6
|
1 chunk |
+28 lines, -28 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/xmlhttprequest/upload-onload-event-expected.txt
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/xmlhttprequest/upload-onloadend-event-after-load.html
|
View
|
1
2
3
4
5
6
|
1 chunk |
+35 lines, -33 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/xmlhttprequest/upload-onloadend-event-after-load-expected.txt
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/xml/XMLHttpRequest.h
|
View
|
1
2
3
|
2 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/xml/XMLHttpRequest.cpp
|
View
|
1
2
3
4
5
6
|
11 chunks |
+48 lines, -25 lines |
0 comments
|
Download
|
 |
M |
Source/core/xml/XMLHttpRequestProgressEventThrottle.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/xml/XMLHttpRequestProgressEventThrottle.cpp
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/xml/XMLHttpRequestUpload.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/xml/XMLHttpRequestUpload.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
Total messages: 33 (0 generated)
|