<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[279078] trunk/Source</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/279078">279078</a></dd>
<dt>Author</dt> <dd>megan_gardner@apple.com</dd>
<dt>Date</dt> <dd>2021-06-21 13:44:49 -0700 (Mon, 21 Jun 2021)</dd>
</dl>

<h3>Log Message</h3>
<pre>AppHighlights disappear on page reload
https://bugs.webkit.org/show_bug.cgi?id=227141
rdar://78190331

Reviewed by Devin Rousso.

Source/WebCore:

Preserve the state of highlight visibility so that is correct on page-reload.

* dom/Document.cpp:
(WebCore::Document::appHighlightRegister):
* page/ChromeClient.h:
(WebCore::ChromeClient::appHighlightsVisiblility const):

Source/WebKit:

When a page is reloaded, a new set of highlights is loaded, but the state of visibility of
the highlights is not preserved.
We need to preserve the state of highlights so they are correctly shown on reload.

* Shared/WebPageCreationParameters.cpp:
(WebKit::WebPageCreationParameters::encode const):
(WebKit::WebPageCreationParameters::decode):
* Shared/WebPageCreationParameters.h:
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::appHighlightsVisiblility const):
* WebProcess/WebCoreSupport/WebChromeClient.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::m_appHighlightsVisible):
(WebKit::WebPage::setAppHighlightsVisibility):
(WebKit::m_lastNavigationWasAppBound): Deleted.
* WebProcess/WebPage/WebPage.h:
(WebKit::WebPage::appHighlightsVisiblility const):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoredomDocumentcpp">trunk/Source/WebCore/dom/Document.cpp</a></li>
<li><a href="#trunkSourceWebCorepageChromeClienth">trunk/Source/WebCore/page/ChromeClient.h</a></li>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitSharedWebPageCreationParameterscpp">trunk/Source/WebKit/Shared/WebPageCreationParameters.cpp</a></li>
<li><a href="#trunkSourceWebKitSharedWebPageCreationParametersh">trunk/Source/WebKit/Shared/WebPageCreationParameters.h</a></li>
<li><a href="#trunkSourceWebKitUIProcessWebPageProxycpp">trunk/Source/WebKit/UIProcess/WebPageProxy.cpp</a></li>
<li><a href="#trunkSourceWebKitWebProcessWebCoreSupportWebChromeClientcpp">trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp</a></li>
<li><a href="#trunkSourceWebKitWebProcessWebCoreSupportWebChromeClienth">trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h</a></li>
<li><a href="#trunkSourceWebKitWebProcessWebPageWebPagecpp">trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp</a></li>
<li><a href="#trunkSourceWebKitWebProcessWebPageWebPageh">trunk/Source/WebKit/WebProcess/WebPage/WebPage.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (279077 => 279078)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog   2021-06-21 19:37:00 UTC (rev 279077)
+++ trunk/Source/WebCore/ChangeLog      2021-06-21 20:44:49 UTC (rev 279078)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2021-06-21  Megan Gardner  <megan_gardner@apple.com>
+
+        AppHighlights disappear on page reload
+        https://bugs.webkit.org/show_bug.cgi?id=227141
+        rdar://78190331
+
+        Reviewed by Devin Rousso.
+
+        Preserve the state of highlight visibility so that is correct on page-reload.
+
+        * dom/Document.cpp:
+        (WebCore::Document::appHighlightRegister):
+        * page/ChromeClient.h:
+        (WebCore::ChromeClient::appHighlightsVisiblility const):
+
</ins><span class="cx"> 2021-06-21  Rob Buis  <rbuis@igalia.com>
</span><span class="cx"> 
</span><span class="cx">         CSSOM test for serializing font-variant fails
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.cpp (279077 => 279078)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.cpp    2021-06-21 19:37:00 UTC (rev 279077)
+++ trunk/Source/WebCore/dom/Document.cpp       2021-06-21 20:44:49 UTC (rev 279078)
</span><span class="lines">@@ -2822,8 +2822,11 @@
</span><span class="cx"> #if ENABLE(APP_HIGHLIGHTS)
</span><span class="cx"> HighlightRegister& Document::appHighlightRegister()
</span><span class="cx"> {
</span><del>-    if (!m_appHighlightRegister)
</del><ins>+    if (!m_appHighlightRegister) {
</ins><span class="cx">         m_appHighlightRegister = HighlightRegister::create();
</span><ins>+        if (auto* currentPage = page())
+            m_appHighlightRegister->setHighlightVisibility(currentPage->chrome().client().appHighlightsVisiblility());
+    }
</ins><span class="cx">     return *m_appHighlightRegister;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageChromeClienth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/ChromeClient.h (279077 => 279078)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/ChromeClient.h 2021-06-21 19:37:00 UTC (rev 279077)
+++ trunk/Source/WebCore/page/ChromeClient.h    2021-06-21 20:44:49 UTC (rev 279078)
</span><span class="lines">@@ -35,6 +35,7 @@
</span><span class="cx"> #include "GraphicsContext.h"
</span><span class="cx"> #include "GraphicsLayer.h"
</span><span class="cx"> #include "HTMLMediaElementEnums.h"
</span><ins>+#include "HighlightVisibility.h"
</ins><span class="cx"> #include "HostWindow.h"
</span><span class="cx"> #include "Icon.h"
</span><span class="cx"> #include "ImageBuffer.h"
</span><span class="lines">@@ -236,6 +237,10 @@
</span><span class="cx">     virtual void themeColorChanged() const { }
</span><span class="cx">     virtual void pageExtendedBackgroundColorDidChange() const { }
</span><span class="cx">     virtual void sampledPageTopColorChanged() const { }
</span><ins>+    
+#if ENABLE(APP_HIGHLIGHTS)
+    virtual WebCore::HighlightVisibility appHighlightsVisiblility() const { return HighlightVisibility::Hidden; };
+#endif
</ins><span class="cx"> 
</span><span class="cx">     virtual void exceededDatabaseQuota(Frame&, const String& databaseName, DatabaseDetails) = 0;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (279077 => 279078)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog    2021-06-21 19:37:00 UTC (rev 279077)
+++ trunk/Source/WebKit/ChangeLog       2021-06-21 20:44:49 UTC (rev 279078)
</span><span class="lines">@@ -1,3 +1,29 @@
</span><ins>+2021-06-21  Megan Gardner  <megan_gardner@apple.com>
+
+        AppHighlights disappear on page reload
+        https://bugs.webkit.org/show_bug.cgi?id=227141
+        rdar://78190331
+
+        Reviewed by Devin Rousso.
+
+        When a page is reloaded, a new set of highlights is loaded, but the state of visibility of
+        the highlights is not preserved.
+        We need to preserve the state of highlights so they are correctly shown on reload.
+
+        * Shared/WebPageCreationParameters.cpp:
+        (WebKit::WebPageCreationParameters::encode const):
+        (WebKit::WebPageCreationParameters::decode):
+        * Shared/WebPageCreationParameters.h:
+        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
+        (WebKit::WebChromeClient::appHighlightsVisiblility const):
+        * WebProcess/WebCoreSupport/WebChromeClient.h:
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::m_appHighlightsVisible):
+        (WebKit::WebPage::setAppHighlightsVisibility):
+        (WebKit::m_lastNavigationWasAppBound): Deleted.
+        * WebProcess/WebPage/WebPage.h:
+        (WebKit::WebPage::appHighlightsVisiblility const):
+
</ins><span class="cx"> 2021-06-21  Alex Christensen  <achristensen@webkit.org>
</span><span class="cx"> 
</span><span class="cx">         Break ref cycle between API::HTTPCookieStore and WebKit::WebsiteDataStore
</span></span></pre></div>
<a id="trunkSourceWebKitSharedWebPageCreationParameterscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/Shared/WebPageCreationParameters.cpp (279077 => 279078)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/Shared/WebPageCreationParameters.cpp 2021-06-21 19:37:00 UTC (rev 279077)
+++ trunk/Source/WebKit/Shared/WebPageCreationParameters.cpp    2021-06-21 20:44:49 UTC (rev 279078)
</span><span class="lines">@@ -185,6 +185,10 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     encoder << allowsDeprecatedSynchronousXMLHttpRequestDuringUnload;
</span><span class="cx"> #endif
</span><ins>+
+#if ENABLE(APP_HIGHLIGHTS)
+    encoder << appHighlightsVisible;
+#endif
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> std::optional<WebPageCreationParameters> WebPageCreationParameters::decode(IPC::Decoder& decoder)
</span><span class="lines">@@ -598,6 +602,11 @@
</span><span class="cx">     if (!decoder.decode(parameters.allowsDeprecatedSynchronousXMLHttpRequestDuringUnload))
</span><span class="cx">         return std::nullopt;
</span><span class="cx"> #endif
</span><ins>+    
+#if ENABLE(APP_HIGHLIGHTS)
+    if (!decoder.decode(parameters.appHighlightsVisible))
+        return std::nullopt;
+#endif
</ins><span class="cx"> 
</span><span class="cx">     return parameters;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKitSharedWebPageCreationParametersh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/Shared/WebPageCreationParameters.h (279077 => 279078)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/Shared/WebPageCreationParameters.h   2021-06-21 19:37:00 UTC (rev 279077)
+++ trunk/Source/WebKit/Shared/WebPageCreationParameters.h      2021-06-21 20:44:49 UTC (rev 279078)
</span><span class="lines">@@ -38,6 +38,7 @@
</span><span class="cx"> #include <WebCore/Color.h>
</span><span class="cx"> #include <WebCore/DestinationColorSpace.h>
</span><span class="cx"> #include <WebCore/FloatSize.h>
</span><ins>+#include <WebCore/HighlightVisibility.h>
</ins><span class="cx"> #include <WebCore/IntSize.h>
</span><span class="cx"> #include <WebCore/LayoutMilestone.h>
</span><span class="cx"> #include <WebCore/MediaProducer.h>
</span><span class="lines">@@ -255,6 +256,11 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     bool allowsDeprecatedSynchronousXMLHttpRequestDuringUnload { false };
</span><span class="cx"> #endif
</span><ins>+    
+#if ENABLE(APP_HIGHLIGHTS)
+    WebCore::HighlightVisibility appHighlightsVisible { WebCore::HighlightVisibility::Hidden };
+#endif
+    
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebKit
</span></span></pre></div>
<a id="trunkSourceWebKitUIProcessWebPageProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/UIProcess/WebPageProxy.cpp (279077 => 279078)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/UIProcess/WebPageProxy.cpp   2021-06-21 19:37:00 UTC (rev 279077)
+++ trunk/Source/WebKit/UIProcess/WebPageProxy.cpp      2021-06-21 20:44:49 UTC (rev 279078)
</span><span class="lines">@@ -301,6 +301,10 @@
</span><span class="cx"> #include "MediaSessionCoordinatorProxyPrivate.h"
</span><span class="cx"> #include "RemoteMediaSessionCoordinatorProxy.h"
</span><span class="cx"> 
</span><ins>+#if ENABLE(APP_HIGHLIGHTS)
+#include "HighlightVisibility.h"
+#endif
+
</ins><span class="cx"> #if USE(APPLE_INTERNAL_SDK)
</span><span class="cx"> #import <WebKitAdditions/WKCoordinatorAdditions.h>
</span><span class="cx"> #else
</span><span class="lines">@@ -8210,6 +8214,10 @@
</span><span class="cx">     // FIXME: This is also being passed over the to WebProcess via the PreferencesStore.
</span><span class="cx">     parameters.allowsDeprecatedSynchronousXMLHttpRequestDuringUnload = allowsDeprecatedSynchronousXMLHttpRequestDuringUnload();
</span><span class="cx"> #endif
</span><ins>+    
+#if ENABLE(APP_HIGHLIGHTS)
+    parameters.appHighlightsVisible = appHighlightsVisibility() ? HighlightVisibility::Visible : HighlightVisibility::Hidden;
+#endif
</ins><span class="cx"> 
</span><span class="cx">     return parameters;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessWebCoreSupportWebChromeClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp (279077 => 279078)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp        2021-06-21 19:37:00 UTC (rev 279077)
+++ trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp   2021-06-21 20:44:49 UTC (rev 279078)
</span><span class="lines">@@ -1173,6 +1173,13 @@
</span><span class="cx">     m_page.sampledPageTopColorChanged();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+#if ENABLE(APP_HIGHLIGHTS)
+WebCore::HighlightVisibility WebChromeClient::appHighlightsVisiblility() const
+{
+    return m_page.appHighlightsVisiblility();
+}
+#endif
+
</ins><span class="cx"> void WebChromeClient::wheelEventHandlersChanged(bool hasHandlers)
</span><span class="cx"> {
</span><span class="cx">     m_page.wheelEventHandlersChanged(hasHandlers);
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessWebCoreSupportWebChromeClienth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h (279077 => 279078)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h  2021-06-21 19:37:00 UTC (rev 279077)
+++ trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h     2021-06-21 20:44:49 UTC (rev 279078)
</span><span class="lines">@@ -334,6 +334,10 @@
</span><span class="cx">     void pageExtendedBackgroundColorDidChange() const final;
</span><span class="cx">     void sampledPageTopColorChanged() const final;
</span><span class="cx">     
</span><ins>+#if ENABLE(APP_HIGHLIGHTS)
+    WebCore::HighlightVisibility appHighlightsVisiblility() const final;
+#endif
+    
</ins><span class="cx">     void wheelEventHandlersChanged(bool) final;
</span><span class="cx"> 
</span><span class="cx">     String plugInStartLabelTitle(const String& mimeType) const final;
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessWebPageWebPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp (279077 => 279078)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp       2021-06-21 19:37:00 UTC (rev 279077)
+++ trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp  2021-06-21 20:44:49 UTC (rev 279078)
</span><span class="lines">@@ -535,6 +535,9 @@
</span><span class="cx">     , m_limitsNavigationsToAppBoundDomains(parameters.limitsNavigationsToAppBoundDomains)
</span><span class="cx"> #endif
</span><span class="cx">     , m_lastNavigationWasAppBound(parameters.lastNavigationWasAppBound)
</span><ins>+#if ENABLE(APP_HIGHLIGHTS)
+    , m_appHighlightsVisible(parameters.appHighlightsVisible)
+#endif
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(m_identifier);
</span><span class="cx"> 
</span><span class="lines">@@ -7617,6 +7620,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebPage::setAppHighlightsVisibility(WebCore::HighlightVisibility appHighlightVisibility)
</span><span class="cx"> {
</span><ins>+    m_appHighlightsVisible = appHighlightVisibility;
</ins><span class="cx">     for (RefPtr<Frame> frame = m_mainFrame->coreFrame(); frame; frame = frame->tree().traverseNextRendered()) {
</span><span class="cx">         if (auto document = makeRefPtr(frame->document()))
</span><span class="cx">             document->appHighlightRegister().setHighlightVisibility(appHighlightVisibility);
</span></span></pre></div>
<a id="trunkSourceWebKitWebProcessWebPageWebPageh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebProcess/WebPage/WebPage.h (279077 => 279078)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebProcess/WebPage/WebPage.h 2021-06-21 19:37:00 UTC (rev 279077)
+++ trunk/Source/WebKit/WebProcess/WebPage/WebPage.h    2021-06-21 20:44:49 UTC (rev 279078)
</span><span class="lines">@@ -1430,6 +1430,7 @@
</span><span class="cx"> #if ENABLE(APP_HIGHLIGHTS)
</span><span class="cx">     WebCore::CreateNewGroupForHighlight highlightIsNewGroup() const { return m_highlightIsNewGroup; }
</span><span class="cx">     WebCore::HighlightRequestOriginatedInApp highlightRequestOriginatedInApp() const { return m_highlightRequestOriginatedInApp; }
</span><ins>+    WebCore::HighlightVisibility appHighlightsVisiblility() const { return m_appHighlightsVisible; }
</ins><span class="cx"> 
</span><span class="cx">     bool createAppHighlightInSelectedRange(WebCore::CreateNewGroupForHighlight, WebCore::HighlightRequestOriginatedInApp);
</span><span class="cx">     void restoreAppHighlightsAndScrollToIndex(const Vector<SharedMemory::IPCHandle>&&, const std::optional<unsigned> index);
</span><span class="lines">@@ -2352,6 +2353,10 @@
</span><span class="cx"> #if ENABLE(WEBXR) && PLATFORM(COCOA)
</span><span class="cx">     std::unique_ptr<PlatformXRSystemProxy> m_xrSystemProxy;
</span><span class="cx"> #endif
</span><ins>+    
+#if ENABLE(APP_HIGHLIGHTS)
+    WebCore::HighlightVisibility m_appHighlightsVisible { false };
+#endif
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> #if !PLATFORM(IOS_FAMILY)
</span></span></pre>
</div>
</div>

</body>
</html>