REGRESSION(223307): ASSERTION in WebCore::ResourceLoadObserver::logUserInteractionWit...
[WebKit-https.git] / Source / WebCore / loader / ResourceLoadObserver.cpp
index a2b1684..d3c5511 100644 (file)
@@ -274,11 +274,11 @@ void ResourceLoadObserver::logWebSocketLoading(const Frame* frame, const URL& ta
 
 void ResourceLoadObserver::logUserInteractionWithReducedTimeResolution(const Document& document)
 {
-    ASSERT(document.page());
-
     if (!shouldLog(document.page()))
         return;
 
+    ASSERT(document.page());
+
     auto& url = document.url();
     if (url.isBlankURL() || url.isEmpty())
         return;