Commit Graph

2325 Commits

Author SHA1 Message Date
Kershaw Chang
14ca5d5894 Bug 1360581 - Part3: Add setTopWindowURIIfUnknown in nsIHttpChannelInternal, r=mayhemer
Since the uri classifier needs topWindowURI to decide whether or not to enable channel annotation, we have to allow to change this attribute in js for passing the test.

--HG--
extra : rebase_source : c5effa05fecef0d32600e4c9c926dbfa77c2ca6f
2017-06-13 01:21:00 +02:00
Tom Ritter
cc0c6b4d05 Bug 1368416 Include 'windows.h' instead of 'Windows.h' for MinGW support r=mcmanus
MozReview-Commit-ID: AmuNxWpQgKC

--HG--
extra : rebase_source : 3ea0ed75058b757d59bc6f7dda6f0e54ae0499ae
2017-05-29 00:49:29 -05:00
Jan de Mooij
d2c775856a Bug 1358135 part 1 - Fix some browser tests to trigger a shrinking GC instead of a normal GC. r=jonco 2017-06-03 17:29:17 +02:00
Gabriele Svelto
3148018ed7 Bug 1359326 - Run the minidump analyzer directly from the CrashService code; r=bsmedberg
This patch removes the C++ code used to run the minidump analyzer when a
content process crashes, and replaces it with JS code within the CrashService
object. This removes the need for a separate shutdown blocker in C++ code and
allows end-to-end testing of the crash service functionality. Additionally
the exception handler code can be simplified since it's now only used to run
the crash reporter client.

The test added to test_crash_service.js covers computing the minidump SHA256
hash (bug 1322611) and of the minidump analyzer itself (bug 1280477).

MozReview-Commit-ID: LO5w839NHev
2017-05-11 14:03:50 +02:00
Mike Hommey
80d716afe1 Bug 1367583 - Add a unit test for links in resource:// listings. r=mossop
--HG--
extra : rebase_source : d18a21ae51cd135f798477489e902ea7431f1f1f
2017-05-25 10:54:01 +09:00
Thomas Nguyen
262347b745 Bug 1351146 - P2 - Update test case and usage of nsIRedirectHistoryEntry interface. r=dragana
MozReview-Commit-ID: s61VV5CLx8
2017-05-25 19:42:00 +02:00
Honza Bambas
b852ed009a Backout of 7f28c1084c47 (bug 1319111) for security checks breakage, r=me 2017-05-25 18:16:02 +02:00
Ehsan Akhgari
87f01dcea3 Bug 1363311 - Honor Set-Cookie headers in multipart/mixed response boundary headers in e10s mode; r=jdm 2017-05-24 17:32:32 -04:00
Jonathan Kew
d74c8673ea Bug 1364283 - Treat Aspirational scripts the same as Restricted, in anticipation of UAX#31 update. r=valentin 2017-05-23 23:33:46 +01:00
Honza Bambas
2dfe5d94b8 Bug 1319111 - Expose 'result principal URI' on LoadInfo as a source for NS_GetFinalChannelURI (removes some use of LOAD_REPLACE flag). r=bz 2017-05-23 08:09:00 -04:00
Christoph Kerschbaumer
e4f38c8d7c Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
Nathan Froyd
c1d1748428 Bug 1359490 - add an event loop spinning abstraction function; r=gerald
This function is arguably nicer than calling NS_ProcessNextEvent
manually, is slightly more efficient, and will enable better auditing
for NS_ProcessNextEvent when we do Quantum DOM scheduling changes.
2017-05-15 09:34:19 -04:00
Honza Bambas
d6d727a69e backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-13 13:55:11 +02:00
Wes Kocher
0a1e1fe23b Backed out changeset 95ff98f1c2e5 (bug 1319111) for talos failures a=backout
MozReview-Commit-ID: Gs09moFm5rQ
2017-05-12 18:24:42 -07:00
Honza Bambas
70f62bdec1 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-12 22:13:49 +02:00
Wes Kocher
0070a44b21 Backed out 3 changesets (bug 469228) for being a possible cause of frequent test_animSVGImage.html failures a=backout
Backed out changeset 1431c80b02ef (bug 469228)
Backed out changeset 8d46046a7367 (bug 469228)
Backed out changeset 2e22c0308a7e (bug 469228)

MozReview-Commit-ID: AMRASDPCWu3

