зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5391bc3a05
Коммит
9f386d11f3
|
@ -315,6 +315,11 @@ PerformanceTiming::ResponseStartHighRes()
|
||||||
(!mCacheReadStart.IsNull() && mCacheReadStart < mResponseStart)) {
|
(!mCacheReadStart.IsNull() && mCacheReadStart < mResponseStart)) {
|
||||||
mResponseStart = mCacheReadStart;
|
mResponseStart = mCacheReadStart;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mResponseStart.IsNull() ||
|
||||||
|
(!mRequestStart.IsNull() && mResponseStart < mRequestStart)) {
|
||||||
|
mResponseStart = mRequestStart;
|
||||||
|
}
|
||||||
return TimeStampToDOMHighResOrFetchStart(mResponseStart);
|
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
|
import gzip as gzip_module
|
||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
|
import os
|
||||||
|
|
||||||
def main(request, response):
|
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()
|
output = f.read()
|
||||||
|
|
||||||
out = StringIO()
|
out = StringIO()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче