gecko-dev/uriloader/exthandler
Paolo Amadini 2723e3cda4 Bug 1355585 - Streamline the format of "handlers.json", align the implementation, and reorganize tests. r=mak
This patch significantly improves the test coverage for both the JSON and RDF back-ends. There is a clearer separation between tests using predefined data and tests for the injection of default handlers. The predefined data includes more significant property combinations, and the JSON is now formatted. Helper functions are renamed for clarity.

Functions like "exists" that have different paths for MIME types and protocols are now tested with both, while behaviors that have a single path are now only tested with MIME types for efficiency.

The file format is redesigned to be more compact, and all the data is normalized when saving instead of when loading. Duplicates are now handled correctly when saving.

MozReview-Commit-ID: JI4I1M0N3lq

--HG--
extra : rebase_source : 06920d9be56830f81e3e01cbc97a02983f50c264
extra : source : 3c4b8028ac594ee24760feb96e93bfdab9704e98
2017-04-24 11:29:46 +01:00
..
android Bug 986975 - do_QueryInterface abuse in nsAndroidHandlerApp.cpp. r=mak 2017-04-24 11:29:35 +01:00
mac Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm. 2016-09-02 17:12:24 +10:00
tests Bug 1355585 - Streamline the format of "handlers.json", align the implementation, and reorganize tests. r=mak 2017-04-24 11:29:46 +01:00
uikit
unix Bug 1346859 - Remove dead code found by clang-tidy in unix/nsOSHelperAppService.cpp r=froydnj 2017-03-13 18:09:02 +01:00
win Bug 1352348 - don't do registry lookups for empty strings passed when we want to know a mimetype, r=Paolo 2017-04-13 15:46:45 +01:00
ContentHandlerService.cpp
ContentHandlerService.h Bug 1293212 - Add MOZ_MUST_USE to prevent potential bugs. r=smaug 2016-08-08 18:16:15 +08:00
ExternalHelperAppChild.cpp Bug 1350058 - Update the content context if we close the downloading window. r=mconley 2017-03-23 17:01:30 -07:00
ExternalHelperAppChild.h Bug 1350058 - Update the content context if we close the downloading window. r=mconley 2017-03-23 17:01:30 -07:00
ExternalHelperAppParent.cpp Bug 1354349 - Add nsIChannel.isDocument that checks if LOAD_DOCUMENT_URI is set, or if LOAD_HTML_OBJECT_DATA and the channel has the appropriate MIME type r=mcmanus,mystor 2017-04-20 10:15:06 +08:00
ExternalHelperAppParent.h Bug 1350058 - Update the content context if we close the downloading window. r=mconley 2017-03-23 17:01:30 -07:00
HandlerServiceChild.h
HandlerServiceParent.cpp Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm 2016-11-15 04:26:00 +01:00
HandlerServiceParent.h Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm 2016-11-15 04:26:00 +01:00
PExternalHelperApp.ipdl Bug 1350058 - Update the content context if we close the downloading window. r=mconley 2017-03-23 17:01:30 -07:00
PHandlerService.ipdl
moz.build Bug 1357323 - Remove support for gonk in the build system. r=gps 2017-04-18 16:56:09 +09:00
nsCExternalHandlerService.idl
nsContentHandlerApp.cpp
nsContentHandlerApp.h
nsDBusHandlerApp.cpp
nsDBusHandlerApp.h
nsExternalHelperAppService.cpp Bug 1348062 - Mark channels used for downloads as throttable, r=nick+paolo 2017-04-16 14:53:30 +01:00
nsExternalHelperAppService.h Backed out changeset 1e5f2ea404fe (bug 1352348) 2017-04-19 14:09:06 +02:00
nsExternalProtocolHandler.cpp Bug 1354349 - Add nsIChannel.isDocument that checks if LOAD_DOCUMENT_URI is set, or if LOAD_HTML_OBJECT_DATA and the channel has the appropriate MIME type r=mcmanus,mystor 2017-04-20 10:15:06 +08:00
nsExternalProtocolHandler.h
nsHandlerService-json.js Bug 1355585 - Streamline the format of "handlers.json", align the implementation, and reorganize tests. r=mak 2017-04-24 11:29:46 +01:00
nsHandlerService-json.manifest Bug 1287660 - New implementation of nsIHandlerService for the JSON backend. r=Paolo 2017-03-10 17:41:33 +08:00
nsHandlerService.js Bug 1355585 - Streamline the format of "handlers.json", align the implementation, and reorganize tests. r=mak 2017-04-24 11:29:46 +01:00
nsHandlerService.manifest
nsIContentDispatchChooser.idl
nsIExternalHelperAppService.idl
nsIExternalProtocolService.idl
nsIExternalSharingAppService.idl
nsIExternalURLHandlerService.idl
nsIHandlerService.idl
nsIHelperAppLauncherDialog.idl
nsLocalHandlerApp.cpp
nsLocalHandlerApp.h
nsMIMEInfoImpl.cpp
nsMIMEInfoImpl.h
nsWebHandlerApp.js Bug 1329182 - remove trailing newURI null parameters in the rest of the tree, r=jaws. 2017-01-09 20:27:26 +01:00
nsWebHandlerApp.manifest