--HG--
extra : rebase_source : 46b5ee0f67ffeaec31e1ef379a2e86c20cdee989
2017-05-10 10:13:54 -07:00
Kershaw Chang
2dd6b7d519 Bug 469228 - Part2: Modify tests that can not pass, r=Waldo 2017-05-10 03:49:00 +02:00
Kershaw Chang
5a57a9f87d Bug 469228 - Part1: Support keep-alive, r=Waldo 2017-05-10 03:48:00 +02:00
Johann Hofmann
c99cbe03c0 Bug 1337246 - Part 3 - Add a test for hostnameIsLocalIPAddress. r=valentin
MozReview-Commit-ID: 11nCKJFsv6i

--HG--
extra : rebase_source : 7ccb47feae6e60f979b560d6c4f2e8c0fce4d3d6
2017-05-07 21:12:45 +02:00
Shane Caraveo
075b7b243b Bug 1360052 handle cancel during http-on-examine-response, r=mayhemer
MozReview-Commit-ID: 607FLbUWjxT

--HG--
extra : rebase_source : 226e21dbbc9de386c43af788d7c375759ca17b1d
2017-05-05 15:54:19 -07:00
Honza Bambas
a1b64b4694 Bug 1319111 - Expose URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Junior Hsu
6f2d5288c1 Bug 1360163 - Add test for altData of cache index, r=michal
--HG--
extra : rebase_source : fcd588c232364fa7fc4cbd4e133bd32557231b3c
2017-04-28 17:14:21 +08:00
Wes Kocher
e141e24ffb Merge m-c to autoland, a=merge
MozReview-Commit-ID: 1peTFbNMVnU
2017-05-02 17:38:11 -07:00
Kershaw Chang
d8ed9c0d8a Bug 1355539 - Test case, r=mayhemer 2017-05-02 00:31:00 +02:00
Patrick McManus
d1c557fcfe Bug 1361099 - provide a way to map all dns to constant r=valentin
// When non empty all non-localhost DNS queries (including IP addresses)
// resolve to this value. The value can be a name or an IP address.
// domains mapped to localhost with localDomains stay localhost.
pref("network.dns.forceResolve", "");

Testing is the primary use case here - replay captive data on a 'fake
server' by directing all traffic to it at the DNS level. Chrome has
something similar.

MozReview-Commit-ID: 7AOgQZpZKec

--HG--
extra : rebase_source : ad2648a701fffecaae47cbfae17e7aa6badd50ee
2017-05-01 13:51:55 -04:00
Carsten "Tomcat" Book
1045b9730a merge mozilla-inbound to mozilla-central a=merge 2017-04-28 10:36:11 +02:00
Shing Lyu
c46f5d5baf Bug 1351548 - Remove reftest-stylo.lists. r=bholley
MozReview-Commit-ID: 8LoQ9xNnDnj
2017-04-28 11:15:58 +08:00
Sebastian Hengst
0936d33fb8 Backed out changeset 88c2a0b2dde5 (bug 1319111) for crashing Talos. r=backout 2017-04-28 00:16:39 +02:00
Milan Sreckovic
ff6839a8e1 Bug 1304605: Part 1. Unit tests, including performance, for NormalizeIPv4. r=valentin.gosu
MozReview-Commit-ID: KAecFlYTUfW

--HG--
extra : rebase_source : cddfd6fd05f33d2d2c50caf66669d87dc2f79ce7
2017-04-26 11:56:16 -04:00
Dragana Damjanovic
9a3cfa6017 Bug 1334776 - Store header names into nsHttpHeaderArray. r=mcmanus 2017-04-27 16:48:36 +02:00
Honza Bambas
0504ed64c3 Bug 1319111 - Exposing URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Sebastian Hengst
f46ebb0d94 Backed out changeset aebb0ceeb20a (bug 1351548) 2017-04-26 13:12:53 +02:00
Shing Lyu
96b400c04a Bug 1351548 - Remove reftest-stylo.lists. r=bholley
MozReview-Commit-ID: Gn0fbS4PZ7i
2017-04-26 18:21:52 +08:00
Patrick McManus
76887cd662 Bug 1359222 - fix prefs in test_http2.js r=nwgh
the spdy 3-1 pref doesn't do anything anymore

MozReview-Commit-ID: IfVHkQbiAEh

