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

14635 Коммитов

Автор SHA1 Сообщение Дата
Wes Kocher 6ccfb3e58f Backed out 2 changesets (bug 1360581) for failures in test_workerupdatefoundevent.html a=backout CLOSED TREE
Backed out changeset d1c5998858a3 (bug 1360581)
Backed out changeset 4d81e7dfd020 (bug 1360581)

MozReview-Commit-ID: L0a89WRiv2R
2017-06-06 13:04:39 -07:00
Ehsan Akhgari 394af562be Bug 1370448 - Start poll watchdog timer off of a runnable from the main thread in order to avoid a false positive detected deadlock; r=dragana 2017-06-06 12:37:26 -04:00
Kershaw Chang 30314bebe8 Bug 1360581 - Part 2: Do channel annotation a bit earlier. r=francois
The current channel annotation is happened at nsChannelClassifier::OnClassifyComplete and this is too late because this channel might be already hit the network.
This patch adds a new API CheckIsTrackerWithLocalTable in nsChannelClassifier to check if the URI is in local blacklist and whitelist before calling BeginConnectActual.
Please note that whitelist will be checked only when TP is disabled.

--HG--
extra : rebase_source : 0761f6c7631bc934691c8d018be88514568a3aa1
2017-06-06 02:30:00 -04:00
Kershaw Chang b87b6ea582 Bug 1360581 - Part 1: Avoid nsChannelClassifier being created twice. r=mayhemer
The original code creates nsChannelClassifier and calls ShouldEnableTrackingProtection twice when TP is enabled. To avoid redundancy, this patch makes channel classifier as a data member in nsHttpChannel. Note that the data member is a weak ptr to prevent ref count cycle.

--HG--
extra : rebase_source : 4a77f1e51b38e27a065162cc702091aca2db51de
2017-06-06 02:35:00 -04:00
Nicolas B. Pierron aa07911158 Bug 1368675 - Expose nsICacheEntry fetchCount and lastFetched time as read-only on the nsICacheInfoChannel. r=valentin 2017-06-05 12:06:19 +00:00
Kris Maglione 0cd3e0a862 Bug 1368189: Move more code out of ExtensionUtils.jsm. r=mixedpuppy
Also removes some dead code.

A lot of the code in ExtensionUtils.jsm is not needed in all processes, and a
lot of the rest isn't needed until extension code runs. Most of it winds up
being loaded into all processes way earlier than necessary.

MozReview-Commit-ID: CMRjCPOjRF2

--HG--
extra : rebase_source : 37718eaf05a22b8ccb95f633cf7454bd7975cdce
2017-05-26 15:44:41 -07:00
Kris Maglione 6d24c4b91a Bug 1322235: Part 7 - DeCOMtaminate moz-extension protocol handler. r=billm
This removes unnecessary COM overhead from the extension protocol service,
particularly from the flag lookup code, which is called often, and from hot
paths. The devirtualized lookups should have virtually no overhead for
extensions without web-accessible resources, and very little overhead except
when resources are specified as non-prefix globs.

MozReview-Commit-ID: 4hQ7GuQSjvW

--HG--
extra : rebase_source : 61897a204abd915ad61852fa475cde2de51753f3
2017-05-23 14:40:38 -07:00
Sebastian Hengst 4607d210e9 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 8W8H7Bg9Tq6
2017-06-04 20:09:18 +02:00
Sebastian Hengst 92499bc6cf merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-06-03 20:18:26 +02:00
Sebastian Hengst 5e4755df68 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IdRgoZ9hiXq
2017-06-03 20:15:27 +02: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
Wes Kocher 269f7e9f5c Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9wTctDOsPpO
2017-06-02 17:31:31 -07:00
Randell Jesup 16390d923a Bug 1367578: Don't use PR_LogPrint() for logging now that we use LazyLog r=drno
MozReview-Commit-ID: K1KVCtpEPTZ
2017-06-02 15:50:05 -04:00
Sebastian Hengst b3c51a3e2d merge mozilla-central to autoland. r=merge a=merge 2017-06-03 20:16:49 +02:00
Nils Ohlmeier [:drno] f8f118d912 Bug 1335262: read and emit datachannel max-message-size. r=jesup
MozReview-Commit-ID: HwaoshovZIS

--HG--
extra : rebase_source : c1c171c53e5433607083dcd88fc9de0820e3382f
2017-05-31 20:58:53 -07:00
Ehsan Akhgari 322546b85a Bug 1368233 - Initialize all of the fields of AvailableEvent; r=mcmanus 2017-06-02 00:20:49 -04:00
Randall Barker 394db2d75e Bug 1367798 - Fix Fennec build on some environments by moving AppCacheStorage.cpp and CacheStorage.cpp from UNIFIED_SOURCES to SOURCES r=froydnj
MozReview-Commit-ID: ECO4KnQdJhh
2017-06-01 20:31:16 -07:00
Liang-Heng Chen 117950c731 Bug 1341266 - create http/2 stream for urgent-start; r=mcmanus
MozReview-Commit-ID: GIZuAmigK9n

