Source/WTF/ChangeLog
1
2019-05-10 Youenn Fablet <youenn@apple.com>
2
3
Use realpath for dlopen_preflight
4
https://bugs.webkit.org/show_bug.cgi?id=197803
5
6
Reviewed by NOBODY (OOPS!).
7
8
* wtf/cocoa/SoftLinking.h:
9
1
10
2019-05-08 Alex Christensen <achristensen@webkit.org>
2
11
3
12
Add SPI to set HSTS storage directory
Source/WTF/wtf/cocoa/SoftLinking.h
24
24
25
25
#pragma once
26
26
27
#import <wtf/Assertions.h>
28
27
#import <dlfcn.h>
29
28
#import <objc/runtime.h>
29
#import <wtf/Assertions.h>
30
#import <wtf/FileSystem.h>
30
31
31
32
#pragma mark - Soft-link macros for use within a single source file
32
33
66
67
#define SOFT_LINK_FRAMEWORK_OPTIONAL_PREFLIGHT(framework) \
67
68
static bool framework##LibraryIsAvailable() \
68
69
{ \
69
static bool frameworkLibraryIsAvailable = dlopen_preflight("/System/Library/Frameworks/" #framework ".framework/" #framework); \
70
static bool frameworkLibraryIsAvailable = dlopen_preflight(
FileSystem::realPath(
"/System/Library/Frameworks/" #framework ".framework/" #framework
""_s).utf8().data()
); \
70
71
return frameworkLibraryIsAvailable; \
71
72
}
72
73