Changeset 219200 in webkit


Ignore:
Timestamp:
Jul 6, 2017, 9:31:34 AM (8 years ago)
Author:
beidson@apple.com
Message:

Add logging to first attempt to use the WebIconDatabase class.
https://bugs.webkit.org/show_bug.cgi?id=174190

Reviewed by Andy Estes.

  • Misc/WebIconDatabase.mm:

(+[WebIconDatabase sharedIconDatabase]): On first call, log a warning of the bleak future of this non-API.

  • Misc/WebKitVersionChecks.h:
Location:
trunk/Source/WebKit/mac
Files:
3 edited

Legend:

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

    r219199 r219200  
     12017-07-06  Brady Eidson  <beidson@apple.com>
     2
     3        Add logging to first attempt to use the WebIconDatabase class.
     4        https://bugs.webkit.org/show_bug.cgi?id=174190
     5
     6        Reviewed by Andy Estes.
     7
     8        * Misc/WebIconDatabase.mm:
     9        (+[WebIconDatabase sharedIconDatabase]): On first call, log a warning of the bleak future of this non-API.
     10        * Misc/WebKitVersionChecks.h:
     11
    1122017-07-06  Matt Lewis  <jlewis3@apple.com>
    213
  • trunk/Source/WebKit/mac/Misc/WebIconDatabase.mm

    r206802 r219200  
    3535#import "WebKitLogging.h"
    3636#import "WebKitNSStringExtras.h"
     37#import "WebKitVersionChecks.h"
    3738#import "WebNSFileManagerExtras.h"
    3839#import "WebNSURLExtras.h"
     
    9899+ (WebIconDatabase *)sharedIconDatabase
    99100{
    100     static WebIconDatabase *database = nil;
    101     if (!database)
     101    static WebIconDatabase *database;
     102    static dispatch_once_t once;
     103    dispatch_once(&once, ^ {
     104        if (linkedOnOrAfter(SDKVersion::FirstWithWebIconDatabaseWarning))
     105            NSLog(@"+[WebIconDatabase sharedIconDatabase] is not API and should not be used. WebIconDatabase no longer handles icon loading and it will be removed in a future release.");
     106
    102107        database = [[WebIconDatabase alloc] init];
     108    });
     109
    103110    return database;
    104111}
  • trunk/Source/WebKit/mac/Misc/WebKitVersionChecks.h

    r214403 r219200  
    8585    FirstToExcludeLocalStorageFromBackup = DYLD_IOS_VERSION_11_0,
    8686#else
    87     FirstWithDropToNavigateDisallowedByDefault = DYLD_MACOSX_VERSION_10_13
     87    FirstWithDropToNavigateDisallowedByDefault = DYLD_MACOSX_VERSION_10_13,
     88    FirstWithWebIconDatabaseWarning = DYLD_MACOSX_VERSION_10_13,
    8889#endif
    8990};
Note: See TracChangeset for help on using the changeset viewer.