Changeset 220429 in webkit


Ignore:
Timestamp:
Aug 8, 2017 4:53:04 PM (7 years ago)
Author:
beidson@apple.com
Message:

Don't enable default icon loading in WK1 for apps linked against old SDKs.
<rdar://problem/33724060> and https://bugs.webkit.org/show_bug.cgi?id=175342

Reviewed by Andy Estes.

  • Misc/WebKitVersionChecks.h:
  • WebCoreSupport/WebFrameLoaderClient.mm:

(WebFrameLoaderClient::getLoadDecisionForIcons): Don't do any icon loading unless

the app is linked against new WebKit with the new behavior.

Location:
trunk/Source/WebKitLegacy/mac
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKitLegacy/mac/ChangeLog

    r220370 r220429  
     12017-08-08  Brady Eidson  <beidson@apple.com>
     2
     3        Don't enable default icon loading in WK1 for apps linked against old SDKs.
     4        <rdar://problem/33724060> and https://bugs.webkit.org/show_bug.cgi?id=175342
     5
     6        Reviewed by Andy Estes.
     7
     8        * Misc/WebKitVersionChecks.h:
     9        * WebCoreSupport/WebFrameLoaderClient.mm:
     10        (WebFrameLoaderClient::getLoadDecisionForIcons): Don't do any icon loading unless
     11          the app is linked against new WebKit with the new behavior.
     12
    1132017-08-07  Devin Rousso  <drousso@apple.com>
    214
  • trunk/Source/WebKitLegacy/mac/Misc/WebKitVersionChecks.h

    r219283 r220429  
    6262#define WEBKIT_FIRST_VERSION_WITHOUT_LEGACY_BACKGROUNDSIZE_SHORTHAND_BEHAVIOR 0x02190100 // 537.1.0
    6363#define WEBKIT_FIRST_VERSION_WITH_INSECURE_CONTENT_BLOCKING 0x02590116 // 601.1.22
     64#define WEBKIT_FIRST_VERSION_WITH_DEFAULT_ICON_LOADING 0x025C0126 // 604.1.38
     65
    6466#else
    6567// <rdar://problem/6627758> Need to implement WebKitLinkedOnOrAfter
  • trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm

    r219743 r220429  
    5555#import "WebKitLogging.h"
    5656#import "WebKitNSStringExtras.h"
     57#import "WebKitVersionChecks.h"
    5758#import "WebNSURLExtras.h"
    5859#import "WebNavigationData.h"
     
    143144#import <WebCore/WAKWindow.h>
    144145#import <WebCore/WebCoreThreadMessage.h>
    145 #import "WebKitVersionChecks.h"
    146146#import "WebMailDelegate.h"
    147147#import "WebUIKitDelegate.h"
     
    22812281    ASSERT(documentLoader);
    22822282
     2283#if PLATFORM(MAC)
     2284    if (!WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_DEFAULT_ICON_LOADING)) {
     2285        for (auto& icon : icons)
     2286            documentLoader->didGetLoadDecisionForIcon(false, icon.second, 0);
     2287
     2288        return;
     2289    }
     2290#endif
     2291
    22832292    bool disallowedDueToImageLoadSettings = false;
    22842293    if (!frame->settings().loadsImagesAutomatically() && !frame->settings().loadsSiteIconsIgnoringImageLoadingSetting())
Note: See TracChangeset for help on using the changeset viewer.