RESOLVED FIXED 145650
[Web Timing] Use new SPI to enable data collection.
https://bugs.webkit.org/show_bug.cgi?id=145650
Summary [Web Timing] Use new SPI to enable data collection.
Alex Christensen
Reported 2015-06-04 12:00:22 PDT
There is a new SPI. Let's use it.
Attachments
Patch (3.09 KB, patch)
2015-06-04 12:02 PDT, Alex Christensen
no flags
Patch (3.12 KB, patch)
2015-06-04 15:39 PDT, Alex Christensen
no flags
Patch (4.98 KB, patch)
2015-06-04 17:01 PDT, Alex Christensen
no flags
Patch (5.02 KB, patch)
2015-06-04 17:46 PDT, Alex Christensen
no flags
Patch (5.61 KB, patch)
2015-06-05 14:12 PDT, Alex Christensen
cdumez: review+
Alex Christensen
Comment 1 2015-06-04 12:02:13 PDT
Alex Christensen
Comment 2 2015-06-04 12:03:09 PDT
This patch does not actually enable data collection. Someone who knows the SPI should point out what I'm doing wrong. Maybe it's a strange ObjC problem. Maybe I'm using the SPI wrong.
Simon Fraser (smfr)
Comment 3 2015-06-04 14:39:58 PDT
Comment on attachment 254284 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=254284&action=review > Source/WebCore/platform/network/mac/ResourceHandleMac.mm:74 > +// FIXME: Move this to CFNetworkSPI.h. Seems like this would be a good time to do that.
Alex Christensen
Comment 4 2015-06-04 15:39:10 PDT
Alex Christensen
Comment 5 2015-06-04 17:01:20 PDT
Alex Christensen
Comment 6 2015-06-04 17:40:22 PDT
(In reply to comment #3) > Seems like this would be a good time to do that. I disagree. This is already cross-platform and platform dependent enough. I don't want to mess with breaking Windows in this patch.
Alex Christensen
Comment 7 2015-06-04 17:46:53 PDT
Chris Dumez
Comment 8 2015-06-05 11:19:08 PDT
Comment on attachment 254321 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=254321&action=review > Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp:65 > +#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000 Shouldn't this be in Platform.h ? > Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp:215 > +#if HAVE_TIMINGDATAOPTIONS #if HAVE(TIMINGDATAOPTIONS) > Source/WebCore/platform/network/mac/ResourceHandleMac.mm:68 > +#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) || (TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000) Shouldn't this be in Platform.h? > Source/WebCore/platform/network/mac/ResourceHandleMac.mm:79 > +#if !HAVE_TIMINGDATAOPTIONS #if !HAVE(TIMINGDATAOPTIONS) > Source/WebCore/platform/network/mac/ResourceHandleMac.mm:84 > +#if HAVE_TIMINGDATAOPTIONS #if HAVE(TIMINGDATAOPTIONS) > Source/WebCore/platform/network/mac/ResourceHandleMac.mm:236 > +#if HAVE_TIMINGDATAOPTIONS #if HAVE(TIMINGDATAOPTIONS) > Source/WebCore/platform/network/mac/ResourceHandleMac.mm:765 > +#if !HAVE_TIMINGDATAOPTIONS #if !HAVE(TIMINGDATAOPTIONS)
Alex Christensen
Comment 9 2015-06-05 13:30:09 PDT
Comment on attachment 254321 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=254321&action=review > Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp:218 > + CFDictionaryAddValue(propertiesDictionary.get(), CFSTR("kCFURLConnectionURLConnectionProperties"), &TimingDataOptionsEnableW3CNavigationTiming); timingDataOptionsDictionary here, not propertiesDictionary.
Alex Christensen
Comment 10 2015-06-05 14:00:09 PDT
Comment on attachment 254321 [details] Patch And I need to call CFNumberCreate on iOS.
Alex Christensen
Comment 11 2015-06-05 14:12:22 PDT
Chris Dumez
Comment 12 2015-06-05 14:26:18 PDT
Comment on attachment 254381 [details] Patch r=me
Alex Christensen
Comment 13 2015-06-05 14:38:38 PDT
Brent Fulgham
Comment 14 2015-06-25 16:08:47 PDT
Note You need to log in before you can comment on or make changes to this bug.