--HG--
extra : rebase_source : bd2dc3a4aec1b1e6d0d0a2adc45ca53a41a50db0
2017-04-24 16:58:12 -04:00
Nicholas Hurley
6474ffcc78 Bug 1348460 - make predictor::learn async. r=Ehsan
Serializing and sending IPC messages takes a lot of time, and it gets in the way of image loading. Making this functionality async gets out of the way of image loading (among other things).

The test has been changed to pump the main thread after calling predictor.learn so the multiprocess version can actually run to completion. This isn't strictly necessary in the single process version, but it makes the code changes (which are already pretty invasive) simpler.

MozReview-Commit-ID: 7jvhomlygbf

--HG--
extra : rebase_source : a779a498f83a2b02d2d634eff63d15f483793046
2017-04-17 17:22:46 -07:00
Alex Gaynor
9d47375e30 Bug 1074642 - When multiple HSTS headers are received, only consider the first. r=keeler,mcmanus
This implements a plaintext reading of RFC 6797, which says to only consider the
first, however it slightly conflicts with RFC 7230, which says that sending
multiple headers which can't be merged is illegal (except for a specific
whitelist which HSTS isn't in). Chrome also implements HSTS using RFC 6797's
description of the parsing algorithm.

r=mcmanus,keeler

MozReview-Commit-ID: E06uIk2IcEK

--HG--
extra : rebase_source : 4a67f067d2953d4b30c1019a61bbfc7073e55b3d
2017-04-20 10:03:53 -04:00
Junior Hsu
35f3699a4e Bug 1357647 - Convert names to RaceCacheWithNetwork form. r=valentin
--HG--
rename : netwerk/test/unit/test_race_cache_network.js => netwerk/test/unit/test_race_cache_with_network.js
extra : rebase_source : 908d6437a25d58be0c6dc4cd9a33ae77cd6d0dc8
2017-04-18 23:52:00 -04:00
Florian Queze
4c6a68d1c9 Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Florian Queze
ea6ac7cbf2 Bug 1356569 - Remove some more newURI null trailing parameters, r=jaws. 2017-04-14 21:51:40 +02: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
37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Shane Caraveo
1d28c1c9a8 Bug 1345893 - Handle Suspend() called on an HTTP channel from http-on-modify-request handler, r=mayhemer
MozReview-Commit-ID: LbW9zgnPzmu

--HG--
extra : rebase_source : 654246da41785e6aee690102b772a3a7ca487a75
2017-04-14 10:00:05 -07:00
Nicholas Hurley
f080574c7a Bug 1316683 - Part 1: Make nsILoadContext non-scriptable. r=ehsan 2017-04-12 11:32:05 -04:00
Nicholas Hurley
3e8ff0a8d4 Bug 1352146 - Don't allow status phrases in http/2. r=mcmanus
MozReview-Commit-ID: Cf30tUivhnB

--HG--
extra : rebase_source : d3b64d6ee9077f448ff9b8aaaff3d449655f0b62
2017-04-07 13:18:20 -07:00
Sebastian Hengst
2bb432f54a Backed out changeset c8199958741a (bug 1352146) 2017-04-08 01:44:22 +02:00
Nicholas Hurley
8a7a1ddf0e Bug 1352146 - Don't allow status phrases in http/2. r=mcmanus
MozReview-Commit-ID: Cf30tUivhnB

--HG--
extra : rebase_source : d3b64d6ee9077f448ff9b8aaaff3d449655f0b62
2017-04-07 13:18:20 -07:00
Sebastian Hengst
548852b3a4 merge mozilla-central to autoland. r=merge a=merge 2017-04-07 22:16:26 +02:00
Brendan Dahl
79c787d9b4 Bug 1353937 - Expose http server wrapped js object for private apis. r=mcmanus
Slimerjs relies on the hidden _start to create a server with a
port and host.
2017-04-07 09:18:33 -07:00
Valentin Gosu
68caf482f1 Bug 1351301 - Test that '.' is not required to accept subdomains in auth::URIMatchesPrefPattern. r=mayhemer
MozReview-Commit-ID: 4FXBDSo1bVG

--HG--
extra : histedit_source : 7b7f22dbc4dae53e53b68bc07b04dd84052e2bfa
2017-04-07 04:31:22 +03:00
Patrick McManus
3a1c3e7365 Bug 1281278 - test coverage for h2 push with brotli r=nwgh
MozReview-Commit-ID: 84LZRLsefJD

--HG--
extra : rebase_source : 3e09bebff4b2799471d96e9fcd06925ce36ff251
2017-04-06 13:40:26 -04:00