Commit Graph

619711 Commits

Author SHA1 Message Date
Andrea Marchesini
39b3c89ada Bug 1499768 - camera, microphone and speaker feature policies should have 'self' as default allowlist, r=jib 2018-10-18 11:08:37 +02:00
Bogdan Tara
d2c3db4fb0 Backed out changeset 0e8706e5d2ff (bug 1473841) for browser_jsterm_completion_invalid_dot_notation.js failures CLOSED TREE 2018-10-18 10:43:58 +03:00
Ciure Andrei
2b838cf300 Backed out changeset 463d82852c31 (bug 1397612) for accidentally disabling nearly all the tests in test_quit_restart.py a=backout 2018-10-18 10:16:53 +03:00
Miko Mynttinen
6ddaa66fe8 Bug 1496839 - Avoid dereferencing null frame r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D8882

--HG--
extra : moz-landing-system : lando
2018-10-18 02:26:59 +00:00
ffxbld
74122af621 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D9085

--HG--
extra : moz-landing-system : lando
2018-10-18 12:21:07 +00:00
Thomas Wisniewski
3c40ce1478 Bug 1499136 - Disable dom.xhr.standard_content_type_normalization for now due to webcompat issues; r=hsivonen
Disable dom.xhr.standard_content_type_normalization for now due to webcompat issues

Differential Revision: https://phabricator.services.mozilla.com/D8789

--HG--
extra : moz-landing-system : lando
2018-10-18 02:10:25 +00:00
Dorel Luca
cf8bae2781 Merge autoland to mozilla-central. a=merge 2018-10-18 01:53:30 +03:00
Gijs Kruitbosch
0649c40a3c Bug 1499236 - remove customizableui menubar binding, r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D8901

--HG--
extra : moz-landing-system : lando
2018-10-17 22:50:40 +00:00
Jan-Erik Rediger
ee01d1cc02 Bug 1498160 - Define new snapshot APIs for scalars and histograms r=chutten
For now this defers to the existing APIs and determines the correct dataset from a global flag.

Differential Revision: https://phabricator.services.mozilla.com/D8858

--HG--
extra : moz-landing-system : lando
2018-10-18 12:09:19 +00:00
Johann Hofmann
e55a046d93 Bug 1499685 - Fix browser_aboutCertError.js test cases for the old cert error pages. r=nhnt11
Two of these tests simply require the new pref to be set, while there was some actual
breakage that required me to put some more code behind another gate.

Differential Revision: https://phabricator.services.mozilla.com/D8978

--HG--
extra : moz-landing-system : lando
2018-10-17 22:13:34 +00:00
Daniel Stenberg
cf9e76636e bug 1498525 - make test_captive_portal_service use localhost only r=valentin
By setting network.dns.native-is-localhost in this test, it makes all native
name resolves use "localhost" and thus avoids causing an assert if this test
runs with TRR enabled and network.trr.uri set to point to an actual external
host name.

MozReview-Commit-ID: D1df6VtfckR

Differential Revision: https://phabricator.services.mozilla.com/D9070

--HG--
extra : moz-landing-system : lando
2018-10-18 07:06:43 +00:00
Ciure Andrei
685c5b2d60 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-18 10:19:03 +03:00
Marco Zehe
639f76f388 Bug 1499702 - Clean up break statements in EventQueue::CoalesceEvents(), r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D8971

--HG--
extra : moz-landing-system : lando
2018-10-18 07:06:45 +00:00
Emilio Cobos Álvarez
18d458ee42 Bug 1499863 - Honor will-change: position dynamic changes. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D9032

--HG--
extra : moz-landing-system : lando
2018-10-17 22:13:51 +00:00
Mantaroh Yoshinaga
9982e27fbd Bug 1488721 - Prevent closing the popup menu by clicking the space of tooltip popup menu. r=birtles
Differential Revision: https://phabricator.services.mozilla.com/D9059

