This repository was archived by the owner on Jun 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change
1
+ 2020-07-02 Said Abou-Hallawa <
[email protected] >
2
+
3
+ MIMETypeRegistry::getExtensionsForMIMEType() needs to handle wildcard MIME types
4
+ https://bugs.webkit.org/show_bug.cgi?id=213826
5
+
6
+ Reviewed by Darin Adler.
7
+
8
+ Addressing post commit review comments for r263832.
9
+
10
+ * platform/cocoa/MIMETypeRegistryCocoa.mm:
11
+ (WebCore::extensionsForMIMETypeMap):
12
+
1
13
2020-07-02 Brady Eidson <
[email protected] >
2
14
3
15
GameController.framework soft linking refactoring
Original file line number Diff line number Diff line change 46
46
size_t pos = type.reverseFind (' /' );
47
47
48
48
ASSERT (pos != notFound);
49
- auto wildcardMIMEType = makeString (type.left (pos), " /*" _s);
49
+ auto wildcardMIMEType = makeString (StringView ( type) .left (pos), " /*" _s);
50
50
51
51
for (NSString *extension in extensions) {
52
- if (!extension)
53
- continue ;
54
-
55
52
// Add extension to wildcardMIMEType, for example add "png" to "image/*"
56
53
addExtension (wildcardMIMEType, extension);
57
54
// Add extension to its mimeType, for example add "png" to "image/png"
58
55
addExtension (type, extension);
59
56
}
60
57
};
61
58
62
- auto allUTIs = adoptNS ((__bridge NSArray < NSString *> *) _UTCopyDeclaredTypeIdentifiers ());
59
+ auto allUTIs = adoptCF ( _UTCopyDeclaredTypeIdentifiers ());
63
60
64
- for (NSString *uti in allUTIs.get ()) {
61
+ for (NSString *uti in (__bridge NSArray < NSString *> *) allUTIs.get ()) {
65
62
auto type = adoptCF (UTTypeCopyPreferredTagWithClass ((__bridge CFStringRef)uti, kUTTagClassMIMEType ));
66
63
if (!type)
67
64
continue ;
You can’t perform that action at this time.
0 commit comments