Changeset 244601 in webkit


Ignore:
Timestamp:
Apr 24, 2019 12:10:50 PM (5 years ago)
Author:
Wenson Hsieh
Message:

Plumb the navigation's request when determining recommended compatibility mode
https://bugs.webkit.org/show_bug.cgi?id=197225
<rdar://problem/48389965>

Reviewed by Alex Christensen.

Adds a new argument to effectiveCompatibilityModeAfterAdjustingPolicies.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::decidePolicyForNavigationAction):
(WebKit::WebPageProxy::effectiveCompatibilityModeAfterAdjustingPolicies):

  • UIProcess/WebPageProxy.h:
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r244600 r244601  
     12019-04-24  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Plumb the navigation's request when determining recommended compatibility mode
     4        https://bugs.webkit.org/show_bug.cgi?id=197225
     5        <rdar://problem/48389965>
     6
     7        Reviewed by Alex Christensen.
     8
     9        Adds a new argument to effectiveCompatibilityModeAfterAdjustingPolicies.
     10
     11        * UIProcess/WebPageProxy.cpp:
     12        (WebKit::WebPageProxy::decidePolicyForNavigationAction):
     13        (WebKit::WebPageProxy::effectiveCompatibilityModeAfterAdjustingPolicies):
     14        * UIProcess/WebPageProxy.h:
     15
    1162019-04-24  Tim Horton  <timothy_horton@apple.com>
    217
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r244590 r244601  
    46014601                }
    46024602                if (policies)
    4603                     navigation->setEffectiveCompatibilityMode(effectiveCompatibilityModeAfterAdjustingPolicies(*policies));
     4603                    navigation->setEffectiveCompatibilityMode(effectiveCompatibilityModeAfterAdjustingPolicies(*policies, navigation->originalRequest()));
    46044604            }
    46054605            receivedNavigationPolicyDecision(policyAction, navigation.get(), processSwapRequestedByClient, frame, policies.get(), WTFMove(sender));
     
    90019001#if !PLATFORM(IOS_FAMILY) || !USE(APPLE_INTERNAL_SDK)
    90029002
    9003 WebCompatibilityMode WebPageProxy::effectiveCompatibilityModeAfterAdjustingPolicies(API::WebsitePolicies&)
     9003WebCompatibilityMode WebPageProxy::effectiveCompatibilityModeAfterAdjustingPolicies(API::WebsitePolicies&, const WebCore::ResourceRequest&)
    90049004{
    90059005    return WebCompatibilityMode::Recommended;
  • trunk/Source/WebKit/UIProcess/WebPageProxy.h

    r244582 r244601  
    16261626    void beginSafeBrowsingCheck(const URL&, bool, WebFramePolicyListenerProxy&);
    16271627
    1628     WebCompatibilityMode effectiveCompatibilityModeAfterAdjustingPolicies(API::WebsitePolicies&);
     1628    WebCompatibilityMode effectiveCompatibilityModeAfterAdjustingPolicies(API::WebsitePolicies&, const WebCore::ResourceRequest&);
    16291629
    16301630    void willSubmitForm(uint64_t frameID, uint64_t sourceFrameID, const Vector<std::pair<String, String>>& textFieldValues, uint64_t listenerID, const UserData&);
Note: See TracChangeset for help on using the changeset viewer.