--HG--
extra : moz-landing-system : lando
2018-10-18 05:48:55 +00:00
Daisuke Akatsuka
4f3b0292c4 Bug 1497099: Use common runtime PropTypes. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D8795

--HG--
extra : moz-landing-system : lando
2018-10-18 00:48:54 +00:00
Nicolas Chevobbe
4c897a56af Bug 1473841 - Transform property access on a dot-notation invalid name into an element access; r=bgrins.
This patch turns property access that would result in
Syntax error (e.g. `x.data-test`) into element access
(e.g. `x["data-test"]`) when accepting a completion
value in the console input.
In order to do that, we use Reflect to parse  a custom
expression where we try to define the property the user
is going to accept. If this throws, this means we need to
modify the input into an element access.
A test is added to make sure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D8952

--HG--
extra : moz-landing-system : lando
2018-10-17 20:55:26 +00:00
Ed Lee
a8fe89d2f5 Bug 1499886 - Add send-to-device snippet, right-to-left robustness and bug fixes to Activity Stream r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D9045

--HG--
rename : browser/components/newtab/locales/ach/strings.properties => browser/components/newtab/locales-src/ach/strings.properties
rename : browser/components/newtab/locales/an/strings.properties => browser/components/newtab/locales-src/an/strings.properties
rename : browser/components/newtab/locales/ar/strings.properties => browser/components/newtab/locales-src/ar/strings.properties
rename : browser/components/newtab/locales/ast/strings.properties => browser/components/newtab/locales-src/ast/strings.properties
rename : browser/components/newtab/locales/az/strings.properties => browser/components/newtab/locales-src/az/strings.properties
rename : browser/components/newtab/locales/be/strings.properties => browser/components/newtab/locales-src/be/strings.properties
rename : browser/components/newtab/locales/bg/strings.properties => browser/components/newtab/locales-src/bg/strings.properties
rename : browser/components/newtab/locales/bn-BD/strings.properties => browser/components/newtab/locales-src/bn-BD/strings.properties
rename : browser/components/newtab/locales/bn-IN/strings.properties => browser/components/newtab/locales-src/bn-IN/strings.properties
rename : browser/components/newtab/locales/br/strings.properties => browser/components/newtab/locales-src/br/strings.properties
rename : browser/components/newtab/locales/bs/strings.properties => browser/components/newtab/locales-src/bs/strings.properties
rename : browser/components/newtab/locales/ca/strings.properties => browser/components/newtab/locales-src/ca/strings.properties
rename : browser/components/newtab/locales/cak/strings.properties => browser/components/newtab/locales-src/cak/strings.properties
rename : browser/components/newtab/locales/crh/strings.properties => browser/components/newtab/locales-src/crh/strings.properties
rename : browser/components/newtab/locales/cs/strings.properties => browser/components/newtab/locales-src/cs/strings.properties
rename : browser/components/newtab/locales/cy/strings.properties => browser/components/newtab/locales-src/cy/strings.properties
rename : browser/components/newtab/locales/da/strings.properties => browser/components/newtab/locales-src/da/strings.properties
rename : browser/components/newtab/locales/de/strings.properties => browser/components/newtab/locales-src/de/strings.properties
rename : browser/components/newtab/locales/dsb/strings.properties => browser/components/newtab/locales-src/dsb/strings.properties
rename : browser/components/newtab/locales/el/strings.properties => browser/components/newtab/locales-src/el/strings.properties
rename : browser/components/newtab/locales/en-CA/strings.properties => browser/components/newtab/locales-src/en-CA/strings.properties
rename : browser/components/newtab/locales/en-GB/strings.properties => browser/components/newtab/locales-src/en-GB/strings.properties
rename : browser/components/newtab/locales/en-US/strings.properties => browser/components/newtab/locales-src/en-US/strings.properties
rename : browser/components/newtab/locales/eo/strings.properties => browser/components/newtab/locales-src/eo/strings.properties
rename : browser/components/newtab/locales/es-AR/strings.properties => browser/components/newtab/locales-src/es-AR/strings.properties
rename : browser/components/newtab/locales/es-CL/strings.properties => browser/components/newtab/locales-src/es-CL/strings.properties
rename : browser/components/newtab/locales/es-ES/strings.properties => browser/components/newtab/locales-src/es-ES/strings.properties
rename : browser/components/newtab/locales/es-MX/strings.properties => browser/components/newtab/locales-src/es-MX/strings.properties
rename : browser/components/newtab/locales/et/strings.properties => browser/components/newtab/locales-src/et/strings.properties
rename : browser/components/newtab/locales/eu/strings.properties => browser/components/newtab/locales-src/eu/strings.properties
rename : browser/components/newtab/locales/fa/strings.properties => browser/components/newtab/locales-src/fa/strings.properties
rename : browser/components/newtab/locales/ff/strings.properties => browser/components/newtab/locales-src/ff/strings.properties
rename : browser/components/newtab/locales/fi/strings.properties => browser/components/newtab/locales-src/fi/strings.properties
rename : browser/components/newtab/locales/fr/strings.properties => browser/components/newtab/locales-src/fr/strings.properties
rename : browser/components/newtab/locales/fy-NL/strings.properties => browser/components/newtab/locales-src/fy-NL/strings.properties
rename : browser/components/newtab/locales/ga-IE/strings.properties => browser/components/newtab/locales-src/ga-IE/strings.properties
rename : browser/components/newtab/locales/gd/strings.properties => browser/components/newtab/locales-src/gd/strings.properties
rename : browser/components/newtab/locales/gl/strings.properties => browser/components/newtab/locales-src/gl/strings.properties
rename : browser/components/newtab/locales/gn/strings.properties => browser/components/newtab/locales-src/gn/strings.properties
rename : browser/components/newtab/locales/gu-IN/strings.properties => browser/components/newtab/locales-src/gu-IN/strings.properties
rename : browser/components/newtab/locales/he/strings.properties => browser/components/newtab/locales-src/he/strings.properties
rename : browser/components/newtab/locales/hi-IN/strings.properties => browser/components/newtab/locales-src/hi-IN/strings.properties
rename : browser/components/newtab/locales/hr/strings.properties => browser/components/newtab/locales-src/hr/strings.properties
rename : browser/components/newtab/locales/hsb/strings.properties => browser/components/newtab/locales-src/hsb/strings.properties
rename : browser/components/newtab/locales/hu/strings.properties => browser/components/newtab/locales-src/hu/strings.properties
rename : browser/components/newtab/locales/hy-AM/strings.properties => browser/components/newtab/locales-src/hy-AM/strings.properties
rename : browser/components/newtab/locales/ia/strings.properties => browser/components/newtab/locales-src/ia/strings.properties
rename : browser/components/newtab/locales/id/strings.properties => browser/components/newtab/locales-src/id/strings.properties
rename : browser/components/newtab/locales/is/strings.properties => browser/components/newtab/locales-src/is/strings.properties
rename : browser/components/newtab/locales/it/strings.properties => browser/components/newtab/locales-src/it/strings.properties
rename : browser/components/newtab/locales/ja-JP-mac/strings.properties => browser/components/newtab/locales-src/ja-JP-mac/strings.properties
rename : browser/components/newtab/locales/ja/strings.properties => browser/components/newtab/locales-src/ja/strings.properties
rename : browser/components/newtab/locales/ka/strings.properties => browser/components/newtab/locales-src/ka/strings.properties
rename : browser/components/newtab/locales/kab/strings.properties => browser/components/newtab/locales-src/kab/strings.properties
rename : browser/components/newtab/locales/kk/strings.properties => browser/components/newtab/locales-src/kk/strings.properties
rename : browser/components/newtab/locales/km/strings.properties => browser/components/newtab/locales-src/km/strings.properties
rename : browser/components/newtab/locales/kn/strings.properties => browser/components/newtab/locales-src/kn/strings.properties
rename : browser/components/newtab/locales/ko/strings.properties => browser/components/newtab/locales-src/ko/strings.properties
rename : browser/components/newtab/locales/lij/strings.properties => browser/components/newtab/locales-src/lij/strings.properties
rename : browser/components/newtab/locales/lo/strings.properties => browser/components/newtab/locales-src/lo/strings.properties
rename : browser/components/newtab/locales/lt/strings.properties => browser/components/newtab/locales-src/lt/strings.properties
rename : browser/components/newtab/locales/ltg/strings.properties => browser/components/newtab/locales-src/ltg/strings.properties
rename : browser/components/newtab/locales/lv/strings.properties => browser/components/newtab/locales-src/lv/strings.properties
rename : browser/components/newtab/locales/mai/strings.properties => browser/components/newtab/locales-src/mai/strings.properties
rename : browser/components/newtab/locales/mk/strings.properties => browser/components/newtab/locales-src/mk/strings.properties
rename : browser/components/newtab/locales/ml/strings.properties => browser/components/newtab/locales-src/ml/strings.properties
rename : browser/components/newtab/locales/mr/strings.properties => browser/components/newtab/locales-src/mr/strings.properties
rename : browser/components/newtab/locales/ms/strings.properties => browser/components/newtab/locales-src/ms/strings.properties
rename : browser/components/newtab/locales/my/strings.properties => browser/components/newtab/locales-src/my/strings.properties
rename : browser/components/newtab/locales/nb-NO/strings.properties => browser/components/newtab/locales-src/nb-NO/strings.properties
rename : browser/components/newtab/locales/ne-NP/strings.properties => browser/components/newtab/locales-src/ne-NP/strings.properties
rename : browser/components/newtab/locales/nl/strings.properties => browser/components/newtab/locales-src/nl/strings.properties
rename : browser/components/newtab/locales/nn-NO/strings.properties => browser/components/newtab/locales-src/nn-NO/strings.properties
rename : browser/components/newtab/locales/oc/strings.properties => browser/components/newtab/locales-src/oc/strings.properties
rename : browser/components/newtab/locales/pa-IN/strings.properties => browser/components/newtab/locales-src/pa-IN/strings.properties
rename : browser/components/newtab/locales/pl/strings.properties => browser/components/newtab/locales-src/pl/strings.properties
rename : browser/components/newtab/locales/pt-BR/strings.properties => browser/components/newtab/locales-src/pt-BR/strings.properties
rename : browser/components/newtab/locales/pt-PT/strings.properties => browser/components/newtab/locales-src/pt-PT/strings.properties
rename : browser/components/newtab/locales/rm/strings.properties => browser/components/newtab/locales-src/rm/strings.properties
rename : browser/components/newtab/locales/ro/strings.properties => browser/components/newtab/locales-src/ro/strings.properties
rename : browser/components/newtab/locales/ru/strings.properties => browser/components/newtab/locales-src/ru/strings.properties
rename : browser/components/newtab/locales/si/strings.properties => browser/components/newtab/locales-src/si/strings.properties
rename : browser/components/newtab/locales/sk/strings.properties => browser/components/newtab/locales-src/sk/strings.properties
rename : browser/components/newtab/locales/sl/strings.properties => browser/components/newtab/locales-src/sl/strings.properties
rename : browser/components/newtab/locales/sq/strings.properties => browser/components/newtab/locales-src/sq/strings.properties
rename : browser/components/newtab/locales/sr/strings.properties => browser/components/newtab/locales-src/sr/strings.properties
rename : browser/components/newtab/locales/sv-SE/strings.properties => browser/components/newtab/locales-src/sv-SE/strings.properties
rename : browser/components/newtab/locales/ta/strings.properties => browser/components/newtab/locales-src/ta/strings.properties
rename : browser/components/newtab/locales/te/strings.properties => browser/components/newtab/locales-src/te/strings.properties
rename : browser/components/newtab/locales/th/strings.properties => browser/components/newtab/locales-src/th/strings.properties
rename : browser/components/newtab/locales/tl/strings.properties => browser/components/newtab/locales-src/tl/strings.properties
rename : browser/components/newtab/locales/tr/strings.properties => browser/components/newtab/locales-src/tr/strings.properties
rename : browser/components/newtab/locales/uk/strings.properties => browser/components/newtab/locales-src/uk/strings.properties
rename : browser/components/newtab/locales/ur/strings.properties => browser/components/newtab/locales-src/ur/strings.properties
rename : browser/components/newtab/locales/uz/strings.properties => browser/components/newtab/locales-src/uz/strings.properties
rename : browser/components/newtab/locales/vi/strings.properties => browser/components/newtab/locales-src/vi/strings.properties
rename : browser/components/newtab/locales/zh-CN/strings.properties => browser/components/newtab/locales-src/zh-CN/strings.properties
rename : browser/components/newtab/locales/zh-TW/strings.properties => browser/components/newtab/locales-src/zh-TW/strings.properties
extra : moz-landing-system : lando
2018-10-18 05:00:47 +00:00
Daniel Varga
7460807a56 Backed out changeset f9cf33c52739 (bug 1498715) on request by nalexander for local developer failures. a=backout 2018-10-17 22:02:34 +03:00
Csoregi Natalia
6c966e4d3a Merge inbound to mozilla-central. a=merge 2018-10-17 19:53:56 +03:00
Brian Hackett
31aa4651c5 Bug 1499186 Part 3 - Don't show out of order graphics in the middleman, r=nical.
--HG--
extra : rebase_source : 82f679a8e0aedb9ce24c0a9c72517a4be4d9ba16
2018-10-17 10:43:32 -06:00
Brian Hackett
d0439afd07 Bug 1499186 Part 2 - Only allow one in flight paint at a time, r=nical.
--HG--
extra : rebase_source : 11e42fa3affbfef7d2ce9b87da26e42f3eb9183e
2018-10-17 10:32:13 -06:00
Brian Hackett
0ec2f258e7 Bug 1499186 Part 1 - Allow recording/replaying processes to ignore vsyncs, r=nical.
--HG--
extra : rebase_source : e36cb48b5a7ba3b4f2fc46fd68256b46801f0792
2018-10-17 10:18:50 -06:00
Brian Hackett
e1cc56fa0f Bug 1488808 Part 17 - Allow paints to happen at the normal time when recording/replaying, r=nical.
--HG--
extra : rebase_source : c9a5536a9eeff96937643fdf7bf68e56e437cef1
2018-10-17 10:16:30 -06:00
Brian Hackett
c1fc84be7c Bug 1488808 Part 16 - Avoid deadlocking in a few places after diverging from the recording, r=froydnj.
--HG--
extra : rebase_source : 2327cd9632cdc9ace793f9e9fea666d95f305201
2018-10-17 10:15:41 -06:00
Brian Hackett
a54a40509f Bug 1488808 Part 15 - Add repainting stress testing mode, r=mccr8.
--HG--
extra : rebase_source : e7ba0e8fbc8e3971b762ced1f6801d548cd1dd12
2018-10-17 10:10:22 -06:00
Brian Hackett
c5c1973218 Bug 1488808 Part 14 - Parent side graphics changes for repainting, r=mccr8.
--HG--
extra : rebase_source : aa68fe199bc53c534cfc0f58fe31c18000f53320
2018-10-17 10:07:13 -06:00
Brian Hackett
7813dce05c Bug 1488808 Part 13 - Avoid blocking the main thread when painting, and allow repaints after diverging from the recording, r=nical.
--HG--
extra : rebase_source : 48dde9958d99d64e5d559661e23c000eaf983f8c
2018-10-17 10:06:43 -06:00
Brian Hackett
9e6a10e2f0 Bug 1488808 Part 12 - Bindings for JS repainting logic, r=mccr8.
--HG--
extra : rebase_source : 11beaab2f5e561ea7a7aad697e0dfe3b278a01c4
2018-10-17 10:06:15 -06:00
Brian Hackett
eb42c59c7d Bug 1488808 Part 11 - JS changes to trigger repaints after diverging from the recording, and handle the response, r=lsmyth.
--HG--
extra : rebase_source : 76f6e33059821efb827f86ad4beaa55243f1d324
2018-10-17 10:05:36 -06:00
Brian Hackett
3c4231fd5b Bug 1488808 Part 10 - Notify the record/replay system when a message pump thread blocks after diverging from the recording, r=froydnj.
--HG--
extra : rebase_source : c82088f0903b618caee3b0366a8c681ff6f445a1
2018-10-17 10:05:02 -06:00
Brian Hackett
fc6a34c667 Bug 1488808 Part 9 - Specify regions of code where recording is not interrupted and threads can diverge, r=froydnj.
--HG--
extra : rebase_source : ce244c4628a8e6758a60b884bf6ef0c9f840a173
2018-10-17 10:04:29 -06:00
Brian Hackett
925de5e1c3 Bug 1488808 Part 8 - Redirection changes for supporting layout and painting after diverging from the recording, r=froydnj.
--HG--
extra : rebase_source : e841aa941f8508b4792c0a496a569e73450c95c9
2018-10-17 10:04:01 -06:00
Brian Hackett
a527b58145 Bug 1488808 Part 7 - Keep track of the PID of the recording process, r=froydnj.
--HG--
extra : rebase_source : 6ac89e1c4ac71a29a7710f64e74654b119c76896
2018-10-17 10:02:02 -06:00
Brian Hackett
3303482d71 Bug 1488808 Part 6 - IPC for performing system calls in the middleman, r=mccr8.
--HG--
extra : rebase_source : 0f83177040992f9ebabd838fa29c2bb6567ed0e8
2018-10-17 10:01:32 -06:00
Brian Hackett
e84caca5c0 Bug 1488808 Part 5 - Add infrastructure for performing system calls in the middleman process, r=froydnj.
--HG--
extra : rebase_source : d4e37772b0dd5103bf1ceb1602503fc8fe83d927
2018-10-17 10:00:58 -06:00
Brian Hackett
0315be6e61 Bug 1488808 Part 4 - Rename MaybeCreateInitialCheckpoint, r=mccr8.
--HG--
extra : rebase_source : 97b9f63531db75b81508040fbc7a25cf6f5389b5
2018-10-17 10:00:29 -06:00
Brian Hackett
e6b65359cc Bug 1488808 Part 3 - Store channel buffer's containing vector in untracked memory, r=mccr8.
--HG--
extra : rebase_source : efa114d15f3376878b0cc5a4e3038bb86601bf48
2018-10-17 10:00:01 -06:00
Brian Hackett
e0211f389a Bug 1488808 Part 2 - Fix checks after an unhandled divergence in the first debugger request after pausing, r=mccr8.
--HG--
extra : rebase_source : 3bd59e9d9b6613ac08ec9de8dd536396809585ec
2018-10-17 09:59:32 -06:00
Brian Hackett
ed16535fcd Bug 1488808 Part 1 - Fix return value sets in Preamble_Veto, r=froydnj.
--HG--
extra : rebase_source : 605664e37b1c03d4bbfc6b401fe9c34e953796d0
2018-10-17 09:58:50 -06:00
Brian Hackett
91adda92bf Bug 1498012 Part 2 - Tolerate time warp targets being created when handling debugger requests, r=mccr8.
--HG--
extra : rebase_source : ed6594669da7345b711aba60438820db434c2948
2018-10-17 09:33:00 -06:00
Florian Quèze
477b5b6aa2 Bug 1498186 - Add a 'Task Manager' item opening about:performance in the 'More' section of the application menu, r=felipe. 2018-10-17 17:01:12 +02:00
Bob Clary
26b400b059 Bug 1499511 - [mozdevice] Support single-quotes in adb command line, r=gbrown. 2018-10-17 06:53:29 -07:00
Julian Descottes
41b3968ced Bug 1458194 - Add mochitest to track number of bundles loaded when loading inspector;r=ochameau,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D8017

