Title: [250529] branches/safari-608-branch/Source/WebCore
- Revision
- 250529
- Author
- [email protected]
- Date
- 2019-09-30 14:08:59 -0700 (Mon, 30 Sep 2019)
Log Message
Cherry-pick r250483. rdar://problem/55825351
[Experiment][iOS] Add temporary HTTP header to distinguish iPads for requests to Google
https://bugs.webkit.org/show_bug.cgi?id=202335
<rdar://problem/55790994>
Reviewed by Maciej Stachowiak.
* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::requestResource):
* platform/network/HTTPHeaderNames.in:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250483 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-608-branch/Source/WebCore/ChangeLog (250528 => 250529)
--- branches/safari-608-branch/Source/WebCore/ChangeLog 2019-09-30 21:01:19 UTC (rev 250528)
+++ branches/safari-608-branch/Source/WebCore/ChangeLog 2019-09-30 21:08:59 UTC (rev 250529)
@@ -1,5 +1,33 @@
2019-09-30 Kocsen Chung <[email protected]>
+ Cherry-pick r250483. rdar://problem/55825351
+
+ [Experiment][iOS] Add temporary HTTP header to distinguish iPads for requests to Google
+ https://bugs.webkit.org/show_bug.cgi?id=202335
+ <rdar://problem/55790994>
+
+ Reviewed by Maciej Stachowiak.
+
+ * loader/cache/CachedResourceLoader.cpp:
+ (WebCore::CachedResourceLoader::requestResource):
+ * platform/network/HTTPHeaderNames.in:
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250483 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2019-09-28 Chris Dumez <[email protected]>
+
+ [Experiment][iOS] Add temporary HTTP header to distinguish iPads for requests to Google
+ https://bugs.webkit.org/show_bug.cgi?id=202335
+ <rdar://problem/55790994>
+
+ Reviewed by Maciej Stachowiak.
+
+ * loader/cache/CachedResourceLoader.cpp:
+ (WebCore::CachedResourceLoader::requestResource):
+ * platform/network/HTTPHeaderNames.in:
+
+2019-09-30 Kocsen Chung <[email protected]>
+
Cherry-pick r250488. rdar://problem/55826334
Crash when removing the target element while animating its attributes
Modified: branches/safari-608-branch/Source/WebCore/loader/cache/CachedResourceLoader.cpp (250528 => 250529)
--- branches/safari-608-branch/Source/WebCore/loader/cache/CachedResourceLoader.cpp 2019-09-30 21:01:19 UTC (rev 250528)
+++ branches/safari-608-branch/Source/WebCore/loader/cache/CachedResourceLoader.cpp 2019-09-30 21:08:59 UTC (rev 250529)
@@ -87,6 +87,10 @@
#include "CachedTextTrack.h"
#endif
+#if PLATFORM(IOS_FAMILY)
+#include "Device.h"
+#endif
+
#undef RELEASE_LOG_IF_ALLOWED
#define RELEASE_LOG_IF_ALLOWED(fmt, ...) RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), Network, "%p - CachedResourceLoader::" fmt, this, ##__VA_ARGS__)
@@ -867,6 +871,18 @@
}
}
+ // FIXME: This is temporary for <rdar://problem/55790994>.
+#if PLATFORM(IOS) && !PLATFORM(IOSMAC)
+ if (!sessionID().isEphemeral() && deviceHasIPadCapability() && request.resourceRequest().url().protocolIs("https")) {
+ RegistrableDomain registrableDomain(request.resourceRequest().url());
+ if (registrableDomain.string().startsWith("google.")) {
+ auto host = request.resourceRequest().url().host();
+ if (host.startsWithIgnoringASCIICase("google.") || host.startsWithIgnoringASCIICase("www.google.") || host.startsWithIgnoringASCIICase("images.google."))
+ request.resourceRequest().setHTTPHeaderField(HTTPHeaderName::XTempTablet, "1"_s);
+ }
+ }
+#endif
+
LoadTiming loadTiming;
loadTiming.markStartTimeAndFetchStart();
InitiatorContext initiatorContext = request.options().initiatorContext;
Modified: branches/safari-608-branch/Source/WebCore/platform/network/HTTPHeaderNames.in (250528 => 250529)
--- branches/safari-608-branch/Source/WebCore/platform/network/HTTPHeaderNames.in 2019-09-30 21:01:19 UTC (rev 250528)
+++ branches/safari-608-branch/Source/WebCore/platform/network/HTTPHeaderNames.in 2019-09-30 21:08:59 UTC (rev 250529)
@@ -104,6 +104,7 @@
X-WebKit-CSP
X-WebKit-CSP-Report-Only
X-XSS-Protection
+X-Temp-Tablet
// These headers are specific to GStreamer.
Icy-MetaInt
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes