Sebastian Hengst
cdf4286868
Backed out changeset 09d64535bcda (bug 1216687), a7f1a289dd78, 4dbf06183e6c, 26318a5e3006, 9ae2af3cf86d (bug 1226909) for M(1,2,5) oranges. r=backout
2015-12-05 16:34:47 +01:00
Jonas Sicking
cd1c0c2552
Bug 1226909 part 3: Move logic of when to initiate CORS preflight into channels. Allow CORS preflight to happen when doing a same-origin to cross-origin redirect. r=ckerschb
2015-12-05 01:46:20 -08:00
Jonas Sicking
72e95852c2
Bug 1226909 part 2: Let CORS preflight logic grab information from nsILoadInfo rather than duplicate it. r=ckerschb
2015-12-05 01:46:20 -08:00
Mike Hommey
20f09fc139
Bug 1225682 - Don't use nsAuto{,C}String as class member variables in netwerk/. r=mcmanus
2015-12-02 11:04:37 +09:00
Nicholas Nethercote
4521fc3054
Bug 1186783 (part 4) - Replace nsBaseHashtable::EnumerateRead() calls in netwerk/ with iterators. r=valentin.
2015-11-19 16:46:24 -08:00
Phil Ringnalda
158aa5a061
Back out 9 changesets (bug 1214305) for e10s devtools browser_bug1045902_console_csp_ignore_reflected_xss_message.js failures
...
Backed out changeset 82929be36e95 (bug 1214305)
Backed out changeset e926606aefbf (bug 1214305)
Backed out changeset 226c83ca9a2a (bug 1214305)
Backed out changeset 88ab26108f2d (bug 1214305)
Backed out changeset 2e3e4f256d46 (bug 1214305)
Backed out changeset 347cd0f8f1e3 (bug 1214305)
Backed out changeset be072bba15fc (bug 1214305)
Backed out changeset 3b85acbe7be7 (bug 1214305)
Backed out changeset 49b930683c02 (bug 1214305)
2015-11-14 10:09:58 -08:00
Ehsan Akhgari
a59b309f54
Bug 1214305 - Part 7: Decide in the child process whether an intercepted channel should go through a secure upgrade; r=mcmanus
...
This is OK from a security perspective, since this decision only affects
whether the channel will be intercepted with the secure URI in the child
process. If the intercepting service worker decides to fall back to an
actual network request, we send the request to the parent process with
the original pre-upgrade URI, and the parent process will still be in
charge of whether a network visible HTTP request should be upgraded.
2015-11-02 11:27:00 -05:00
Ehsan Akhgari
c9c9fcb950
Bug 1214305 - Part 2: Refactor the logic for obtaining the secure upgraded URI into HttpBaseChannel; r=mcmanus
2015-11-02 11:27:00 -05:00
Ben Kelly
b53667eddf
Bug 1220007 P1 Allow ConsoleReportCollectors to flush to another collector. r=bz
2015-11-03 11:20:56 -08:00
Carsten "Tomcat" Book
d0f247f4b2
Backed out changeset c253b6bd00b1 (bug 1220007) for causing a bustage on B2g-emulator L builds which is only visible on b2g-inbound on a CLOSED TREE
2015-11-03 14:08:50 +01:00
Ben Kelly
40eef9d94e
Bug 1220007 P1 Allow ConsoleReportCollectors to flush to another collector. r=bz
2015-11-02 12:04:29 -08:00
Nate Hughes
26695fef92
Bug 1154309 - Add New Resource Timing Fields r=bz,hurley
2015-07-24 08:49:25 -07:00
Christoph Kerschbaumer
3b4ece9bd9
Bug 1194052 - Append to redirectchain before asyncopen() is called (r=sicking,mayhemer)
2015-10-31 15:22:01 -07:00
Ben Kelly
f68d2366c4
Bug 1215140 P3 Flush pending console reports on http channels. r=bz
2015-10-29 19:53:25 -07:00
Ben Kelly
79f69231f6
Bug 1215140 P2 Make HttpBaseChannel implement nsIConsoleReportCollector. r=bz
2015-10-29 19:53:25 -07:00
Josh Matthews
2016b77367
Bug 1173811 - Part 1: Propagate the response URL to intercepted channels when necessary (non-e10s). r=mayhemer,bkelly
2015-10-22 09:23:39 -04:00
Phil Ringnalda
9b09c6aa10
Back out 2 changesets (bug 1173811) for test_synthesized_response.js timeouts
...
CLOSED TREE
Backed out changeset 56bc1314e660 (bug 1173811 )
Backed out changeset 0ad51d302ba9 (bug 1173811 )
2015-10-21 20:21:05 -07:00
Josh Matthews
c9ea727e7e
Bug 1173811 - Part 1: Propagate the response URL to intercepted channels when necessary (non-e10s). r=mayhemer,bkelly
2015-10-21 00:05:40 -04:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Michael Layzell
46503fc4c6
Backout of bug 1207233 due to web-compat concerns
2015-10-14 16:06:35 -04:00
Ehsan Akhgari
8944956cd0
Bug 1213150 follow-up: fix build bustage
2015-10-09 11:27:05 -04:00
Ehsan Akhgari
e3870327f5
Bug 1213150 - Part 2: Rework ShouldPrepareForIntercept() in terms of subresource requests; r=jdm
2015-10-09 10:52:55 -04:00
Patrick McManus
ad5279560f
bug 1211916 - rename brotli http coding to br r=bagder
2015-10-06 11:03:50 -04:00
Patrick McManus
2a2222ff73
bug 1211580 - cancel brotli failures from channel instead of converter r=bagder
2015-10-05 14:11:26 -04:00
Ben Kelly
e0399323ae
Bug 1210941 P12 Remove http channel's ForceNoIntercept. r=jduell IGNORE IDL
2015-10-06 06:37:07 -07:00
Ben Kelly
9947c45f35
Bug 1210941 P2 Use LOAD_BYPASS_SERVICE_WORKER in HttpBaseChannel instead of mForceNoIntercept. r=jduell
2015-10-06 06:37:06 -07:00
Andrea Marchesini
526d67c413
Bug 1147749 - View source should go through service worker interception, r=bz, r=jduell
2015-10-05 14:46:24 +01:00
Ehsan Akhgari
54f96097cf
Bug 1204596 - Part 1: Avoid overriding the channel final URI when it gets intercepted; r=nsm,bkelly
2015-10-01 18:47:04 -04:00
Ben Kelly
86c80a9ed0
Bug 1208755 HttpBaseChannel::ShouldIntercept() should not assume every channel has a LoadInfo. r=ckerschb
2015-09-30 13:48:37 -07:00
Michael Layzell
f93a8e2029
Bug 1207233 - Don't provide a default content-type header if user calls XHR.setRequestHeader('Content-Type', ''), r=jduell
2015-09-24 16:54:11 -04:00
Patrick McManus
913a4bfe03
bug 366559 - patch 7, content-encoding brotli for https r=bagder
2015-09-22 12:55:23 -04:00
Nikhil Marathe
b4a78c2657
Bug 1184798 - Ensure workers loads are treated as non-subresource fetches. r=jdm
2015-09-17 11:56:41 -07:00
Patrick McManus
0a05347a67
bug 366559 - backout due to android build bustage patch 7 on CLOSED TREE r=backout
2015-09-22 12:47:25 -04:00
Patrick McManus
838aef42ab
bug 366559 - patch 7, content-encoding brotli for https r=bagder
2015-09-18 18:04:28 -04:00
Patrick McManus
52e2a465e6
bug 366559 - patch 6, support different content encodings for http vs https r=bagder
2015-09-19 18:51:32 -04:00
Phil Ringnalda
20263ea42c
Back out 3 changesets (bug 1204596) for b2g test_fetch_cors.html failures
...
Backed out changeset 2662a1ad4cad (bug 1204596)
Backed out changeset cfc4c4ecbbf5 (bug 1204596)
Backed out changeset d10c6f32ce46 (bug 1204596)
2015-09-16 20:51:17 -07:00
Ehsan Akhgari
abe701fe6b
Bug 1204596 - Part 1: Avoid overriding the channel final URI when it gets intercepted; r=nsm,bkelly
2015-09-16 20:38:19 -04:00
Patrick McManus
13da862969
bug 1204614 - use h2 per stream flow control to deal with suspended channels r=hurley
2015-09-11 15:53:27 -04:00
Ben Kelly
12f3bbc49b
Bug 1203680 P3 Add a method to ensure an http upload stream is directly cloneable. r=mcmanus
2015-09-15 10:15:45 -07:00
Ehsan Akhgari
19204c5a55
Bug 1199049 - Part 5: Preserve the CORS preflight information when setting up a replacement channel; r=jduell
2015-09-12 19:21:00 -04:00
Ehsan Akhgari
a92bd42d24
Bug 1199049 - Part 2: Add a channel API for requesting CORS preflights; r=jduell
2015-09-12 19:20:54 -04:00
Michael Layzell
4aa2d0bee4
Bug 1200337 - Part 1: Don't expose standard HTTP headers during interception in non-e10s mode, r=mcmanus
2015-09-12 12:46:09 -04:00
Ehsan Akhgari
68e82a9a17
Bug 815299 - Part 1: Add an API for setting an empty request header on an HTTP channel; r=dragana
2015-09-09 07:53:09 -04:00
Nigel Babu
9476f7e7c9
Backed out changeset 8a798c03d76c (bug 815299) for M4 bustage ON A CLOSED TREE
2015-09-09 09:12:41 +05:30
Ehsan Akhgari
95141592e9
Bug 1201229 - Return an empty string for a header when an error occurs; r=dragana
...
This fixes nsIHttpChannel::GetRequestHeader() and
nsIHttpChannel::GetResponseHeader() to always empty out their string
argument even when they fail. This prevents programming mistakes of
passing the same string object to multiple of these calls and using the
string value without checking the nsresult error code, since otherwise
the string value may be unchanged from a previous call.
Note that this doesn't affect JS consumers of these APIs since we only
empty out the string argument in case the method fails, which will be
translated to a JS exception, and the JS code will never get to see the
emptied string.
2015-09-08 20:08:35 -04:00
Ehsan Akhgari
c5831b5f29
Bug 815299 - Part 1: Add an API for setting an empty request header on an HTTP channel; r=dragana
2015-09-08 20:08:31 -04:00
Ben Kelly
6744524b58
Bug 1184607 P3 Add a RedirectMode flag to nsIHttpChannelInternal. r=nsm
...
* * *
Bug 1184607 P3 interdiff 001 http channel nits
2015-08-31 14:26:29 -07:00
Josh Matthews
36ca41bfa2
Bug 1179399 - Add a flag to HttpBaseChannel indicating whether interception is occurring. r=mayhemer
...
Landed on a CLOSED TREE
2015-08-17 16:42:46 -04:00
Nicholas Hurley
bb76d521d7
Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL
2015-07-31 13:50:08 -07:00
Eric Rahm
c3585b5e0a
Bug 1184275 - Remove warnings that URI is not a file URI. r=jduell
...
This error is handled properly and appears to happen due to legitimate usage.
The warnings are updated to just return the proper error code.
2015-07-23 11:03:25 -07:00