WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
175350
[QuickLook] Use case-insensitive comparison of preview MIME types
https://bugs.webkit.org/show_bug.cgi?id=175350
Summary
[QuickLook] Use case-insensitive comparison of preview MIME types
Andy Estes
Reported
2017-08-08 15:45:01 PDT
[QuickLook] Use case-insensitive comparison of preview MIME types
Attachments
Patch
(636.64 KB, patch)
2017-08-08 15:57 PDT
,
Andy Estes
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews122 for ios-simulator-wk2
(6.76 MB, application/zip)
2017-08-08 19:56 PDT
,
Build Bot
no flags
Details
Patch
(646.43 KB, patch)
2017-08-08 21:15 PDT
,
Andy Estes
no flags
Details
Formatted Diff
Diff
Patch
(646.43 KB, patch)
2017-08-08 21:31 PDT
,
Andy Estes
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Andy Estes
Comment 1
2017-08-08 15:46:10 PDT
rdar://problem/33761159
Andy Estes
Comment 2
2017-08-08 15:57:16 PDT
Created
attachment 317636
[details]
Patch
Build Bot
Comment 3
2017-08-08 19:56:53 PDT
Comment on
attachment 317636
[details]
Patch
Attachment 317636
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/4281452
New failing tests: quicklook/excel-macro-enabled.html
Build Bot
Comment 4
2017-08-08 19:56:55 PDT
Created
attachment 317667
[details]
Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
Andy Estes
Comment 5
2017-08-08 21:15:22 PDT
Created
attachment 317674
[details]
Patch
Andy Estes
Comment 6
2017-08-08 21:31:04 PDT
Created
attachment 317676
[details]
Patch
WebKit Commit Bot
Comment 7
2017-08-09 08:52:26 PDT
Comment on
attachment 317676
[details]
Patch Clearing flags on attachment: 317676 Committed
r220456
: <
http://trac.webkit.org/changeset/220456
>
WebKit Commit Bot
Comment 8
2017-08-09 08:52:28 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 9
2017-09-03 23:33:22 PDT
Comment on
attachment 317636
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=317636&action=review
> Source/WebCore/loader/ios/PreviewLoader.mm:211 > + static std::once_flag onceFlag; > + static NeverDestroyed<HashSet<String, ASCIICaseInsensitiveHash>> supportedMIMETypes; > + std::call_once(onceFlag, [] { > + for (NSString *mimeType in QLPreviewGetSupportedMIMETypesSet()) > + supportedMIMETypes.get().add(mimeType); > + });
The use of std::call_once here seems like overkill. It’s not safe to use a set of strings on multiple threads so we don’t need to be thread-safe, so we should just be able to use a lambda to initialize.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug