Bug 919391 - Incorrect Navigation Timing API: performance.timing.responseStart - performance.timing.requestStart < 0 r=baku,jgraham

MozReview-Commit-ID: 6s5FljTQEAB
This commit is contained in:
Valentin Gosu 2016-12-08 09:37:11 -10:00
Родитель 5391bc3a05
Коммит 9f386d11f3
4 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -315,6 +315,11 @@ PerformanceTiming::ResponseStartHighRes()
(!mCacheReadStart.IsNull() && mCacheReadStart < mResponseStart)) {
mResponseStart = mCacheReadStart;
}
if (mResponseStart.IsNull() ||
(!mRequestStart.IsNull() && mResponseStart < mRequestStart)) {
mResponseStart = mRequestStart;
}
return TimeStampToDOMHighResOrFetchStart(mResponseStart);
}

Просмотреть файл

@ -1,3 +0,0 @@
[resource-timing.html]
type: testharness
disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1290858

Просмотреть файл

@ -1,5 +0,0 @@
[test_resource_timing.html]
type: testharness
[PerformanceEntry has correct network transfer attributes (xmlhttprequest)]
expected: FAIL

Просмотреть файл

@ -1,8 +1,11 @@
import gzip as gzip_module
from cStringIO import StringIO
import os
def main(request, response):
f = open('resource-timing/resources/resource_timing_test0.xml', 'r')
dir_path = os.path.dirname(os.path.realpath(__file__))
file_path = os.path.join(dir_path, 'resource_timing_test0.xml')
f = open(file_path, 'r')
output = f.read()
out = StringIO()