From f2370c0d09998f382364a9a58932cf717c28a764 Mon Sep 17 00:00:00 2001 From: Ilia Kirianovskii Date: Tue, 16 Feb 2016 11:35:48 +0300 Subject: Fix CXX :visited selector This patch fixes highlighting of visited links and now Acid3 test completely works (100 of 100). The reason is that VisitedLinkMaster must be initialized before a new RenderView will be created. Otherwise, it will not handle content::NOTIFICATION_RENDERER_PROCESS_CREATED event and therefore VisitedLinkSlave will be left uninitialized (salt_ is zero). Because of this reason CSS :visited selector was broken and didn't work. Change-Id: I769cd5dbae2ffb95fd128df634a54e562b9cc91d Reviewed-by: Ilia Kirianovskii Reviewed-by: Joerg Bornemann --- src/core/browser_context_adapter.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/browser_context_adapter.h') diff --git a/src/core/browser_context_adapter.h b/src/core/browser_context_adapter.h index b133eab65..1eeb88770 100644 --- a/src/core/browser_context_adapter.h +++ b/src/core/browser_context_adapter.h @@ -163,6 +163,7 @@ public: private: void updateCustomUrlSchemeHandlers(); + void resetVisitedLinksManager(); QString m_name; bool m_offTheRecord; -- cgit v1.2.3