--HG--
extra : rebase_source : 59c9ac3428943de90b2044f44d4632b084786d6b
2017-05-19 00:50:15 +08:00
Honza Bambas e98f5af878 Bug 1365307 - Throttling of HTTP transactions. r=mcmanus 2017-06-01 12:16:00 -04:00
Ryan VanderMeulen a185080885 Merge inbound to m-c. a=merge 2017-06-01 11:54:38 -04:00
Shih-Chiang Chien 738f6da3cf Bug 1015466 - Part 5, move tracking protection and safe browsing state update IPC to PBackground. r=mayhemer
NotifyTrackingProtectionDisabled/NotifyTrackingResource/SetClassifierMatchedInfo updates tracking protection and safe browsing states from parent to child.
They should at least handled by child process before OnStopRequest. Move them to PHttpBackgroundChannel can ensure that.

MozReview-Commit-ID: 8T6k9z9FgrI

--HG--
extra : rebase_source : fd26e2b4309a31e0a9bb16c9236eb4a1875518dc
2017-05-26 11:04:03 +08:00
Shih-Chiang Chien 2be0682f1d Bug 1015466 - Part 4, implement OnStartRequestSent/OnStopRequest/OnTransportAndData/OnDiversion on background channel. r=mayhemer
OnStartRequestSent is used to ensure the execution order between OnStartRequest and all other messsages sent over PBackground.
IPC messages sent before OnStartRequestSent can be processed immediately while received by content process.
IPC messages sent after OnSartRequestSent need to be pending until OnStartRequestReceived is called.

MozReview-Commit-ID: 5Vbb8SBQmW8

--HG--
extra : rebase_source : 81ddce949d2a658e227e1e67d7d4313f7c66513f
2017-05-15 18:58:31 +08:00
Shih-Chiang Chien e7a014adc4 Bug 1015466 - Part 3, PHttpBackgroundChannel lifecycle management. r=mayhemer
PHttpBackgroundChannel is created by content process because PBackground IPDL
can only be initiated from content process. The background channel deletion is
controlled by chrome process while PHttpChannel is going to be closed or canceled.

BackgroundChannelRegistrar is introduced for pairing HttpChannelParent and
HttpBackgroundChannelParent since they are created over different IPDL
asynchronously.

nsIParentRedirectingChannel.continueVerification is introduced to asynchronously
wait for background channel to be established on the new channel during the
Redirect2Verify phase.

MozReview-Commit-ID: 41l8ivan8iA

--HG--
extra : rebase_source : b8b6d7e7c037efaa9fc13df14191205c603e833a
2017-04-24 11:09:35 +08:00
Shih-Chiang Chien ccfe1721d6 Bug 1015466 - Part 2, break reference cycle among HttpChannelParent, HttpChannelParentListener, and nsHttpChannel while async open is failed. r=mayhemer
AsyncOpen procedure can failed and trigger FailedAsyncOpen IPC to do the clean up.
However FailedAsyncOpen might not complete if content process is destroyed at the meantime.
We can delay the timing of holding the strong reference to parent listener and channel object
to make sure no reference cycle is created by HttpChannelParent. In addition, clean up the
strong reference as soon as FailedAsyncOpen IPC is triggered.

MozReview-Commit-ID: LDOt0BpBgFe

--HG--
extra : rebase_source : 38e1128e8c361a2422ec4d8292b591ab3b3ef41f
2017-05-03 19:20:12 +08:00
Shih-Chiang Chien c878e800ea Bug 1015466 - Part 1, skeleton of PHttpBackgroundChannel. r=mayhemer
PHttpBackgroundChannel is introduced to deliver OnStopRequest/OnTransportAndData/OnProgress/OnStatus on background thread.
FlushedForDiversion/DivertMessages is moved to PHttpBackgroundChannel to ensure no more channel event are delivered after these two messages on the background channel.
OnStartRequestSent is introduced to synchronize the execution order between OnStartRequest (main thread IPC) and all other messages on PHttpBackgroundChannel.

MozReview-Commit-ID: HfqvPML6EKw

--HG--
extra : rebase_source : 423709763e1abf1362347bc2d3141e2d33aed46a
2017-05-15 16:01:10 +08:00
Shih-Chiang Chien e4a31c0691 Bug 1369878 - background channel might be closed in the middle of init procedure during shutdown. r=mayhemer
MozReview-Commit-ID: L1Om8h4fBfU

--HG--
extra : rebase_source : de87b3ff00b5af6c863d607209d076145e324669
2017-06-03 14:29:37 +08:00
Shih-Chiang Chien a06d325b04 Bug 1015466 - Part 0, fix warning/error covered by unified build. r=mayhemer
MozReview-Commit-ID: KUHl1ZBuddC

