Title: [219701] trunk/Source
- Revision
- 219701
- Author
- [email protected]
- Date
- 2017-07-20 13:52:22 -0700 (Thu, 20 Jul 2017)
Log Message
Regression(ITP): Can no longer log in on abc.go.com
https://bugs.webkit.org/show_bug.cgi?id=174533
<rdar://problem/33325881>
Reviewed by Geoffrey Garen.
Source/WebCore:
Add quirk for sp.auth.adobe.com which is used for SSO by web sites such as
abc.go.com. This would otherwise cause adobe.com to be identified as a
tracker and log in on abc.go.com would break.
No new tests, tested manually on abc.go.com.
* loader/ResourceLoadObserver.cpp:
(WebCore::resourceNeedsSSOQuirk):
(WebCore::ResourceLoadObserver::logSubresourceLoading):
Source/WebKit:
Bump statistics database version to blow away any existing statistics. Without this, SSO providers
for which we added a quirk may already be in the database and identified as trackers. The quirk
merely prevents the specified SSO providers from being identified as trackers.
* UIProcess/WebResourceLoadStatisticsStore.cpp:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (219700 => 219701)
--- trunk/Source/WebCore/ChangeLog 2017-07-20 20:47:53 UTC (rev 219700)
+++ trunk/Source/WebCore/ChangeLog 2017-07-20 20:52:22 UTC (rev 219701)
@@ -1,3 +1,21 @@
+2017-07-20 Chris Dumez <[email protected]>
+
+ Regression(ITP): Can no longer log in on abc.go.com
+ https://bugs.webkit.org/show_bug.cgi?id=174533
+ <rdar://problem/33325881>
+
+ Reviewed by Geoffrey Garen.
+
+ Add quirk for sp.auth.adobe.com which is used for SSO by web sites such as
+ abc.go.com. This would otherwise cause adobe.com to be identified as a
+ tracker and log in on abc.go.com would break.
+
+ No new tests, tested manually on abc.go.com.
+
+ * loader/ResourceLoadObserver.cpp:
+ (WebCore::resourceNeedsSSOQuirk):
+ (WebCore::ResourceLoadObserver::logSubresourceLoading):
+
2017-07-20 Antoine Quint <[email protected]>
Turn tests at media/modern-media-controls/start-support back on
Modified: trunk/Source/WebCore/loader/ResourceLoadObserver.cpp (219700 => 219701)
--- trunk/Source/WebCore/loader/ResourceLoadObserver.cpp 2017-07-20 20:47:53 UTC (rev 219700)
+++ trunk/Source/WebCore/loader/ResourceLoadObserver.cpp 2017-07-20 20:52:22 UTC (rev 219701)
@@ -135,7 +135,16 @@
if (subframeUnderTopFrameOriginsResult.isNewEntry)
scheduleNotificationIfNeeded();
}
-
+
+// FIXME: This quirk was added to address <rdar://problem/33325881> and should be removed once content is fixed.
+static bool resourceNeedsSSOQuirk(const URL& url)
+{
+ static const auto ssoOriginsHash = makeNeverDestroyed(HashSet<String, ASCIICaseInsensitiveHash> {
+ "sp.auth.adobe.com"
+ });
+ return ssoOriginsHash.get().contains(url.host());
+}
+
void ResourceLoadObserver::logSubresourceLoading(const Frame* frame, const ResourceRequest& newRequest, const ResourceResponse& redirectResponse)
{
ASSERT(frame->page());
@@ -161,6 +170,9 @@
if (targetPrimaryDomain == mainFramePrimaryDomain || (isRedirect && targetPrimaryDomain == sourcePrimaryDomain))
return;
+ if (resourceNeedsSSOQuirk(targetURL))
+ return;
+
bool shouldCallNotificationCallback = false;
{
auto& targetStatistics = ensureResourceStatisticsForPrimaryDomain(targetPrimaryDomain);
Modified: trunk/Source/WebKit/ChangeLog (219700 => 219701)
--- trunk/Source/WebKit/ChangeLog 2017-07-20 20:47:53 UTC (rev 219700)
+++ trunk/Source/WebKit/ChangeLog 2017-07-20 20:52:22 UTC (rev 219701)
@@ -1,3 +1,17 @@
+2017-07-20 Chris Dumez <[email protected]>
+
+ Regression(ITP): Can no longer log in on abc.go.com
+ https://bugs.webkit.org/show_bug.cgi?id=174533
+ <rdar://problem/33325881>
+
+ Reviewed by Geoffrey Garen.
+
+ Bump statistics database version to blow away any existing statistics. Without this, SSO providers
+ for which we added a quirk may already be in the database and identified as trackers. The quirk
+ merely prevents the specified SSO providers from being identified as trackers.
+
+ * UIProcess/WebResourceLoadStatisticsStore.cpp:
+
2017-07-19 Simon Fraser <[email protected]>
getBoundingClientRects not updated for programmatic scrolls
Modified: trunk/Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp (219700 => 219701)
--- trunk/Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp 2017-07-20 20:47:53 UTC (rev 219700)
+++ trunk/Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp 2017-07-20 20:52:22 UTC (rev 219701)
@@ -46,7 +46,7 @@
namespace WebKit {
constexpr unsigned operatingDatesWindow { 30 };
-constexpr unsigned statisticsModelVersion { 7 };
+constexpr unsigned statisticsModelVersion { 8 };
constexpr unsigned maxImportance { 3 };
template<typename T> static inline String isolatedPrimaryDomain(const T& value)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes