WebKit Bugzilla
Attachment 369617 Details for
Bug 197803
: [Mac] Use realpath for dlopen_preflight
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-197803-20190510162253.patch (text/plain), 1.56 KB, created by
youenn fablet
on 2019-05-10 16:22:54 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
youenn fablet
Created:
2019-05-10 16:22:54 PDT
Size:
1.56 KB
patch
obsolete
>Subversion Revision: 245079 >diff --git a/Source/WTF/ChangeLog b/Source/WTF/ChangeLog >index 6f263fe8e3c46f1b618fd717f2c3840dde27bea8..9cb9591395264e6baba4e2c7deccd088a795e3b5 100644 >--- a/Source/WTF/ChangeLog >+++ b/Source/WTF/ChangeLog >@@ -1,3 +1,12 @@ >+2019-05-10 Youenn Fablet <youenn@apple.com> >+ >+ Use realpath for dlopen_preflight >+ https://bugs.webkit.org/show_bug.cgi?id=197803 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * wtf/cocoa/SoftLinking.h: >+ > 2019-05-08 Alex Christensen <achristensen@webkit.org> > > Add SPI to set HSTS storage directory >diff --git a/Source/WTF/wtf/cocoa/SoftLinking.h b/Source/WTF/wtf/cocoa/SoftLinking.h >index 47fb78ad826ecc0ad84975eee03985c24f4034a6..2234f13b8123caded60e2d7e7c8c5b1b94594516 100644 >--- a/Source/WTF/wtf/cocoa/SoftLinking.h >+++ b/Source/WTF/wtf/cocoa/SoftLinking.h >@@ -24,9 +24,10 @@ > > #pragma once > >-#import <wtf/Assertions.h> > #import <dlfcn.h> > #import <objc/runtime.h> >+#import <wtf/Assertions.h> >+#import <wtf/FileSystem.h> > > #pragma mark - Soft-link macros for use within a single source file > >@@ -66,7 +67,7 @@ > #define SOFT_LINK_FRAMEWORK_OPTIONAL_PREFLIGHT(framework) \ > static bool framework##LibraryIsAvailable() \ > { \ >- static bool frameworkLibraryIsAvailable = dlopen_preflight("/System/Library/Frameworks/" #framework ".framework/" #framework); \ >+ static bool frameworkLibraryIsAvailable = dlopen_preflight(FileSystem::realPath("/System/Library/Frameworks/" #framework ".framework/" #framework ""_s).utf8().data()); \ > return frameworkLibraryIsAvailable; \ > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 197803
:
369617
|
369629
|
369745
|
369763