⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243809 in webkit


Ignore:
Timestamp:
Apr 3, 2019, 10:23:33 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Resurrect and fix layout test http/tests/adClickAttribution/store-ad-click-attribution.html
https://bugs.webkit.org/show_bug.cgi?id=196476

Patch by Alex Christensen <achristensen@webkit.org> on 2019-04-03
Reviewed by Chris Dumez.

Source/WebKit:

Re-apply a change I reverted in r241754 now that it's safe to do so.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::didCommitLoadForFrame):

LayoutTests:

  • http/tests/adClickAttribution/store-ad-click-attribution-expected.txt:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r243808 r243809  
     12019-04-03  Alex Christensen  <achristensen@webkit.org>
     2
     3        Resurrect and fix layout test http/tests/adClickAttribution/store-ad-click-attribution.html
     4        https://bugs.webkit.org/show_bug.cgi?id=196476
     5
     6        Reviewed by Chris Dumez.
     7
     8        * http/tests/adClickAttribution/store-ad-click-attribution-expected.txt:
     9
    1102019-04-03  Daniel Bates  <dabates@apple.com>
    211
  • trunk/LayoutTests/http/tests/adClickAttribution/store-ad-click-attribution-expected.txt

    r243767 r243809  
    22
    33
    4 No stored Ad Click Attribution data.
     4WebCore::AdClickAttribution 1
     5Source: 127.0.0.1
     6Destination: localhost
     7Campaign ID: 3
     8No conversion data.
  • trunk/Source/WebKit/ChangeLog

    r243808 r243809  
     12019-04-03  Alex Christensen  <achristensen@webkit.org>
     2
     3        Resurrect and fix layout test http/tests/adClickAttribution/store-ad-click-attribution.html
     4        https://bugs.webkit.org/show_bug.cgi?id=196476
     5
     6        Reviewed by Chris Dumez.
     7
     8        Re-apply a change I reverted in r241754 now that it's safe to do so.
     9
     10        * UIProcess/WebPageProxy.cpp:
     11        (WebKit::WebPageProxy::didCommitLoadForFrame):
     12
    1132019-04-03  Daniel Bates  <dabates@apple.com>
    214
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r243797 r243809  
    41464146    frame->didCommitLoad(mimeType, webCertificateInfo, containsPluginDocument);
    41474147
     4148    if (navigation && frame->isMainFrame()) {
     4149        if (auto& adClickAttribution = navigation->adClickAttribution()) {
     4150            if (adClickAttribution->destination().matches(frame->url()))
     4151                m_process->processPool().sendToNetworkingProcess(Messages::NetworkProcess::StoreAdClickAttribution(m_websiteDataStore->sessionID(), *adClickAttribution));
     4152        }
     4153    }
     4154
    41484155    if (frame->isMainFrame()) {
    41494156        m_mainFrameHasCustomContentProvider = frameHasCustomContentProvider;
Note: See TracChangeset for help on using the changeset viewer.