--HG--
extra : moz-landing-system : lando
2018-10-17 13:30:09 +00:00
Margareta Eliza Balazs
c41508657f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-18 13:25:55 +03:00
Tom Schuster
90b0f3e9cb Bug 1497580 - Save text/html as UTF-8 to the clipboard. r=karlt
I verified that we can still copy from Firefox to an older version of Firefox without this patch.
LibreOffice also still works. Talking to some GTK people on IRC they are also happy about UTF-8 instead of wrongly declared UCS2.

Differential Revision: https://phabricator.services.mozilla.com/D8467

--HG--
extra : moz-landing-system : lando
2018-10-17 23:00:36 +00:00
Dão Gottwald
fe2a8105db Bug 1497820 - Get rid of the 'compact' class for search textboxes. r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D9078

--HG--
extra : moz-landing-system : lando
2018-10-18 10:05:27 +00:00
yulia
0e854c694a Bug 1488379 - guard for errors; r=daisuke
Depends on D7986

Differential Revision: https://phabricator.services.mozilla.com/D8736

--HG--
extra : moz-landing-system : lando
2018-10-18 08:54:56 +00:00
Valentin Gosu
055117366d Bug 1487100 - Allow opening the input stream for original content when alt-data is available r=michal,luke
In trying to use fetch with alt-data, we sometimes want the benefit of using alt-data but the JS consumer actually needs to use the original HTTP response from the server.
To get around this problem, we introduce a new API - nsICacheInfoChannel.getOriginalInputStream(nsIInputStreamReceiver) that asyncly receives the input stream containing the HTTP response in the cache entry.

