Граф коммитов

1597 Коммитов

Автор SHA1 Сообщение Дата
Blake Kaplan e45830eae6 Bug 1359651 - Add a mochitest for auto-closing behavior when dealing with an external file type. r=Felipe
MozReview-Commit-ID: 5SWoHtSA58t

--HG--
extra : rebase_source : df18d1290790dfa7f7cd9b8f582eb85253bd7313
2017-04-25 17:39:25 -07:00
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
Paolo Amadini d457a3002d Bug 986975 - do_QueryInterface abuse in nsAndroidHandlerApp.cpp. r=mak
This change is tested in detail as part of bug 1355585.

MozReview-Commit-ID: 5z4evaUQDFI

--HG--
extra : rebase_source : 507fc823746667a27ff159d8347999eb2e007453
extra : source : 3e41ab5e66765a8955d77482d74c48db1255ee45
2017-04-24 11:29:35 +01:00
Honza Bambas 203c640be7 Bug 1348062 - Mark channels used for downloads as throttable, r=nick+paolo
MozReview-Commit-ID: 9cg4PwrXtNa

--HG--
extra : rebase_source : 2ff2d771a6ccb2a3e11c2d65e0a64ebbaa443206
2017-04-16 14:53:30 +01:00
Carsten "Tomcat" Book 589e3693ed Backed out changeset 8bd40784fb5b (bug 986975) for bustage
--HG--
extra : rebase_source : 7a8d7bb32446c179d413663091fb475f2d381bd3
2017-04-24 11:59:04 +02:00
Carsten "Tomcat" Book cc13ab1fa1 Backed out changeset bcf5a28b1873 (bug 1355585)
--HG--
extra : rebase_source : 11d368ea1b7253161cf2e3a81bb4c75a3f845ca7
2017-04-24 11:58:48 +02:00
Paolo Amadini ecf0fc98a2 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 : source : b261ced27c55155bd0e3f92efbf90ae6ed8fc664
extra : amend_source : 64dc1b735bda798620e21db4ae942863fd00bb16
2017-04-24 10:31:30 +01:00
Paolo Amadini 4ecc4a5cdf Bug 986975 - do_QueryInterface abuse in nsAndroidHandlerApp.cpp. r=mak
This change is tested in detail as part of bug 1355585.

MozReview-Commit-ID: 5z4evaUQDFI

--HG--
extra : source : 972bb1937119fb1742dc94742fcac80af4c108ee
2017-04-24 10:28:12 +01:00
Valentin Gosu 0a4d506e21 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
MozReview-Commit-ID: K28Opd9JTr2

--HG--
extra : rebase_source : d1a786d9b4318be15f195fdc330489121ebd6ece
2017-04-20 10:15:06 +08:00
Gijs Kruitbosch 5ae346e36b Bug 1352348 - add a method to nsExternalHelperAppService that only fetches a string mimetype for an extension, r=bz,Paolo
MozReview-Commit-ID: 3p1pakC9g45

--HG--
extra : rebase_source : b8b9eb417d2e70b57f3ecc5b872ad678afe946df
2017-04-13 15:45:54 +01:00
Gijs Kruitbosch 8450fb0148 Bug 1352348 - don't do registry lookups for empty strings passed when we want to know a mimetype, r=Paolo
MozReview-Commit-ID: KZ9w7zMZ35g

