Chris Peterson
f35191ec18
Bug 1461243 - Part 2: Remove unused functions NS_CheckIsJavaCompatibleURLString() and NS_MakeRandomInvalidURLString(). r=jimm
...
These functions were only used in some Java workarounds in NPAPI _getproperty.
MozReview-Commit-ID: FqCd5ss1VqQ
2016-11-22 01:10:40 -08:00
Valentin Gosu
a8351c5f7b
Bug 1448058 - Remove nsIMutable from URI implementations r=mayhemer
...
* Also removes NS_TryToMakeImmutable, NS_TryToSetImmutable, URIIsImmutable
* NS_EnsureSafeToReturn, nsINetUtil.toImmutableURI
MozReview-Commit-ID: 5eFtFm2CQt7
2018-05-09 18:21:24 +02:00
Chris Peterson
5d6b16ea3b
Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
...
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent
MozReview-Commit-ID: KuUsnVe2h8L
2018-04-28 12:50:58 -07:00
Andi-Bogdan Postelnicu
99cba2dd23
Bug 1457411 - Update netwerk module to make use of newer methods introduced with c++11 and c++14. r=valentin
...
MozReview-Commit-ID: 666LNaHyiuQ
2018-04-30 19:46:04 +03:00
Christoph Kerschbaumer
0893b98e53
Bug 1454914: Exempt web-extensions from same-site cookie policy. r=valentin,kmag
2018-04-19 20:00:37 +02:00
Christoph Kerschbaumer
cf52757576
Bug 1454027 - Update SameSite cookie handling inside iframes.r=valentin
2018-04-17 18:25:59 +02:00
Christoph Kerschbaumer
547d999256
Bug 1453814: Treat any cross-origin redirects as foreign for same-site cookies. r=valentin
2018-04-13 15:42:00 +02:00
Andreea Pavel
ebf8959550
Backed out 2 changesets (bug 1453814) for failing dom/base/test/chrome/test_bug884693.xul on a CLOSED TREE
...
Backed out changeset 86a4c50c98f6 (bug 1453814)
Backed out changeset 4d37ff0c232e (bug 1453814)
2018-04-13 20:19:39 +03:00
Christoph Kerschbaumer
61e6f4b89d
Bug 1453814: Treat any cross-origin redirects as foreign for same-site cookies. r=valentin
2018-04-13 15:42:00 +02:00
Christoph Kerschbaumer
e23ecd42ac
Bug 1452496: Discard same-site cookie in cross site context. r=valentin
2018-04-12 12:52:51 +02:00
Nika Layzell
b4c313c43d
Bug 1437167 - Part 1: Stop using PRIntervalTime as the argument to CondVar::Wait and Monitor::Wait, r=mstange, r=froydnj
2018-04-10 17:49:47 -04:00
Christoph Kerschbaumer
e2074aeb9b
Bug 1286861: Update CookieService to enforce same site cookies. r=valentin
2018-04-08 19:52:05 +02:00
Henri Sivonen
6fbfac6f0d
Bug 1395114 - Remove nsIUnicharStreamLoader. r=emilio,michal
...
MozReview-Commit-ID: ECKNnJt80oK
2018-03-26 12:45:31 +03:00
Andrea Marchesini
cdb15164d7
Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug
2018-03-13 06:40:38 +01:00
Andrea Marchesini
c7ccfd0124
Bug 1431646 - Adding a completed boolean to know if the operation is completed in NS_ReadInputStreamToBuffer(), r=smaug
2018-02-28 07:14:41 +01:00
Jonathan Kingston
91e54f8c78
Bug 1435733 - Upgrade mixed display content pref. r=baku,ckerschb,francois,mayhemer
...
MozReview-Commit-ID: ETIgVF3zhRu
2018-02-05 15:37:27 +00:00
Valentin Gosu
58b69cefa1
Bug 1435671 - Reduce binary size by making NS_MutateURI.Apply not be a templated method r=mayhemer
...
We instead add a templated method NS_MutatorMethod that returns a std::function<nsresult(nsIURIMutator*)> which Apply then calls with mMutator as an argument.
The function returned by NS_MutatorMethod performs a QueryInterface, then calls the passed method with arguments on the result.
MozReview-Commit-ID: Jjqp7gGLG1D
2018-02-21 01:00:54 +01:00
nbeleuzu@mozilla.com
b62c960098
Backed out changeset c9dcce0a1068 (bug 1435671) for build bustages on nsIURIMutator.h. CLOSED TREE
2018-02-21 00:06:46 +02:00
Valentin Gosu
e594a13815
Bug 1435671 - Reduce binary size by making NS_MutateURI.Apply not be a templated method r=mayhemer
...
We instead add a templated method NS_MutatorMethod that returns a std::function<nsresult(nsIURIMutator*)> which Apply then calls with mMutator as an argument.
The function returned by NS_MutatorMethod performs a QueryInterface, then calls the passed method with arguments on the result.
MozReview-Commit-ID: Jjqp7gGLG1D
2018-02-20 22:39:40 +01:00
Andrea Marchesini
991fd07a91
Bug 1437152 - NS_ReadInputStreamToString doesn't reallocate the string if the size is passed, r=me
2018-02-12 18:49:36 +01:00
Andrea Marchesini
4947bdbbf5
Bug 1437152 - NS_ReadInputStreamToString doesn't reallocate the string if the size is passed, r=froydnj
2018-02-12 17:40:17 +01:00
Andrea Marchesini
3faaf5a84b
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
...
* * *
Bug 1425458 - Resource timing entries Workers - part 10 - Correct parameters in NS_NewChannel in nsDataObj.cpp, r=me
2018-01-24 17:17:31 +01:00
Narcis Beleuzu
427a1f4a33
Merge inbound to mozilla-central. a=merge
2018-01-24 23:56:14 +02:00
Valentin Gosu
a91ffced35
Bug 1432187 - Change code to use nsIStandardURLMutator.{init,setDefaultPort} r=mayhemer
...
MozReview-Commit-ID: K2Uy9ET3Ay6
2018-01-24 20:33:02 +01:00
Ben Kelly
b162cc9335
Bug 1231211 P12 Allow the ClientInfo and ServiceWorkerDescriptor to be passed to NS_NewChannel() for principal based loads. r=valentin
2018-01-23 10:38:54 -05:00
Luke Crouch
77eb3049d3
Bug 587523 - rename referer.userControlPolicy to referer.defaultPolicy r=valentin
...
MozReview-Commit-ID: A2hkYfdTCR9
2018-01-10 16:51:10 -06:00
Luke Crouch
8f3bdcf2d3
Bug 587523 - strict-origin-when-cross-origin referer policy in pbmode r=valentin
...
Adds new network.http.referer.defaultPolicy.pbmode pref which defaults to 2.
When setting referrer from default policy, checks mLoadInfo OriginAttributes
for mPrivateBrowsingId > 0 to detect PBM.
MozReview-Commit-ID: 7SfNk0dO1rW
2018-01-10 16:33:52 -06:00
Kate McKinley
400d720dc9
Bug 1424917 - Remove support for HSTS Priming. r=mayhemer, r=ckerschb
...
This patch removes support and tests for HSTS priming from the tree.
2018-01-10 11:07:00 -05:00
Michal Novotny
ba1765dd4d
Bug 1418752 - Firefox instahang on start after landing patch from bug #1392841.vr=honzab
...
Initialize in advance all security services whose initialization on background thread could cause a deadlock.
2017-12-19 21:08:15 -05:00
Cosmin Sabou
ad281ad5f6
Backed out changeset 5eff2c0351a9 (bug 1418752) for marionette harness fails on OS X at /builds/worker/workspace/build/src/netwerk/base/nsNetUtil.cpp:2669 r=backout on a CLOSED TREE
2017-12-18 19:50:00 +02:00
Michal Novotny
7b142f5828
Bug 1418752 - Firefox instahang on start after landing patch from bug #1392841 , r=honzab
...
Initialize in advance all security services whose initialization on background thread could cause a deadlock.
2017-12-15 05:45:00 +02:00
Andrea Marchesini
4cdec3b5e8
Bug 1424809 - Get rid of NS_NewPostDataStream, r=valentin
2017-12-12 06:01:17 -06:00
Andrea Marchesini
66a055c50b
Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 4 - Get rid of NS_NewAsyncStreamCopier, r=smaug
2017-11-22 11:19:25 +01:00
Andrea Marchesini
e4f3681898
Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 3 - NS_NewInputStreamPump, r=smaug
2017-11-22 11:18:57 +01:00
Andrea Marchesini
98ef19a386
Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 2 - NS_NewInputStreamChannel, r=smaug
2017-11-22 11:18:36 +01:00
Andrea Marchesini
78d1ee0fd0
Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 1 - NS_NewInputStreamChannelInternal, r=smaug
2017-11-22 11:18:18 +01:00
Andrea Marchesini
13d0a8a42d
Bug 1417448 - Better use of monitors in NS_ReadInputStreamToBuffer, r=smaug
2017-11-20 15:18:26 +01:00
Andrea Marchesini
f6d6d42580
Bug 1416724 - part 4 - AbstractThread::Dispatch return value check in netwerk/base, r=smaug
2017-11-15 07:58:03 +01:00
shindli
ec27542442
Backed out 4 changesets (bug 1416724) for failing /builds/worker/workspace/build/src/dom/media/hls/HLSDemuxer.cpp:89:5 r=backout on a CLOSED TREE
...
Backed out changeset 45352aa4319d (bug 1416724)
Backed out changeset 01d1e5263bcd (bug 1416724)
Backed out changeset bc854c315ec8 (bug 1416724)
Backed out changeset 35a50167485d (bug 1416724)
2017-11-15 09:49:04 +02:00
Andrea Marchesini
cefccfcc02
Bug 1416724 - part 4 - AbstractThread::Dispatch return value check in netwerk/base, r=smaug
2017-11-15 07:58:03 +01:00
Andrea Marchesini
2bd50bc36b
Bug 1415081 - part 0 - NS_ReadInputStreamToString must support nsIAsyncInputStream, r=smaug
2017-11-09 11:18:08 +01:00
Andrea Marchesini
c9ad4ef15f
Bug 1409329 - NS_NewBufferedOutputStream should take the ownership of the outputStream, r=smaug
2017-10-24 14:38:23 +02:00
Andrea Marchesini
304820957d
Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug
2017-10-19 11:39:30 +02:00
Andrea Marchesini
93901ebca1
Bug 1402888 - Remove nsIInputStreamPump::Init() offset and limit params, r=smaug
2017-09-26 07:21:44 +02:00
Andrea Marchesini
454b4f9e2a
Bug 1401204 - Get rid of NS_BackgroundInputStream and NS_BackgroundOutputStream, r=valentin
2017-09-19 17:52:28 +02:00
Christoph Kerschbaumer
4a56a5865f
Bug 1391011: CSP: Fix upgrade-insecure-requests for toplevel navigations when base it https. r=smaug
2017-08-21 08:57:14 +02:00
db76da33f3
Bug 1381282 - Change nsScriptErrorBase::InitWithWindowID so that it does not call GetSensitiveInfoHiddenSpec as much as now. r=bz r=valentin
2017-08-07 15:56:30 +02:00
Masatoshi Kimura
a9e30eaec8
Bug 1322874 - Get rid of nsIURI.originCharset. r=valentin.gosu
...
nsIURI.originCharset had two use cases:
1) Dealing with the spec-incompliant feature of escapes in the hash
(reference) part of the URL.
2) For UI display of non-UTF-8 URLs.
For hash part handling, we use the document charset instead. For pretty
display of query strings on legacy-encoded pages, we no longer care to them
(see bug 817374 comment 18).
Also, the URL Standard has no concept of "origin charset". This patch
removes nsIURI.originCharset for reducing complexity and spec compliance.
MozReview-Commit-ID: 3tHd0VCWSqF
2017-08-02 20:43:30 +09:00
Kershaw Chang
90b8b89de8
Bug 1366822 - Part2: Revert changes of NotifyCurrentTopLevelContentWindowChange, r=mayhemer
2017-07-27 23:42:00 +02:00
Nicholas Nethercote
8b5bdf0867
Bug 1380227 - Avoid many UTF16toUTF8 and UTF8toUTF16 conversions in nsStringBundle. r=emk.
...
Most of the names passed to nsIStringBundle::{Get,Format}StringFromUTF8Name
have one of the two following forms:
- a 16-bit C string literal, which is then converted to an 8-bit string in
order for the lookup to occur;
- an 8-bit C string literal converted to a 16-bit string, which is then
converted back to an 8-bit string in order for the lookup to occur.
This patch introduces and uses alternative methods that can take an 8-bit C
string literal, which requires changing some signatures in other methods and
functions. It replaces all C++ uses of the old methods.
The patch also changes the existing {Get,Format}StringFromName() methods so
they take an AUTF8String argument for the name instead of a wstring, because
that's nicer for JS code.
Even though there is a method for C++ code and a different one for JS code,
|binaryname| is used so that the existing method names can be used for the
common case in both languages.
The change reduces the number of NS_ConvertUTF8toUTF16 and
NS_ConvertUTF16toUTF8 conversions while running Speedometer v2 from ~270,000 to
~160,000. (Most of these conversions involved the string
"deprecatedReferrerDirective" in nsCSPParser.cpp.)
2017-07-12 15:13:37 +10:00