Depends on D8071

Differential Revision: https://phabricator.services.mozilla.com/D8072

--HG--
extra : rebase_source : 43d92c631b964c52b551a700b0954276e91695d6
extra : source : 7f9d03c29a6ffd82c1b5e17c14e27a2ae9d64434
2018-10-17 12:27:37 +00:00
Valentin Gosu
5ac68030f7 Bug 1487100 - Allow calling nsICacheInfoChannel.preferAlternativeDataType(altDataType, contentType) multiple times r=michal,luke
This patch changes the way we set and handle the preferred alternate data type.
It is no longer just one choice, but a set of preferences, each conditional
on the contentType of the resource.

For example:
  var cc = chan.QueryInterface(Ci.nsICacheInfoChannel);
  cc.preferAlternativeDataType("js-bytecode", "text/javascript");
  cc.preferAlternativeDataType("ammended-text", "text/plain");
  cc.preferAlternativeDataType("something-else", "");

When loaded from the cache, the available alt-data type will be checked against
"js-bytecode" if the contentType is "text/javascript", "ammended-text" if the contentType is "text/plain" or "something-else" for all contentTypes.
Note that the alt-data type could be "something-else" even if the contentType is "text/javascript".

The preferences are saved as an nsTArray<mozilla::Tuple<nsCString, nsCString>>.

Differential Revision: https://phabricator.services.mozilla.com/D8071

--HG--
extra : rebase_source : eb4961f05a52e557e7d2d986d59e0a2cf18a3447
extra : source : dd1c31ea78c2b15d14750d137037a54d50719997
2018-10-17 13:58:30 +00:00