--HG--
extra : rebase_source : 9913c46ebc885ee2de815811bfcb6a39a88f0d71
2017-04-13 15:46:45 +01:00
Sebastian Hengst 9f9cc5e2f4 Backed out changeset d56f0474acb3 (bug 1352348) for Windows build bustage (undeclare identifier 'aExtension' at nsOSHelperAppService.cpp(395). r=backout on a CLOSED TREE 2017-04-19 14:10:12 +02:00
Sebastian Hengst 87f4f1adf2 Backed out changeset 1e5f2ea404fe (bug 1352348) 2017-04-19 14:09:06 +02:00
Gijs Kruitbosch 3a9260f922 Bug 1352348 - add a method to nsExternalHelperAppService that only fetches a string mimetype for an extension, r=bz,Paolo
MozReview-Commit-ID: 3p1pakC9g45

--HG--
extra : rebase_source : ab1680ca37da83006e8c61deb5209c359807516e
2017-04-13 15:45:54 +01:00
Gijs Kruitbosch 1da74eafa7 Bug 1352348 - don't do registry lookups for empty strings passed when we want to know a mimetype, r=Paolo
MozReview-Commit-ID: KZ9w7zMZ35g

--HG--
extra : rebase_source : 9913c46ebc885ee2de815811bfcb6a39a88f0d71
2017-04-13 15:46:45 +01:00
Sebastian Hengst 2d544286e7 Backed out changeset ebecf0ff75be (bug 1352348) for crashing in e.g. browser/components/translation/test/browser_translation_yandex.js on Windows. r=backout on a CLOSED TREE 2017-04-19 12:58:12 +02:00
Sebastian Hengst 35adb5a3b5 Backed out changeset ea1bb4b8e325 (bug 1352348) 2017-04-19 12:57:35 +02:00
Gijs Kruitbosch 61394be0c6 Bug 1352348 - add a method to nsExternalHelperAppService that only fetches a string mimetype for an extension, r=bz,Paolo
MozReview-Commit-ID: 3p1pakC9g45

--HG--
extra : rebase_source : 9573f2391db006f3e98a5ee49682670332654488
2017-04-13 15:45:54 +01:00
Gijs Kruitbosch 283942025c Bug 1352348 - don't do registry lookups for empty strings passed when we want to know a mimetype, r=Paolo
MozReview-Commit-ID: KZ9w7zMZ35g

--HG--
extra : rebase_source : 9913c46ebc885ee2de815811bfcb6a39a88f0d71
2017-04-13 15:46:45 +01:00
Mike Hommey 33a7e408ce Bug 1357323 - Remove the gonk code that was referenced by the build system. r=gps
--HG--
extra : rebase_source : 1d30ebcbdbcf596c944e1eec981f85db341485e5
2017-04-18 17:46:39 +09:00
Mike Hommey 34e619d1c1 Bug 1357323 - Remove support for gonk in the build system. r=gps
Everything depending on the widget being gonk can go away, as well as
everything depending on MOZ_AUDIO_CHANNEL_MANAGER, which was only
defined on gonk builds under b2g/ (which goes away in bug 1357326).

--HG--
extra : rebase_source : 9f0aeeb7eea8417fa4e06d662d566d67ecaf2a24
2017-04-18 16:56:09 +09:00
Carsten "Tomcat" Book 7ba1b88f0b Backed out changeset ec9fb39f7133 (bug 1354349) for bustage 2017-04-18 08:52:14 +02:00
Valentin Gosu 8f33abcc56 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
MozReview-Commit-ID: K28Opd9JTr2

--HG--
extra : rebase_source : 226ef1e6685a9608aa7c07d3c83b048d6e1e7278
2017-04-18 11:25:47 +08:00
Paolo Amadini b904570335 Bug 1355582 - Only the most recently added file extension is saved in "mimeTypes.rdf". r=mak
This change is tested in detail as part of bug 1355585.

MozReview-Commit-ID: 74nDQjGlFjA

--HG--
extra : source : 3e70d2516749bbb586b419d71c298bc6cfb365c4
2017-04-11 20:38:14 +01:00
Florian Queze f935ddc4b3 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 37f2343b9a Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Sebastian Hengst 9e0ecf32c5 Backed out changeset e1f191aad863 (bug 1356569) 2017-04-14 23:39:17 +02:00
Sebastian Hengst 738d097aae Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze 3c564a2b02 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 93a734a3ce Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Michael Layzell 8503de8054 Bug 1352684 - Add json, js, jsm, iso, properties, and locale to defaultMimeEntries, as they are used at startup, r=pike
MozReview-Commit-ID: 9vqyWtDe11h
2017-04-13 08:41:54 -04:00
Paolo Amadini 9c01cb1c62 Bug 1350026 - Fix recognition of the handler type in the JSON handler service back-end, and add detailed testing of the file format. r=mak
On Android, nsIHandlerInfo instances representing protocols are also instances of nsIMIMEInfo. This causes the RDF back-end of the handler service to store them in the same cateory as MIME types. This fix corrects the situation for the JSON back-end, while leaving the RDF back-end unchanged for backwards compatibility.

Detailed testing is added using different RDF reference files for Desktop and Android.

MozReview-Commit-ID: B0ls60jfENe

--HG--
extra : source : 0bfa2e0ad6232cbaf66dd7e42326101e23b62352
2017-04-04 17:20:37 +01:00
Blake Kaplan 9708f9f50d Bug 1350058 - Update the content context if we close the downloading window. r=mconley
MozReview-Commit-ID: A5LsapsljMY

--HG--
extra : rebase_source : bb35582e80c64f3cb8d563e14b24ed394a45ad5b
2017-03-23 17:01:30 -07:00
Paolo Amadini bc9668cdff Bug 1346716 - Remove the entry for "mimeTypes.rdf" in the directory service. r=mak
This improves performance because we won't try to fix the permissions of the file every time the nsIHandlerService implementation wants to open it, and makes it easier to access the file path from xpcshell tests.

MozReview-Commit-ID: DZmLa92qUnZ

--HG--
extra : source : bd0fdce03cc7442079e96318d3a9b519a4d403a9
2017-03-30 15:51:18 +01:00
Paolo Amadini 65b97eaee4 Bug 1350008 - Don't read the file type description from mimeTypes.rdf. r=mak
MozReview-Commit-ID: KBHdwq5J1Ls

--HG--
extra : source : beb3cb75d5317094133b5093565206c76bfb22fc
2017-03-23 17:37:33 +00:00
Honza Bambas b64fd14704 Bug 1349987 - Init nsExtProtocolChannel.mLoadFlags to 0, r=jduell 2017-03-23 10:17:00 +01:00
Zibi Braniecki 3d91da8726 Bug 1347314 - Migrate calls to ChromeRegistry::GetSelectedLocale to use LocaleService::GetAppLocale. r=jfkthame,Pike
In cases, where the caller is looking for the locale to be used for JS Intl API,
we can now replace it with `undefined` which causes JS Intl API to use the default
locale which since bug 1346674 is resolved to the app locale.

This allows us to remove a lot of calls for the app locale.

The remaining ones are split between `AsBCP47` and `AsLangTag`.
Here, the `AsLangTag` is used, as described in the API docs, for cases where
the language string is used for localization purposes, such as language negotaition
matching to our language resources etc.
`AsBCP47` is used when the returned value is handed over to ICU API.

MozReview-Commit-ID: DzmFEUvMq3N

--HG--
extra : rebase_source : 513ed31d995864939aa893e73c81ffdf591a6617
2017-03-14 16:09:54 -07:00
Sebastian Hengst 0a04f3b9e2 Backed out changeset cc308a73ad05 (bug 1347314) for eslint failure in test_device.html. r=backout 2017-03-22 18:20:26 +01:00
Zibi Braniecki c2cd68a689 Bug 1347314 - Migrate calls to ChromeRegistry::GetSelectedLocale to use LocaleService::GetAppLocale. r=jfkthame,Pike
In cases, where the caller is looking for the locale to be used for JS Intl API,
we can now replace it with `undefined` which causes JS Intl API to use the default
locale which since bug 1346674 is resolved to the app locale.

This allows us to remove a lot of calls for the app locale.

The remaining ones are split between `AsBCP47` and `AsLangTag`.
Here, the `AsLangTag` is used, as described in the API docs, for cases where
the language string is used for localization purposes, such as language negotaition
matching to our language resources etc.
`AsBCP47` is used when the returned value is handed over to ICU API.

MozReview-Commit-ID: DzmFEUvMq3N

--HG--
extra : rebase_source : 13fa4c397ba4c79303a2cd76684b5b8c4bd17331
2017-03-14 16:09:54 -07:00
Jorg K 243baf82b2 Bug 1347687 - Skip test if pref gecko.handlerService.defaultHandlersVersion not defined. r=alchen 2017-03-16 08:03:00 +01:00
Alphan Chen 3a09e7487d Bug 1287660 - New implementation of nsIHandlerService for the JSON backend. r=Paolo
MozReview-Commit-ID: 46fQq1Pr8bT

--HG--
extra : rebase_source : a04153c9507b7f18c94b81d12e4167d1a12e9cce
2017-03-10 17:41:33 +08:00
Sylvestre Ledru c12eaea678 Bug 1346859 - Remove dead code found by clang-tidy in unix/nsOSHelperAppService.cpp r=froydnj
MozReview-Commit-ID: H8lanTsuNxX

--HG--
extra : rebase_source : ab3745d6de24a787c7ae80edb98bbc213425a38b
2017-03-13 18:09:02 +01:00
Blake Kaplan 6ebea0d6d4 Bug 1301056 - Fix auto-closing of windows when they divert to an external app. r=mconley
It appears that we always meant to call
nsExternalHelperAppService::OnStartRequest even before we diverted (there's a
check for XRE_IsChildProcess in there) but forgot to. With this patch, we call
nsExternalHelperAppService::MaybeCloseWindow in the child and restore the old
behavior.

MozReview-Commit-ID: JedU3E0Eu26

--HG--
extra : rebase_source : 23e04fb5203018b4bd59c5ff349200d1c1951723
2017-03-08 08:24:08 -08:00
Andrea Marchesini 12b54aa0f5 Bug 1299500 - Get rid of DeviceStorage API - part 10 - DeviceStorage, r=ehsan, r=billm 2017-03-08 20:15:45 +01:00
Florian Quèze cd762cc83c Bug 1344711 - script-generated patch to remove try blocks around get*Pref calls, r=jaws.
--HG--
extra : rebase_source : c6e20e6e79b0ca5de751c52712d96cbea9432d26
2017-03-07 15:29:48 +01:00
Wei-Cheng Pan 29f4cc8d4a Bug 1310127 - Part 16: Use MOZ_MUST_USE in netwerk/protocol/http r=smaug
MozReview-Commit-ID: Ihow5ushWou

--HG--
extra : rebase_source : 204dfbb446032fac0c9daeabeeb08fc6eb1a99bf
2016-12-20 11:40:29 +08:00
Honza Bambas 6db3552e69 Bug 1340803 - Make nsMIMEInfoWin::GetPossibleLocalHandlers check fileExt is non-empty before checking its first char. r=jimm
--HG--
extra : rebase_source : a3d43e53ddd9f0b5d084434bad88ac0463f8686f
2017-02-18 07:31:00 -05:00