Bug 1448374 - Loading a .javascript file from a WebExtension's web_accessible_resourc...
commit58ac4dd796fd8434463e1f1d5f203f41d5f44fec
authorHaik Aftandilian <haftandilian@mozilla.com>
Tue, 3 Apr 2018 20:42:43 +0000 (3 13:42 -0700)
committerHaik Aftandilian <haftandilian@mozilla.com>
Tue, 3 Apr 2018 20:42:43 +0000 (3 13:42 -0700)
tree81afee047af9d2a82cb989b6c043c7974da27d27
parent02b381dff18590f21809b95e194ba38fb5783e2b
Bug 1448374 - Loading a .javascript file from a WebExtension's web_accessible_resources messing with macOS file associations r=jimm

From content processes, on Mac, use ContentHandlerService::GetTypeFromExtension()
instead of trying to query the OS directly for MIME information.
Trying to get MIME information from the OS is blocked by content process
sandboxing on Mac.

MozReview-Commit-ID: KGJHDBklxvb

--HG--
extra : rebase_source : ae46525eee622d64ffc6e263b19682aec033480a
uriloader/exthandler/mac/nsOSHelperAppService.h
uriloader/exthandler/mac/nsOSHelperAppService.mm