Changeset 83491 in webkit
- Timestamp:
- Apr 11, 2011 1:45:39 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83490 r83491 1 2011-04-11 Vsevolod Vlasov <vsevik@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 PerformanceTiming returns inconsistent values when timing is null. 6 https://bugs.webkit.org/show_bug.cgi?id=58143 7 8 Made PerformanceTiming returned values consistent when there is no timing object. 9 10 * page/PerformanceTiming.cpp: 11 (WebCore::PerformanceTiming::domainLookupStart): 12 (WebCore::PerformanceTiming::domainLookupEnd): 13 (WebCore::PerformanceTiming::connectStart): 14 (WebCore::PerformanceTiming::connectEnd): 15 (WebCore::PerformanceTiming::requestStart): 16 (WebCore::PerformanceTiming::responseStart): 17 (WebCore::PerformanceTiming::domLoading): 18 1 19 2011-04-05 Stephen White <senorblanco@chromium.org> 2 20 -
trunk/Source/WebCore/page/PerformanceTiming.cpp
r79565 r83491 162 162 ResourceLoadTiming* timing = resourceLoadTiming(); 163 163 if (!timing) 164 return 0;164 return fetchStart(); 165 165 166 166 // This will be -1 when a DNS request is not performed. … … 177 177 ResourceLoadTiming* timing = resourceLoadTiming(); 178 178 if (!timing) 179 return 0;179 return domainLookupStart(); 180 180 181 181 // This will be -1 when a DNS request is not performed. … … 192 192 DocumentLoader* loader = documentLoader(); 193 193 if (!loader) 194 return 0;194 return domainLookupEnd(); 195 195 196 196 ResourceLoadTiming* timing = loader->response().resourceLoadTiming(); 197 197 if (!timing) 198 return 0;198 return domainLookupEnd(); 199 199 200 200 // connectStart will be -1 when a network request is not made. … … 216 216 DocumentLoader* loader = documentLoader(); 217 217 if (!loader) 218 return 0;218 return connectStart(); 219 219 220 220 ResourceLoadTiming* timing = loader->response().resourceLoadTiming(); 221 221 if (!timing) 222 return 0;222 return connectStart(); 223 223 224 224 // connectEnd will be -1 when a network request is not made. … … 252 252 ResourceLoadTiming* timing = resourceLoadTiming(); 253 253 if (!timing) 254 return 0;254 return connectEnd(); 255 255 256 256 ASSERT(timing->sendStart >= 0); … … 262 262 ResourceLoadTiming* timing = resourceLoadTiming(); 263 263 if (!timing) 264 return 0;264 return requestStart(); 265 265 266 266 // FIXME: Response start needs to be the time of the first received byte. … … 287 287 const DocumentTiming* timing = documentTiming(); 288 288 if (!timing) 289 return 0;289 return fetchStart(); 290 290 291 291 return toIntegerMilliseconds(timing->domLoading);
Note: See TracChangeset
for help on using the changeset viewer.