--HG--
extra : rebase_source : 1bc0649cbfc9cd5336d2fbec23fb8ee6eea5b44a
2017-01-16 18:20:42 +08:00
Liang-Heng Chen 2c98233925 Bug 1366932 - support extra JS context heap size pref for PAC; r=bagder
MozReview-Commit-ID: L7xzXZOnI0N

--HG--
extra : rebase_source : 8315f3126d1315b53269e56e5b69e106486d21dc
2017-05-24 14:24:55 +08:00
Ryan VanderMeulen b2f44e5181 Merge inbound to m-c. a=merge 2017-05-31 20:25:52 -04:00
Valentin Gosu 7b6dbd12fb Bug 1356097 - Improve correctness of HTTP_PAGE_* telemetry r=mcmanus
When the last request is removed from the load group, we report telemetry for the default load request. This was done without checking if the request was successful, which may cause us to report telemetry for failed requests as well.
Also, the NullHttpChannel had its timingEnabled attribute set to true, which could lead us to report invalid telemetry

MozReview-Commit-ID: 5w7rd2V17Xd

--HG--
extra : rebase_source : 60785ebc38da8880aa6ded668fed8af81c3d60e9
2017-05-29 22:15:37 +02:00
Valentin Gosu a1c45c3558 Bug 1368549 - Remove MOZ_WIDGET_GONK from netwerk/* r=mcmanus
MozReview-Commit-ID: J2njLbNwlco

--HG--
extra : rebase_source : ccb35cb5845024c1bf7b448ebcec451bab264e8b
2017-05-29 22:09:04 +02:00
Thomas Nguyen fd95099ac3 Bug 1361699 - Add buffer when writing hashstore to file r=gcp,mcmanus
We write a lot of 4-bytes prefixes to file which call many system calls.
We should use a buffer and only write to file if the buffer is full or
finish writing. nsIBufferedOutputStream is a good candidate to do that

MozReview-Commit-ID: CzGOd7iXVTv

--HG--
extra : rebase_source : 25f1ce804b9a53e0a0a4023a1aa91f1a0ed98547
2017-05-19 13:17:07 +08:00
Honza Bambas d02e6da08f Bug 1356538 - Carry class-of-service flags to redirected channels. r=mcmanus
--HG--
extra : rebase_source : a0688aa4f470fe377de3cc377f2eb8a2c67bef0c
2017-05-31 05:06:00 -04:00
Dragana Damjanovic edd1ee7e13 Bug 1357678 - Make stream converters do omt. r=mayhemer 2017-05-30 14:11:34 +02:00
Junior Hsu 1eb95dd7bf Bug 1363659 - Ensure not sending IPC constructor in HTTP channel when shutting down, r=nwgh 2017-05-26 03:10:00 +02:00
Junior Hsu 6d29e8963d Bug 1363659 - Ensure not sending file channel constructor when shutting down, r=valentin 2017-05-26 03:10:00 +02:00
Junior Hsu 90f88bd0ac Bug 1363659 - Ensure not sending IPC constructor in FTP channel when shutting down, r=valentin 2017-05-26 03:09:00 +02:00
Junior Hsu b2a039ad47 Bug 1363659 - Ensure not sending data channel constructor when shutting down, r=valentin 2017-05-26 03:09:00 +02:00
Junior Hsu d3b4793122 Bug 1363659 - Ensure not sending dns request constructor when shutting down, r=valentin 2017-05-26 03:08:00 +02:00
Junior Hsu 78f744d40d Bug 1363659 - Ensure not sending cookie service constructor when shutting down, r=ehsan 2017-05-26 03:08:00 +02:00
Junior Hsu 6f1e15db21 Bug 1363659 - Ensure not sending necko IPC constructor when shutting down, r=valentin 2017-05-26 03:06:00 +02:00
Sebastian Hengst d8e719c8a3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CEadD9RweN4
2017-05-27 10:00:59 +02:00
Arthur Edelstein 2895153229 Bug 1367564 - Use pref name 'referer.hideOnionSource' everywhere. r=mcmanus
Correcting my mistake in
https://bugzilla.mozilla.org/show_bug.cgi?id=1305144
2017-05-24 14:12:00 -04:00
Junior Hsu cfb7c13b7c Bug 1367353 - Correct the spelling to NETWORK_RACE_CACHE_BANDWIDTH*. r=michal, data-r=bsmedberg 2017-05-24 19:46:00 -04: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
Thomas Nguyen 4fcb94e968 Bug 1351146 - P1 - Add more information to redirect chains. r=dragana
In order to provide more details context of how client arrived at the unsafe
page, particularly in redirect case, we may have to add more information to
redirect chains including:
- referrer (if any)
- remote address.
- URL

We may want to use an idl interface instead of nsIPrincipal to store these
information

MozReview-Commit-ID: 3Uh4r06w60C
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
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
Ryan VanderMeulen c5b2958154 Merge inbound to m-c. a=merge 2017-05-24 20:45:23 -04: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