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

17467 Коммитов

Автор SHA1 Сообщение Дата
Honza Bambas c6e223eca9 Bug 1522093 - Make sure to not reuse a connection to a proxy that returns an error response we can't gracefully handle, r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D19403

--HG--
extra : moz-landing-system : lando
2019-02-12 22:44:30 +00:00
Andreea Pavel e09dd2a72d Backed out 2 changesets (bug 1509738) for failing propagate-nonce-external-classic.html on a CLOSED TREE
Backed out changeset 5cbc3f79a126 (bug 1509738)
Backed out changeset 44a945b21f87 (bug 1509738)
2019-02-13 02:18:28 +02:00
Razvan Maries 35355d29bc Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-02-12 23:59:47 +02:00
Razvan Maries bb3267ce86 Backed out changeset 2161b075ce64 (bug 1521304) for high frequency mochitest failure, a=backout 2019-02-12 21:58:27 +02:00
Christoph Kerschbaumer 6111ccf5fd Bug 1509738: CSP snapshot nonce at load start time r=baku
Differential Revision: https://phabricator.services.mozilla.com/D19519

--HG--
extra : moz-landing-system : lando
2019-02-12 18:01:32 +00:00
Razvan Maries 189f0c1e6f Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-02-12 23:57:41 +02:00
Randell Jesup f3e7d33519 Bug 1521304: Move some Mutexes r=tuexen,dminor 2019-02-12 07:28:27 -05:00
Jonathan Kingston 3421b8fcff Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
Replacing js and text occurences of asyncOpen2
Replacing open2 with open

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

--HG--
rename : layout/style/test/test_asyncopen2.html => layout/style/test/test_asyncopen.html
extra : moz-landing-system : lando
2019-02-12 16:08:25 +00:00
Coroiu Cristina 92656e7b34 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2019-02-12 18:35:15 +02:00
Michal Novotny 126cc12cee Bug 1527005 - WebSocketChannel hangs waiting for OnTransportAvailable when server responds to upgrade request with HTTP/1.0, r=dragana
We must fail if server responds with HTTP/1.0 because HTTP upgrade requires at least HTTP/1.1 and nsHttpChannel correctly won't perform the upgrade, i.e WebSocketChannel::OnTransportAvailable won't be called.

--HG--
extra : rebase_source : a5af566c8a8dfc5e50aa74fcc1f0e552937e4b4e
2019-02-11 10:11:00 +02:00
Randell Jesup 88ffa67e55 Bug 1521304: Move some Mutexes r=tuexen,dminor 2019-02-12 07:28:27 -05:00
Kris Maglione 51aa53dc4e Fix botched backout (bug 1524687). r=bustage
--HG--
extra : rebase_source : 9dbfd1799f73097f30c8d32535b2ba9a2f6afd59
extra : amend_source : 7e8308ee4cc33864453a3781edd60a82c5ff6437
2019-02-14 17:54:00 -08:00
Daniel Varga 1e9aa9e1fc Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
2019-02-15 03:51:05 +02:00
Kris Maglione dfc6aeef42 Backout most of bug 1524687 for Windows PGO xpcshell selftest failures. r=backout 2019-02-14 17:17:36 -08:00
Jorg K 15ee3d3e8f Bug 1527236 - Allow % in URLs for Thunderbird. r=valentin 2019-02-12 18:43:30 +01:00
Cosmin Sabou 4c0553bb3e Merge mozilla-central to mozilla-inbound. 2019-02-15 20:54:03 +02:00
Michal Novotny b631b7b31e Bug 1527890 - WebSocketChannel can hang waiting for OnTransportAvailable when HTTP request isn't upgraded, r=valentin
Canceling mOpenTimer is moved to CallStartWebsocketData which is called after calling OnStartRequest as well as OnTransportAvailable.
2019-02-15 00:10:00 +02:00
Valentin Gosu 08d4ca8e92 Bug 1517025 - Do not allow percent symbol in URL hostnames r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D16694

--HG--
extra : moz-landing-system : lando
2019-02-11 21:49:19 +00:00
Ehsan Akhgari 3f4f286ad1 Bug 1525960 - Fix a leak in NS_GetInnermostURIHost(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D19011

--HG--
extra : moz-landing-system : lando
2019-02-11 14:35:02 +00:00
Valentin Gosu 6c62662e9d Bug 1520062 - Also release listeners in HttpChannelChild::ActorDestroy r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D16549

--HG--
extra : moz-landing-system : lando
2019-02-20 16:06:08 +00:00
Valentin Gosu dd38890459 Bug 1520062 - Don't exit HttpChannelChild::DoOnStopRequest if call returns error code r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D16548

--HG--
extra : moz-landing-system : lando
2019-02-20 16:06:17 +00:00
Byron Campen [:bwc] 5ca6cf53af Bug 1521879 - Part 1.1: Compensate for changes to how IPC headers are generated in the last rebase. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D19975

--HG--
rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.h => dom/media/webrtc/MediaTransportParent.h
rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.cpp => media/webrtc/signaling/src/peerconnection/MediaTransportParent.cpp
extra : moz-landing-system : lando
2019-02-21 20:25:07 +00:00
Byron Campen [:bwc] 7ab14bdf2c Bug 1521879 - Part 1: IPC-based MediaTransport implementation r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D17273

--HG--
extra : moz-landing-system : lando
2019-02-21 20:24:54 +00:00
shindli 6b820cdfea Backed out 6 changesets (bug 1522637) for en-US failures in testing/firefox-ui/tests/functional/safebrowsing/test_notification.py TestSafeBrowsingNotificationBar.test_notification_bar CLOSED TREE
Backed out changeset 18a809d53298 (bug 1522637)
Backed out changeset 9e9fd362dd8f (bug 1522637)
Backed out changeset f1191be4243a (bug 1522637)
Backed out changeset 5a8067fd848c (bug 1522637)
Backed out changeset 5f49cd87b1bd (bug 1522637)
Backed out changeset f82ba91f5ea2 (bug 1522637)
2019-02-09 03:12:53 +02:00
Nika Layzell 37ec17b0f5 Bug 1522637 - Part 2: Include BrowsingContextID in LoadInfo for subdocument loads, r=valentin
Depends on D18602

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

--HG--
extra : moz-landing-system : lando
2019-02-08 17:36:00 +00:00
Dragana Damjanovic 05dfecef50 Bug 1516806 - Remove SPDY_VERSION2 telemetry probe. r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D19138

--HG--
extra : moz-landing-system : lando
2019-02-08 13:16:11 +00:00
Dragana Damjanovic d26590be47 Bug 1520642 - Cancel dns requests before cleaning up db. r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D18989

--HG--
extra : moz-landing-system : lando
2019-02-08 09:34:34 +00:00
Oana Pop Rus 1f2fab8f20 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-08 12:11:54 +02:00
Dragana Damjanovic bbcb8a93f2 Bug 1520483 - Return proper error if the nss layer encounters an error on the http tunnel. r=valentin,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D17952

--HG--
extra : moz-landing-system : lando
2019-02-08 09:13:21 +00:00
Ehsan Akhgari 3219a47956 Bug 1527505 - Part 11: Avoid looking up the effective TLD service repeatedly inside the permission manager; r=nika
Depends on D20238

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

--HG--
extra : moz-landing-system : lando
2019-02-21 22:54:34 +00:00
Ehsan Akhgari b5a2bda7ee Bug 1527505 - Part 9: Make nsIPermissionManager accept ACString arguments for permission types instead of raw C strings; r=nika
This will mean that in places like the tight loop in GetTypeIndex()
we would no longer require calling strlen() on the input type argument
once per loop iteration.

Depends on D20236

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

--HG--
extra : moz-landing-system : lando
2019-02-21 22:54:28 +00:00
Cosmin Sabou 7d542a11f7 Merge mozilla-central to mozilla-inbound. 2019-02-21 05:44:20 +02:00
Chris Peterson 8e1848413c Bug 1507049 - Rename MOZ_CRASH_UNSAFE_OOL MOZ_CRASH_UNSAFE. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D18515

--HG--
extra : rebase_source : e8ef6eec0f7542bb381e2da81ae6431b2828aabc
extra : source : a8c262b4a2579e6def1b3a5a8220f5197b443e34
2019-02-03 00:09:37 -08:00
Dorel Luca 18685fb376 Backed out changeset 661ca61b9413 (bug 1520483) for Android build bustage 2019-02-07 16:54:13 +02:00
Dragana Damjanovic 4da339d8a3 Bug 1521639 - Fix locking in TRRService. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D17822

--HG--
extra : moz-landing-system : lando
2019-02-01 20:46:00 +00:00
Tom Schuster ae727bbc13 Bug 1525006 - Block ES6 modules with wrong MIME type r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D19270

--HG--
extra : moz-landing-system : lando
2019-02-12 13:16:52 +00:00
Tom Schuster a60d06b5ef Bug 1525006 - Add a new internal ContentPolicyType for ES6 modules. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D19269

--HG--
extra : moz-landing-system : lando
2019-02-12 13:16:32 +00:00
Dorel Luca 313155b999 Backed out 4 changesets (bug 1521808) for build bustage. CLOSED TREE
Backed out changeset 80aeea5f7abe (bug 1521808)
Backed out changeset c8c151d92c03 (bug 1521808)
Backed out changeset cc0a5c7dabb4 (bug 1521808)
Backed out changeset 8d5174a560fa (bug 1521808)
2019-02-12 14:54:45 +02:00
Valentin Gosu 005dcbada4 Bug 1521808 - Implement process switching based on Cross-Opener-Origin-Policy header r=nika,qdot
* New topLevel loads get the nsILoadInfo.openerPolicy of the current top level document
* Parsing the Cross-Opener-Origin-Policy of a channel will update mLoadInfo.openerPolicy and this value will get propagated to the child process.
* SessionStore now checks nsIHttpChannel.hasCrossOriginOpenerPolicyMismatch (preffed off) and performs a process switch if needed

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

--HG--
rename : toolkit/components/remotebrowserutils/tests/browser/browser_httpResponseProcessSelection.js => toolkit/components/remotebrowserutils/tests/browser/browser_httpCrossOriginOpenerPolicy.js
extra : moz-landing-system : lando
2019-02-12 12:16:58 +00:00
Valentin Gosu 1c83ed37de Bug 1521808 - Add xpcshell-test for CrossOriginOpenerPolicy r=mayhemer,nika,annevk
Differential Revision: https://phabricator.services.mozilla.com/D18246

--HG--
extra : moz-landing-system : lando
2019-02-12 12:16:28 +00:00
Valentin Gosu f8fe725d87 Bug 1521808 - Use topWindowPrincipal for CrossOriginOpenerPolicy check r=mayhemer,nika
- Adds nsIHttpChannelInternal.setTopWindowPrincipal used to pass the principal from the child to the parent

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

--HG--
extra : moz-landing-system : lando
2019-02-12 12:16:16 +00:00
Valentin Gosu 4ef1efc776 Bug 1521808 - Implement Cross-Origin-Opener-Policy header r=nika,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D18119

--HG--
extra : moz-landing-system : lando
2019-02-12 12:15:54 +00:00
Dragana Damjanovic d86d9fb9b1 Bug 1520483 - Return proper error if the nss layer encounters an error on the http tunnel. r=valentin,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D17952

--HG--
extra : moz-landing-system : lando
2019-02-01 10:57:14 +00:00
ffxbld 60847f1c1f No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D18967

--HG--
extra : moz-landing-system : lando
2019-02-07 13:54:00 +00:00
Kris Maglione 7592818b2d Bug 1524688: Part 46 - Convert DNSServiceDiscovery to static registration. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D18456

--HG--
rename : netwerk/dns/mdns/libmdns/nsDNSServiceDiscovery.js => netwerk/dns/mdns/libmdns/DNSServiceDiscovery.jsm
extra : source : a9fb74beaf2b79c1a291dc223154815884fcb721
2019-01-30 11:12:55 -08:00
Kris Maglione 0acda0c01f Bug 1524688: Part 46 - Convert DNSServiceDiscovery to static registration. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D18456

--HG--
rename : netwerk/dns/mdns/libmdns/nsDNSServiceDiscovery.js => netwerk/dns/mdns/libmdns/DNSServiceDiscovery.jsm
extra : rebase_source : 1068b39aa55145edf0e6d0ca664bdf84d1144335
2019-01-30 11:12:55 -08:00
Kris Maglione acfa5d8a90 Bug 1524688: Part 45 - Convert network HTTP JS components to static registration. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D18455

--HG--
rename : netwerk/protocol/http/UAOverridesBootstrapper.js => netwerk/protocol/http/UAOverridesBootstrapper.jsm
rename : netwerk/protocol/http/WellKnownOpportunisticUtils.js => netwerk/protocol/http/WellKnownOpportunisticUtils.jsm
extra : source : fe106b369a722814e2cfa3597ba1295f6deeae9e
2019-01-30 11:09:50 -08:00
Kris Maglione b08752c4e7 Bug 1524688: Part 45 - Convert network HTTP JS components to static registration. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D18455

--HG--
rename : netwerk/protocol/http/UAOverridesBootstrapper.js => netwerk/protocol/http/UAOverridesBootstrapper.jsm
rename : netwerk/protocol/http/WellKnownOpportunisticUtils.js => netwerk/protocol/http/WellKnownOpportunisticUtils.jsm
extra : rebase_source : e699b373bf577c51a598474537567f83a2a0d29c
2019-01-30 11:09:50 -08:00
Kris Maglione b2f85650a1 Bug 1524687: Part 12 - Convert everything else to static registration. r=erahm
--HG--
extra : source : 625f71135038f79c075f758e316fbb00097c9a18
extra : intermediate-source : 7a1ef487a9e74d66b112034051e49b77023860b8
extra : histedit_source : 88d19dbee4a99faa191e49e2847c4c59aba05b0c%2C5ee702f97153152d31124e0c5f3e8318cbeb3195
2019-01-29 16:03:41 -08:00
Kris Maglione b718cffa0e Bug 1524687: Part 12 - Convert everything else to static registration. r=erahm
--HG--
extra : rebase_source : 176f8fb3716d467e34a04d353b44acec314808cf
extra : source : 625f71135038f79c075f758e316fbb00097c9a18
2019-01-29 16:03:41 -08:00
Kris Maglione 47c2c349a9 Bug 1524687: Part 12 - Convert everything else to static registration. r=erahm
--HG--
extra : rebase_source : 17756d218c39acadefbc6af9ef7ce31beef1ff36
2019-01-29 16:03:41 -08:00
arthur.iakab 470dbf03b6 Backed out 5 changesets (bug 1524687) for causing build bustages on platform.h CLOSED TREE
Backed out changeset 0f06a6b51bfe (bug 1524687)
Backed out changeset 7a1ef487a9e7 (bug 1524687)
Backed out changeset accad7b4cbc7 (bug 1524687)
Backed out changeset eb33f7e6467c (bug 1524687)
Backed out changeset 86cf09db340b (bug 1524687)
2019-02-21 02:04:02 +02:00
Kris Maglione 95c0cf7aa9 Bug 1524687: Part 12 - Convert everything else to static registration. r=erahm
--HG--
extra : rebase_source : ccc1b4f8559152237e523b67ea76e2b406c1cb11
extra : intermediate-source : e8ad5619116c31fc4d38e0e789ddb9b5d2a5bb25
extra : source : 625f71135038f79c075f758e316fbb00097c9a18
2019-01-29 16:03:41 -08:00
Coroiu Cristina 0658997d2b Backed out changeset 5e586fc7af16 (bug 1527890) for causing leaks on a CLOSED TREE 2019-02-14 22:14:41 +02:00
Michal Novotny 2bee465402 Bug 1527890 - WebSocketChannel can hang waiting for OnTransportAvailable when HTTP request isn't upgraded, r=valentin
Canceling mOpenTimer is moved to CallStartWebsocketData which is called after calling OnStartRequest as well as OnTransportAvailable.
2019-02-14 06:22:00 +02:00
Michal Novotny 8412fac97f Bug 1525900 - Remove unused code from old cache. r=mayhemer 2019-02-07 05:49:00 +02:00
Chris Peterson 576887f4d2 Bug 1511763 - Part 2: Make GetSpoofedUserAgent() infallible. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D13658

--HG--
extra : rebase_source : 467a960f591f5e2043ca8fc504730ad38358dcde
extra : intermediate-source : 08d3f83d23c553e44ba7be1cbc3d93cd2b0b1216
extra : source : c20507956e062eecf23f0856c8b5c372621891cf
2018-12-02 21:24:16 -08:00
Kershaw Chang 3f9e7e57ed Bug 1522786 - Remove unused class member mHasQueryString r=mayhemer
Simply remove unused class member mHasQueryString and HasQueryString() method.

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

--HG--
extra : moz-landing-system : lando
2019-02-06 18:16:59 +00:00
Alex Gaynor 0f01791ffc Bug 1512990 - Part 4 - remove declarations of Recv/Answer methods from IPDL protocol base class; r=froydnj
For cases where the class has direct calls (that is, we cast `this` to the
subclass before making the call) no longer declare Recv/Answer methods on the
base class at all. This should ensure that slots for them are not generated in
vtables, and also allow the derived class to choose the method signature (e.g.
whether it wants to take something by reference or by value).

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

--HG--
extra : moz-landing-system : lando
2019-02-06 15:58:43 +00:00
Alex Gaynor 984f0333ea Bug 1512990 - Part 3 - remove declarations of Alloc/Dealloc methods from IPDL protocol base class; r=froydnj
For cases where the class has direct calls (that is, we cast `this` to the
subclass before making the call) no longer declare Alloc/Dealloc methods on the
base class at all. This should ensure that slots for them are not generated in
vtables, and also allow the derived class to choose the method signature (e.g.
whether it wants to take something by reference or by value).

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

--HG--
extra : moz-landing-system : lando
2019-02-06 15:58:07 +00:00
Alex Gaynor 75c7d1fa76 Bug 1512990 - Part 2 - implement direct calls in the IPDL compiler; r=froydnj
When calling a Recv/Alloc/Dealloc method on most types, cast `this` to the
derived class.

There is a heuristic to figure out what the correct derived type is. There is a
blacklist of types which we can't do direct calls on for the moment, as well as
an override for types that do work with direct calls but which don't match the
heuristic.

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

--HG--
extra : moz-landing-system : lando
2019-02-06 15:57:37 +00:00
Ehsan Akhgari 23415bc742 Bug 1525208 - Part 8: Avoid the overhead of calling NS_GetInnermostURI() in nsEffectiveTLDService; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D18650
2019-02-05 18:49:36 -05:00
Ehsan Akhgari bef922ae82 Bug 1525208 - Part 4: Devirtualize the call to nsEffectiveTLDService::GetBaseDomain() from ThirdPartyUtil::GetBaseDomain(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D18646
2019-02-05 18:49:36 -05:00
Ehsan Akhgari 3fdf1faccf Bug 1525208 - Part 3: Cache the result of calling PR_StringToNetAddr() since it may be expensive; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D18645
2019-02-05 18:49:36 -05:00
Cosmin Sabou 297a7340db Backed out 8 changesets (bug 1525208) for assertion mass failures on dom/base/ThirdPartyUtil. CLOSED TREE
Backed out changeset 7a679beef53e (bug 1525208)
Backed out changeset 4a97d6a5440f (bug 1525208)
Backed out changeset 40cdbb0f3e33 (bug 1525208)
Backed out changeset 461bf050580c (bug 1525208)
Backed out changeset 529fc4945c00 (bug 1525208)
Backed out changeset 80d33523be6e (bug 1525208)
Backed out changeset 6afabd86b213 (bug 1525208)
Backed out changeset bc4389577ba8 (bug 1525208)
2019-02-05 21:04:45 +02:00
Ehsan Akhgari 5693611ad4 Bug 1525208 - Part 8: Avoid the overhead of calling NS_GetInnermostURI() in nsEffectiveTLDService; r=baku
Depends on D18649

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

--HG--
extra : moz-landing-system : lando
2019-02-05 18:12:03 +00:00
Ehsan Akhgari 4eb46262c5 Bug 1525208 - Part 4: Devirtualize the call to nsEffectiveTLDService::GetBaseDomain() from ThirdPartyUtil::GetBaseDomain(); r=baku
Depends on D18645

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

--HG--
extra : moz-landing-system : lando
2019-02-05 18:11:50 +00:00
Ehsan Akhgari b613760796 Bug 1525208 - Part 3: Cache the result of calling PR_StringToNetAddr() since it may be expensive; r=baku
Depends on D18644

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

--HG--
extra : moz-landing-system : lando
2019-02-05 18:11:48 +00:00
Jed Davis bcff2dd108 Bug 1487287 - Synchronize GeckoChildProcessHost destruction with launching. r=mccr8
In order to enable asynchronous launch, destruction of
GeckoChildProcessHost (and its subclasses) has to be delayed until after
launching (or anything else that might be made asynchronous in the
future) has completed, to prevent use-after-free.  However, there are
other dependencies on process hosts always being destroyed on the I/O
thread, so refcounting would be difficult to use.

Instead, GeckoChildProcessHost now may not be destroyed directly, but
must go through a method that handles the scheduling.

There are also some minor cleanups to the affected headers (removed
duplicate access modifiers, and made PluginProcessParent final).

Depends on D18010

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

--HG--
extra : moz-landing-system : lando
2019-02-05 00:15:20 +00:00
Andrea Marchesini be2551ab2c Bug 1523702 - Max IPC message size for InputStream serialization, r=smaug
The total size of an IPC inputStream message must be less than 1mb. When we
compose the message for the multiplex stream, each sub stream collaborates with
its own size, deciding if it's better to be a pipe stream (IPCRemoteStream) or
a full serialized one.

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

--HG--
extra : moz-landing-system : lando
2019-02-04 22:50:51 +00:00
Andrea Marchesini 7b5225038d Bug 1524864 - nsMIMEInputStream should expose nsISeekableStream only if the underlying stream is seekable, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D18528

--HG--
extra : moz-landing-system : lando
2019-02-04 21:50:47 +00:00
Sylvestre Ledru 14486004b6 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-02-04 19:10:18 +00:00
Kershaw Chang 9c911c6c2f Bug 1451293 - P2: Call SetConnRefTaken r=michal
In part1 patch[1], nsHttpTransaction::GetConnectionReference is removed in order to make sure single thread access to nsHttpTransaction::mConnection. Since we called mH2WSTransaction->SetConnRefTaken in nsHttpTransaction::GetConnectionReference, we need to find a new place to do this.
This patch adds a new function nsHttpTransaction::SetH2WSConnRefTaken to call mH2WSTransaction->SetConnRefTaken.



[1]  https://phabricator.services.mozilla.com/D17221

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

--HG--
extra : moz-landing-system : lando
2019-02-04 08:42:11 +00:00
Kershaw Chang a9a7383ac8 Bug 1451293 - single thread access to ConnectionHandle::mConn r=mayhemer
The goal of this patch is to make sure single thread access to ConnectionHandle::mConn.
It contains:
- Remove nsHttpTransaction::GetConnectionReference()
- For the cases where we need the sticky connection, save the reference of the sticky connection's transaction instead. Then, the sticky connection will be extracted in socket thread and set it to the new transaction.

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

--HG--
extra : moz-landing-system : lando
2019-02-04 08:42:09 +00:00
Mike de Boer 481ae95c00 Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey
This is a rollup of all the patches that have landed on the cedar project branch:

891252fdd0
Bug 1492475 - Part 1: Migrate most, if not all nsSearchService consumers to use async APIs. r=florian

79b2eb2367
Bug 1492475 - Part 2: Move nsIBrowserSearchService.idl to toolkit/components/search/nsISearchService.idl and update references. r=florian

a947d3cdf0
Bug 1492475 - Part 3: The search service init() method should simply return a Promise. r=florian

c1e172dfac
Bug 1492475 - Part 4: Remove the synchronous initialization flow. r=florian

cd41189eac
Bug 1492475 - Part 5: Since async initialization of the search service now is implicit behavior, remove the distinctive verbiage used internally. r=florian

2ae7189dfa
Bug 1492475 - Part 6: Update the cache build task to work with an actual Promise and re-initialize only once at the same time - all to fix race conditions here. r=florian

c8ee92973f
Bug 1492475 - Part 7: Make the region fetch not block the init flow, to ensure it's as fast as possible. r=florian

c44e674e16
Bug 1492475 - Part 8: Introduce an init flag, which can only be used privately, that allows to explicitly skip waiting for the region check process to complete. r=florian

6c79eaf1d3
Bug 1492475 - Part 9: Update unit tests to stop using 'currentEngine', in favor of 'defaultEngine'. r=Standard8

21b3aa17ee
Bug 1492475 - Part 10: Update unit tests to be fully aware of the new, async signatures of the search service API and remove sync init flow tests. r=mkaply,florian

ce5ba69019
Bug 1492475 - Part 11: Repair incorrect usage of the `identifier` property of nsISearchEngine instances. r=florian

fd177a7994
Bug 1518543 - Fix up the Android (Fennec) nsISearchService shim to work with the new asynchronous API. r=florian

3653d8ee22
Bug 1523708 - Change the search service interaction in the show-heartbeat action to use the new async API. r=florian

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

--HG--
rename : netwerk/base/nsIBrowserSearchService.idl => toolkit/components/search/nsISearchService.idl
extra : moz-landing-system : lando
2019-02-02 11:27:21 +00:00
Kershaw Chang 3f231d0bbe Bug 1500710 - Add default MIME type definition for .wasm as 'application/wasm' r=bzbarsky
Add {"application/wasm", "wasm"} mapping in extraMimeEntries

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

--HG--
extra : moz-landing-system : lando
2019-02-01 22:16:17 +00:00
Andrea Marchesini 94c935a73f Bug 1524262 - URL-Classifier should not check all the blacklist tables always, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D18218

--HG--
extra : moz-landing-system : lando
2019-01-31 15:15:03 +00:00
Dragana Damjanovic 4aa2cbebc3 Bug 1523427 - Check whether we really have a response for a upgrade request before making a connection DontReuse. r=michal
Differential Revision: https://phabricator.services.mozilla.com/D18202

--HG--
extra : moz-landing-system : lando
2019-01-31 15:09:01 +00:00
ffxbld b0ca3a2b01 No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D18207

--HG--
extra : moz-landing-system : lando
2019-01-31 13:34:21 +00:00
Tom Schuster 93f896affe Bug 1514680 - Strictly enforce the MIME type of scripts loaded by importScripts(). r=dveditz
Differential Revision: https://phabricator.services.mozilla.com/D16730

--HG--
extra : moz-landing-system : lando
2019-01-30 22:21:26 +00:00
Andrea Marchesini 506304e224 Bug 1522210 - Fingerprinting and cryptomining classifiers must have separate nsIWebProgressListener blocking state codes - part 7 - cryptomining, r=ehsan,johannh
Differential Revision: https://phabricator.services.mozilla.com/D17641
2019-01-30 14:01:51 +01:00
Andrea Marchesini 5a909353eb Bug 1522210 - Fingerprinting and cryptomining classifiers must have separate nsIWebProgressListener blocking state codes - part 6 - fingerprinting, r=ehsan,johannh
Differential Revision: https://phabricator.services.mozilla.com/D17640
2019-01-30 14:01:05 +01:00
Andrea Marchesini e9ac7d9ef2 Bug 1522210 - Fingerprinting and cryptomining classifiers must have separate nsIWebProgressListener blocking state codes - part 5 - generalize content blocking notification, r=ehsan
Differential Revision: https://phabricator.services.mozilla.com/D17838
2019-01-28 16:44:38 +01:00
Andrea Marchesini bf8c0e40e2 Bug 1522210 - Fingerprinting and cryptomining classifiers must have separate nsIWebProgressListener blocking state codes - part 4 - abstract blocking state codes, r=ehsan
Differential Revision: https://phabricator.services.mozilla.com/D17639
2019-01-28 16:43:15 +01:00
Andrea Marchesini ef89767387 Bug 1522210 - Fingerprinting and cryptomining classifiers must have separate nsIWebProgressListener blocking state codes - part 3 - Canceling nsIChannel with error code, r=ehsan
Differential Revision: https://phabricator.services.mozilla.com/D17638
2019-01-25 14:50:26 +01:00
Andrea Marchesini 3386d20a2c Bug 1522210 - Fingerprinting and cryptomining classifiers must have separate nsIWebProgressListener blocking state codes - part 2 - rename variables in nsHttpChannel, r=ehsan
Differential Revision: https://phabricator.services.mozilla.com/D17664
2019-01-30 13:50:04 +01:00
Andrea Marchesini 43a5f36077 Bug 1522210 - Fingerprinting and cryptomining classifiers must have separate nsIWebProgressListener blocking state codes - part 1 - UrlClassifierFeatureFactory::IsClassifierBlockingErrorCode, r=ehsan
Differential Revision: https://phabricator.services.mozilla.com/D17637
2019-01-30 13:43:34 +01:00
Csoregi Natalia 026d525390 Backed out changeset a4247f89d070 (bug 1520483) for bustage on build/src/obj-firefox/dist/include/mozilla/Logging.h:257. CLOSED TREE 2019-02-08 05:45:37 +02:00
Dragana Damjanovic 073d9c1031 Bug 1520483 - Return proper error if the nss layer encounters an error on the http tunnel. r=valentin,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D17952

--HG--
extra : moz-landing-system : lando
2019-02-07 17:01:07 +00:00
Myk Melez 25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Gijs Kruitbosch ace4e930e1 Bug 1523249, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D17965

--HG--
extra : moz-landing-system : lando
2019-01-30 11:39:42 +00:00
shindli 011ea038cb Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-29 23:54:31 +02:00
shindli d5c5369355 Merge inbound to mozilla-central. a=merge 2019-01-29 23:37:33 +02:00
Andrea Marchesini 79ddbe6541 Bug 1522265 - Moving malware, phishing and blocked URIs to features - part 4 - Phishing Protection, r=dimi
--HG--
rename : netwerk/url-classifier/UrlClassifierFeatureNoChannel.cpp => netwerk/url-classifier/UrlClassifierFeaturePhishingProtection.cpp
rename : netwerk/url-classifier/UrlClassifierFeatureNoChannel.h => netwerk/url-classifier/UrlClassifierFeaturePhishingProtection.h
2019-01-29 10:11:34 +01:00
Andrea Marchesini c48bfd063c Bug 1522265 - Moving malware, phishing and blocked URIs to features - part 2 - factory updated, r=dimi 2019-01-29 10:11:33 +01:00
Andrea Marchesini 2e4e28b9e5 Bug 1522265 - Moving malware, phishing and blocked URIs to features - part 1 - feature no channel, r=dimi 2019-01-29 10:11:33 +01:00
arthur.iakab 652cde9859 Backed out 4 changesets (bug 1522265) for mochitest assertion failures on extensions/cookie/nsPermissionManager.cpp CLOSED TREE
Backed out changeset 38b4179568c7 (bug 1522265)
Backed out changeset 38b824df9d02 (bug 1522265)
Backed out changeset 6085d51681f8 (bug 1522265)
Backed out changeset e6a0832f3b11 (bug 1522265)
2019-01-29 14:25:00 +02:00
Andrea Marchesini 901d0ea1b6 Bug 1522265 - Moving malware, phishing and blocked URIs to features - part 4 - Phishing Protection, r=dimi
--HG--
rename : netwerk/url-classifier/UrlClassifierFeatureNoChannel.cpp => netwerk/url-classifier/UrlClassifierFeaturePhishingProtection.cpp
rename : netwerk/url-classifier/UrlClassifierFeatureNoChannel.h => netwerk/url-classifier/UrlClassifierFeaturePhishingProtection.h
2019-01-29 10:11:34 +01:00
Andrea Marchesini 19c65633d3 Bug 1522265 - Moving malware, phishing and blocked URIs to features - part 2 - factory updated, r=dimi 2019-01-29 10:11:33 +01:00
Andrea Marchesini f43141ec0a Bug 1522265 - Moving malware, phishing and blocked URIs to features - part 1 - feature no channel, r=dimi 2019-01-29 10:11:33 +01:00
arthur.iakab c1fae83952 Backed out 16 changesets (bug 1478124) for failing android geckoview-junit CLOSED TREE
Backed out changeset fce62c77a56b (bug 1478124)
Backed out changeset eb2fa3b5edf7 (bug 1478124)
Backed out changeset 8dacce59fcc0 (bug 1478124)
Backed out changeset 012fd0107204 (bug 1478124)
Backed out changeset 496aaf774697 (bug 1478124)
Backed out changeset 21f4fda03159 (bug 1478124)
Backed out changeset b0444e0bc801 (bug 1478124)
Backed out changeset d94039b19943 (bug 1478124)
Backed out changeset 5d85deac61c2 (bug 1478124)
Backed out changeset 929fd654c9df (bug 1478124)
Backed out changeset 1ddd80d9e91a (bug 1478124)
Backed out changeset b8d2dfdfc324 (bug 1478124)
Backed out changeset f500020a273a (bug 1478124)
Backed out changeset dd00365ebb55 (bug 1478124)
Backed out changeset 538e40c5ee13 (bug 1478124)
Backed out changeset bedaa9c437ad (bug 1478124)
2019-01-29 10:03:06 +02:00
Shane Caraveo 3e429f056f Bug 1521573 web_accessible incognito support, r=kmag,smaug
Prevent web_accessible_resources resources loading in private contexts when extension does not have permission.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 15:40:09 +00:00
Byron Campen [:bwc] 68bc15c3ce Bug 1494311: Making the mtransport API a little more IPC friendly, and establishing a proper base-class. r=mt,mjf
Differential Revision: https://phabricator.services.mozilla.com/D17272

--HG--
extra : moz-landing-system : lando
2019-01-29 14:56:19 +00:00
Sebastian Hengst 9ece29fd9b Merge mozilla-central to autoland. CLOSED TREE 2019-01-29 12:59:48 +02:00
Sebastian Hengst b78e4e8667 Merge mozilla-central to mozilla-inbound
--HG--
rename : browser/components/urlbar/tests/legacy/browser_urlbar_search_no_speculative_connect_with_client_cert.js => browser/components/urlbar/tests/browser/browser_urlbar_speculative_connect_not_with_client_cert.js
2019-01-29 02:55:55 +02:00
Sebastian Hengst 90f4b6640c Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 01:33:28 +02:00
Razvan Maries c88bd55f59 Merge mozilla-inbound to mozilla-central a=merge 2019-01-28 23:46:39 +02:00
Andrea Marchesini 3ac22c62d4 Bug 1523274 - Flash URL-Classifier feature optimization, r=dimi 2019-01-28 21:48:09 +01:00
Nazım Can Altınova 236c0f6cdc Bug 1522277 - Add more NETWORK category labels r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D17832

--HG--
extra : moz-landing-system : lando
2019-01-28 18:09:43 +00:00
Boris Zbarsky 5214e58438 Bug 1522940. Bail out of redirect processing immediately if our loadinfo says to not follow redirects. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D17674

--HG--
extra : moz-landing-system : lando
2019-01-28 14:32:43 +00:00
Andrea Marchesini 0499bad916 Bug 1520150 - Single InputStreams can serialize themselves as IPCRemoteStreams (pipe) - part 1 - Passing IPC managers around, r=smaug
Before this set of patches, the decision of exposing the stream as a pipe was
centralized in IPCStreamUtils, based on the total expectation size of the IPC
message. This triggers issues when multiplex inputStreams contain something
that cannot be sent as a pipe (IPCBlobInputStream, for instance), or something
that it's better to do not set as a pipe (nsFileInputStream), together with
memory streams (nsStringInputStream), which could make the IPC message greater
then what accepted (1mb).

These patches move the "pipe vs non-pipe" choice into the single inputStream
implementation.
2019-01-28 10:48:35 +01:00
Coroiu Cristina 1ec6503fd8 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2019-01-25 23:55:33 +02:00
Ehsan Akhgari 7426dccfc0 Bug 1522596 - Remove nsIIPCSerializableURI and move its only member to nsIURI; r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D17531

--HG--
extra : moz-landing-system : lando
2019-01-25 13:32:36 +00:00
Andreea Pavel b839d65d3c Backed out changeset 546ee20723b6 (bug 1521573) for failing test_ext_web_accessible_incognito.html 2019-01-29 06:07:40 +02:00
Oana Pop Rus 028136ace2 Merge inbound to mozilla-central. a=merge 2019-01-24 18:50:45 +02:00
vinoth cc6d429241 Bug 1512949 - Remove eval from tests and flip assertion flag r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D14054

--HG--
extra : moz-landing-system : lando
2019-01-24 09:06:07 +00:00
Ciure Andrei c035ee7d3a Merge inbound to mozilla-central. a=merge 2019-01-24 05:44:33 +02:00
Nika Layzell 25503346ef Bug 1467223 - Part 7: Renumber Continue* methods on nsHttpChannel, r=valentin,mayhemer
Depends on D15613

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

--HG--
extra : moz-landing-system : lando
2019-01-23 21:17:33 +00:00
Nika Layzell 53c6040388 Bug 1467223 - Part 3: Support uncached resources by using a redirectTo-like API for process swaps in necko, r=valentin,mayhemer
With the old process selector service implementation, non-cached loads
would skip the call into the process selector.

This implementation piggybacks atop the existing 'redirectTo' mechanism.
This is unfortunately not the perfect system for catching these loads,
as it doesn't provide an opportunity for performing a final process
switch before redirecting to a non-http channel. In addition, it doesn't
provide indication that a redirect is going to happen, causing
potentially unnecessary process switches.

Not all places where 'redirectTo' is supported use this mechanism. This
process switching mechanism is only checked in situations after
http-on-examine-response.

Potential future changes include:

 1. Moving these checks closer to the real 'OnStartRequest' call (e.g.
    in ContinueProcessNormal + ContinueOnStartRequest3). This would mean
    that loads other than the final load will not cause process swaps.

 2. Adding a callback before a redirect is performed, passing in the new
    channel, and allowing modifications to be made. This would allow
    performing a process swap before redirecting to a non-http(s)
    channel.

Depends on D15609

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

--HG--
extra : moz-landing-system : lando
2019-01-23 21:19:39 +00:00
Nika Layzell 9b4bbc17fd Bug 1467223 - Part 2: Add BrowsingContextID to LoadInfo, r=valentin
This is handy when performing process swaps, as it provides useful & important
information to parent-process callers.

Depends on D15608

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

--HG--
extra : moz-landing-system : lando
2019-01-23 21:06:59 +00:00
Nika Layzell be5f88174d Bug 1467223 - Part 1: Move CrossProcessRedirect Message to PContent, r=valentin
This is needed because early in a content process's lifecycle, NeckoParent may
not have been created yet. This leads to issues when trying to redirect into a
fresh process which hasn't performed network loads yet. By sending the message
over PContent, we can be sure the APIs are available.

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

--HG--
extra : moz-landing-system : lando
2019-01-23 21:27:44 +00:00
Valentin Gosu 23c68c90c6 Bug 1522076 - Backed out changeset f10300d5ef4e a=backout
--HG--
extra : rebase_source : 84e3f5e7673de141f49815bd8b93cf40cf230d56
2019-01-24 11:37:12 +02:00
Valentin Gosu 5ccd13de0d Bug 1522076 - Backed out changeset 1b6a90a3d820 a=backout
--HG--
extra : rebase_source : 6909b5d123bb23ca54d39f81e84f7fc65f02252c
2019-01-24 11:34:17 +02:00
Shane Caraveo 6004d08141 Bug 1521573 web_accessible incognito support, r=kmag,smaug
Prevent web_accessible_resources resources loading in private contexts when extension does not have permission.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 01:42:34 +00:00
Andrea Marchesini ae7e7d4c3a Bug 1521051 - Get rid of nsICookiePermission.ACCESS_ALLOW_FIRST_PARTY_ONLY, r=johannh, r=flod 2019-01-23 19:19:19 +01:00
Andrea Marchesini dc777dc7a6 Bug 1521051 - nsICookiePermission.ACCESS_LIMIT_THIRD_PARTY, r=valentin, r=johannh 2019-01-23 19:19:18 +01:00
Razvan Maries 7ccb4bf803 Backed out 2 changesets (bug 1521051) for xpcshell fails on extensions/cookie/test/unit/test_cookies_thirdparty.js. CLOSED TREE
Backed out changeset 90bb620dd870 (bug 1521051)
Backed out changeset 483fa314e45e (bug 1521051)
2019-01-23 22:09:32 +02:00
Ciure Andrei a4eeeccf1d Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-01-23 20:55:29 +02:00
Andrea Marchesini 8e0c688733 Bug 1521051 - Get rid of nsICookiePermission.ACCESS_ALLOW_FIRST_PARTY_ONLY, r=johannh, r=flod 2019-01-23 19:19:19 +01:00
Andrea Marchesini fb5e2a4f57 Bug 1521051 - nsICookiePermission.ACCESS_LIMIT_THIRD_PARTY, r=valentin, r=johannh 2019-01-23 19:19:18 +01:00
Sebastian Hengst a612973f64 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-23 18:51:14 +02:00
Sebastian Hengst 2ecf173b14 Merge mozilla-central to autoland 2019-01-23 11:31:44 +02:00
Ehsan Akhgari 57a8f5ed79 Bug 1517389 - Ensure that we emit content blocking events when setting cookie headers and reading cookies from the cookies database; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D17203

--HG--
extra : moz-landing-system : lando
2019-01-22 19:46:10 +00:00
Valentin Gosu a9b850e10e Bug 1517600 - Call ReleaseListeners() in HttpChannelChild::AsyncOpen when NS_CheckPortSafety fails r=baku
The big leak was caused by not clearing mCallbacks.

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

--HG--
extra : moz-landing-system : lando
2019-01-22 17:45:47 +00:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Csoregi Natalia ffee6dccf3 Backed out changeset fef99cfead16 (bug 1516133) for service-workers failures with crashes on MOZ_CrashOOL. CLOSED TREE
--HG--
extra : rebase_source : 19bce71d4915c5925648e8a1ae7022dc46d17b78
2019-01-23 02:08:39 +02:00
Gurzau Raul 136dc5e8bc Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-23 02:05:32 +02:00
Sylvestre Ledru 0b4021fcad Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl
# ignore-this-changeset

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

--HG--
extra : histedit_source : 084f340503d2e1a2d9e1753c38b2c4ee9c7819f3
2019-01-21 18:18:16 +01:00
Andrea Marchesini 5018c31d19 Bug 1516133 - Avoid extra main-thread jumps during the URL-classification, r=dimi 2019-01-17 09:33:25 +01:00
Coroiu Cristina 8aa7253505 Backed out changeset e310a6576d51 (bug 1516133) for service-workers failures with crashes on MOZ_CrashOOL 2019-01-23 13:43:15 +02:00
Andrea Marchesini fe0182eac3 Bug 1516133 - Avoid extra main-thread jumps during the URL-classification, r=dimi 2019-01-17 09:33:25 +01:00
Valentin Gosu f0fe9129c7 Bug 1520062 - Also release listeners in HttpChannelChild::ActorDestroy r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D16549

--HG--
extra : moz-landing-system : lando
2019-01-22 09:16:50 +00:00
Valentin Gosu e143910fde Bug 1520062 - Don't exit HttpChannelChild::DoOnStopRequest if call returns error code r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D16548

--HG--
extra : moz-landing-system : lando
2019-01-22 09:16:11 +00:00
Cosmin Sabou 951d31e64d Merge mozilla-inbound to mozilla-central. a=merge 2019-01-22 05:56:10 +02:00
Ehsan Akhgari 4137a92662 Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D16052
2019-01-21 09:58:50 -05:00
Ehsan Akhgari 5d7e383969 Bug 1514340 - Part 1: Add the nsISecurityEventSink::OnContentBlockingEvent() helper method; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D16051
2019-01-21 09:58:50 -05:00
Dave Townsend e8b1884f16 Bug 1518746: Switch to load events for all tested resources. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D16901

--HG--
extra : moz-landing-system : lando
2019-01-21 07:48:26 +00:00
Margareta Eliza Balazs ca2235a67e Backed out 4 changesets (bug 1517025) for multiple failures e.g.: toolkit/components/telemetry/tests/unit/test_PingAPI.js CLOSED TREE
Backed out changeset 1e173178e49f (bug 1517025)
Backed out changeset c29889dea969 (bug 1517025)
Backed out changeset 48c7d643d2fa (bug 1517025)
Backed out changeset 419cb778d531 (bug 1517025)
2019-01-21 16:13:56 +02:00
Valentin Gosu e6aa11c264 Bug 1517025 - Do not allow percent symbol in URL hostnames r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D16694

--HG--
extra : moz-landing-system : lando
2019-01-21 08:39:34 +00:00
Michal Novotny fcbc8b9cd2 Bug 1455723 - Firefox59 does not properly honor cache size set in autoconfig files, r=mayhemer
We keep old cache code in the tree only because of offline cache. We no longer allow using old disk or memory cache. This patch removes all preferences manipulation from old cache code that isn't used by offline cache. It removes also some related code (e.g. everything smart size related, unused defines etc.), but the goal wasn't to remove all unused code from the old cache.
2019-01-14 06:47:00 +02:00
Ciure Andrei cd0990c959 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-23 20:53:05 +02:00
Ehsan Akhgari 9efcce8bbb Bug 1509112 - Consider the content frame sitting directly beneath a moz-extension frame that has a host permission granting access to that frame as a top-level frame; r=kmag,baku
Differential Revision: https://phabricator.services.mozilla.com/D14832

--HG--
extra : moz-landing-system : lando
2019-01-23 14:55:49 +00:00
Margareta Eliza Balazs 9dda825205 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-18 12:31:59 +02:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Ehsan Akhgari 06c3d29113 Bug 1521000 - Part 1: Reformat the tree to ensure everything is formatted correctly with clang-format r=sylvestre
Summary: # ignore-this-changeset

Reviewers: sylvestre

Reviewed By: sylvestre

Subscribers: reviewbot, emilio, jandem, bbouvier, karlt, jya

Bug #: 1521000

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

--HG--
extra : histedit_source : 4add583bfa729ccc1aef934629ed45ff095189b0
2019-01-18 10:12:56 +01:00
Dimi Lee 632a821b8a Bug 1501458 - Remove unused tracking protection code from nsUrlClassifierDBService. r=baku
No one is using the aUseTrackingProtection parameter and also tracking
protection related preference in Classify API. And we shouldn't use it
that way in the future.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 21:24:43 +00:00
Kershaw Chang cffed8b306 Bug 1519336 - Make NS_NewURI work in socket process r=dragana
Enable some necessary services in socket process.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 14:19:42 +00:00
Dragana Damjanovic f7925654d4 Bug 1513542 - We need to use gAllURLsMutex before destructor of a static variable. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D16847

--HG--
extra : moz-landing-system : lando
2019-01-17 16:29:04 +00:00
Dragana Damjanovic fc155bc720 Bug 1513059 - Use the minimal XPCOM for the socket process.r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15024

--HG--
extra : moz-landing-system : lando
2019-01-16 23:05:11 +00:00
Dragana Damjanovic 81b7d74f4a Bug 1520260 - Collect *_KBREAD_PER_CONN on release as well. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D16616

--HG--
extra : moz-landing-system : lando
2019-01-16 09:21:53 +00:00
Razvan Maries 4c67bec411 Merge mozilla-inbound to mozilla-central a=merge 2019-01-16 19:00:15 +02:00
Oana Pop Rus bd4d528ac8 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-16 11:40:36 +02:00
Sylvestre Ledru 47a5dd1fb8 Bug 1519636 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-01-16 08:50:07 +00:00
Junior Hsu 0575720a12 Bug 1514065 - resume the bp-suspension if the divsersion starts r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D14361

--HG--
extra : moz-landing-system : lando
2019-01-16 00:57:11 +00:00
Junior Hsu c54c918b66 Bug 1510979 - add a telemetry xpcshell-test for socket process r=janerik
We need a test-only IPC message to socket process to trigger the Telemetry::Scalar set since no js engine in the socket process.
And hook the IPC call to AddPendingEvent |CallOrWaitSocketProcess| introduced by bug 1496257.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 23:15:38 +00:00
Kershaw Chang 8711ee817e Bug 1407384 - P3: Handle the case if the channel is suspended or canceled by "http-on-examine-merged-response" observer r=mayhemer
1. This patch somehow sets a "breakpoint" in ProcessPartialContent() and ProcessNotModified() to really stop doing things after ProcessPartialContent() and ProcessNotModified(), when the channel is suspended.
2. Add a test for this.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 16:17:48 +00:00
Kershaw Chang b689d1f01d Bug 1407384 - P2: test for suspending the channel in DoAuthRetry r=mayhemer
Test steps:
1. Register the observers for http-on-modify-request and http-on-before-connect.
2. There are 3 cases to be tested.
   - suspend in http-on-modify-request
   - suspend in http-on-before-connect
   - suspend in both observers
3. See if the channel can be resumed correctly.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 16:02:58 +00:00
Kershaw Chang b5b9e5d5c3 Bug 1407384 - P1: Notify "http-on-before-connect" and "http-on-modify-request" observers in DoAuthRetry r=mayhemer
The goal in this patch is to notify "http-on-before-connect" and "http-on-modify-request" observers in DoAuthRetry and also handle the case when the channel is canceled or suspended by observer.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 16:04:44 +00:00
Randell Jesup 77966ce209 Bug 1514359: create network marker for end-of-load in correct spot r=mayhemer 2019-01-15 21:29:45 -05:00
Michal Novotny c21d6620d3 Bug 1495336 - High limit of NETWORK_CACHE_METADATA_SIZE and NETWORK_CACHE_METADATA_FIRST_READ_SIZE probes is too low. r=chutten
Maximum size of elements in metadata is 64kB, the rest (URL, hashes and few uint32_t members) should normally fit into 1kB, so I set new high value of NETWORK_CACHE_METADATA_SIZE_2 to 65kB. With 66 buckets each bucket should be exactly 1kB wide.
NETWORK_CACHE_METADATA_FIRST_READ_SIZE doesn't provide any useful information and this patch removes the probe.
2019-01-09 10:27:00 +02:00
Dave Townsend 6fa8b55502 Bug 1518746: Add additional logging to test_accept_header.html. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D16485

--HG--
extra : moz-landing-system : lando
2019-01-14 19:36:26 +00:00
Valentin Gosu 1403ae7440 Bug 1519711 - Make nsIURI::SchemeIs return false when passed null scheme r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D16409

--HG--
extra : moz-landing-system : lando
2019-01-13 18:05:39 +00:00
Junior Hsu 478d72efdc Bug 1513057 - P9: socket oepration should wait until socket process launch r=mayhemer,dragana,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D14510

--HG--
extra : moz-landing-system : lando
2019-01-12 01:00:26 +00:00
Kyle Machulis e708fe454e Bug 1518964 - Add SchemeIs convenience functions; r=valentin
Create convenience functions for common protocols used in SchemeIs
queries.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 08:08:19 +00:00
Kershaw Chang 74f3ba17c3 Bug 1513057 - P8: Report telemetry from socket process to parent process r=dragana,mayhemer,janerik
Differential Revision: https://phabricator.services.mozilla.com/D14362

--HG--
extra : moz-landing-system : lando
2019-01-11 20:59:35 +00:00
Kershaw Chang b5173eda1d Bug 1513057 - P7: Setup Gecko profiler on the socket process r=dragana,mayhemer,mstange
Differential Revision: https://phabricator.services.mozilla.com/D14351

--HG--
extra : moz-landing-system : lando
2019-01-11 20:58:18 +00:00
Kershaw Chang 621b98340a Bug 1513057 - P6: Create Background between content process and socket process r=dragana,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D14348

--HG--
extra : moz-landing-system : lando
2019-01-11 20:56:39 +00:00
Kershaw Chang f13da4ca28 Bug 1513057 - P5: Create IPC between content process and socket process r=dragana,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D14257

--HG--
extra : moz-landing-system : lando
2019-01-11 20:55:07 +00:00
Kershaw Chang 30b52ec47d Bug 1513057 - P4: Update online/offline status to socket process r=dragana,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D14161

--HG--
extra : moz-landing-system : lando
2019-01-11 20:54:06 +00:00
Kershaw Chang 1b6d34eee2 Bug 1513057 - P3: Setup memory reporter on socket process r=dragana,mayhemer
To setup memory reporter on socket process, this patch modifies the PSocketProcess protocol to implement the same memory reporting functions as the PContent and PGPU protocols.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 20:52:39 +00:00
Kershaw Chang 8241bd3c41 Bug 1513057 - P2: Setup crash reporter on socket process r=dragana,mayhemer
This patch is quite straightforward. Just add socket process support.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 18:48:25 +00:00
Kershaw Chang 9973068a10 Bug 1513057 - P1.1: Create a reusable class to pass prefs to child processes r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D14970

--HG--
extra : moz-landing-system : lando
2019-01-11 18:39:22 +00:00
Kershaw Chang 0b336d5545 Bug 1513057 - P1: Start the new socket process basics (prefs, full xpcom init, logging, no sandboxing) r=mayhemer,dragana
Differential Revision: https://phabricator.services.mozilla.com/D14148

--HG--
extra : moz-landing-system : lando
2019-01-11 18:57:23 +00:00
Kyle Machulis 32abb9ff27 Bug 1518956 - Make C++ infallible/simplified versions of nsIURI::SchemeIs; r=valentin
SchemeIs only throws exceptions on null arguments now. Assert
arguments, as they should never be null anyways, and create an
infallible C++ version.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 08:09:33 +00:00
Andreea Pavel 21ad33d612 Backed out 10 changesets (bug 1513057) for build bustages on a CLOSED TREE
Backed out changeset 56329b5f1844 (bug 1513057)
Backed out changeset 46411c5de3da (bug 1513057)
Backed out changeset de65c456aad6 (bug 1513057)
Backed out changeset f648b5f1a7c2 (bug 1513057)
Backed out changeset 460bbf0849e1 (bug 1513057)
Backed out changeset 86032a14d26f (bug 1513057)
Backed out changeset a81f83df08d5 (bug 1513057)
Backed out changeset edbda5ee5fd5 (bug 1513057)
Backed out changeset c900ac2519f5 (bug 1513057)
Backed out changeset 4e94bbb90315 (bug 1513057)
2019-01-11 17:02:44 +02:00
Kershaw Chang db8c311487 Bug 1513057 - P9: socket oepration should wait until socket process launch r=mayhemer,dragana,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D14510

--HG--
extra : moz-landing-system : lando
2019-01-11 14:23:19 +00:00
Kershaw Chang 562055d29e Bug 1513057 - P8: Report telemetry from socket process to parent process r=dragana,mayhemer,janerik
Differential Revision: https://phabricator.services.mozilla.com/D14362

--HG--
extra : moz-landing-system : lando
2019-01-11 14:23:19 +00:00
Kershaw Chang f66295c49c Bug 1513057 - P7: Setup Gecko profiler on the socket process r=dragana,mayhemer,mstange
Differential Revision: https://phabricator.services.mozilla.com/D14351

--HG--
extra : moz-landing-system : lando
2019-01-11 13:30:47 +00:00
Kershaw Chang 1c5e5caaaf Bug 1513057 - P6: Create Background between content process and socket process r=dragana,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D14348

--HG--
extra : moz-landing-system : lando
2019-01-11 13:30:09 +00:00
Kershaw Chang 5218bf3692 Bug 1513057 - P5: Create IPC between content process and socket process r=dragana,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D14257

--HG--
extra : moz-landing-system : lando
2019-01-11 13:29:33 +00:00
Kershaw Chang 078fff139b Bug 1513057 - P4: Update online/offline status to socket process r=dragana,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D14161

--HG--
extra : moz-landing-system : lando
2019-01-11 13:29:21 +00:00
Kershaw Chang 07a7cc19a1 Bug 1513057 - P3: Setup memory reporter on socket process r=dragana,mayhemer
To setup memory reporter on socket process, this patch modifies the PSocketProcess protocol to implement the same memory reporting functions as the PContent and PGPU protocols.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 13:28:00 +00:00
Kershaw Chang 99fe2d101a Bug 1513057 - P2: Setup crash reporter on socket process r=dragana,mayhemer
This patch is quite straightforward. Just add socket process support.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 13:26:56 +00:00
Kershaw Chang d0f8c9de61 Bug 1513057 - P1.1: Create a reusable class to pass prefs to child processes r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D14970

--HG--
extra : moz-landing-system : lando
2019-01-11 14:12:53 +00:00
Kershaw Chang 0c2943008a Bug 1513057 - P1: Start the new socket process basics (prefs, full xpcom init, logging, no sandboxing) r=mayhemer,dragana
Differential Revision: https://phabricator.services.mozilla.com/D14148

--HG--
extra : moz-landing-system : lando
2019-01-11 14:07:47 +00:00
Tom Ritter ba7c4014b7 Bug 1509829 - Spoof OS in HTTP User-Agent header for desktop platforms r=timhuang,baku
In 1404608, the OS was revealed in both the HTTP User-Agent
header and to JavaScript code via navigator.userAgent. To avoid
leaking the OS inside each HTTP request (which many web servers
log), always use the Windows 7 OS value in the desktop User-Agent
header. We continue to allow access to the actual OS via JavaScript,
since doing so improves compatibility with web applications such
as GitHub and Google Docs.

This is an uplift of Tor's 26146
2019-01-09 12:53:30 -06:00
Brindusan Cristian f9b94dc137 Backed out changeset cf370ec3969a (bug 1516133) for mochitest assertion failures. CLOSED TREE 2019-01-17 12:51:13 +02:00
Andrea Marchesini b944a79f8a Bug 1516133 - Avoid extra main-thread jumps during the URL-classification, r=dimi 2019-01-17 09:33:25 +01:00
Ehsan Akhgari 0b5c4e6d1a Bug 1523106 - DeCOMtaminate nsISecurityEventSink; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D17742
2019-01-28 14:45:49 -05:00
Eric Rahm 230e9f6e8f Bug 1515833 - Remove verbose nsIURIMutator warnings. r=ehsan, valentin
--HG--
extra : rebase_source : de2fecb9ddc4976085299d5abd75994c59ecc224
extra : histedit_source : 4a11cf470c2f59ada7ce7ecca4a7b9ebfbe004b4
2018-12-21 13:02:32 -08:00
Kris Maglione 3a9e3cc721 Bug 1478124: Part 8d - Update netwerk module to use a static component manifest. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D15042

--HG--
rename : netwerk/protocol/res/SubstitutingProtocolHandler.h => netwerk/protocol/res/SubstitutingURL.h
extra : rebase_source : 695f12a3c96f05e6fbbf417f9595b05a379dee9e
extra : source : 496aaf774697f817a689ee0d59f2f866fdb16801
2018-12-16 18:36:32 -08:00
Kris Maglione 7e2aa1f145 Bug 1478124: Part 8d - Update netwerk module to use a static component manifest. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D15042

--HG--
rename : netwerk/protocol/res/SubstitutingProtocolHandler.h => netwerk/protocol/res/SubstitutingURL.h
extra : rebase_source : 48e3108ef67fa02e5aae2acad84dc4fd78179bf3
extra : absorb_source : 95d208ffaa1d2037b04f65b59378dd3315adb9b5
extra : histedit_source : 97e70bc165f37ef5138ba10d29fd8754899bb1c2
2018-12-16 18:36:32 -08:00
Kris Maglione b83df4e952 Bug 1478124: Part 8a - Update toolkit module to use a static component manifest. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15039

--HG--
extra : rebase_source : 1683d6ced9a6c10e6fa19425debbb51950b9b629
extra : source : d94039b199437180309264cb4c206ae7ebb7d21d
2018-12-16 16:03:00 -08:00
Kris Maglione d20f7f8e72 Bug 1478124: Part 8a - Update toolkit module to use a static component manifest. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15039

--HG--
extra : rebase_source : 55c387662960d82986a2a0205d3b8e451304db4b
extra : absorb_source : bd201f3bcf08f70480f19a22bfb7a8bd9cb015a1
extra : histedit_source : ec13a9b248801ab36baa275e566765734e6f3717
2018-12-16 16:03:00 -08:00
Kris Maglione 27975ea3b6 Bug 1478124: Part 4b - Support loading components from static lookup tables. r=froydnj
This patch essentially creates a separate, static component database for
statically-defined CID and contract ID entries, and gives it precedence over
the runtime DB. It combines the two separate databases by updating existing
code to use lookup functions which understand both databases, and then access
all entries through wrappers which defer to the appropriate underlying type.

Static component entries require no runtime relocations, and require no
writable data allocation aside from one pointer-sized BSS entry per CID, and
one bit of BSS per contract ID.

To achieve this, all strings in the static lookup tables are stored as indexes
into a static string table, all constructor functions live in a switch
statement which compiles to a relative jump table, and all writable data for
static entries is accessed by indexed lookups into BSS arrays.

We also avoid creating nsIFactory entries for static components when possible
by adding a CreateInstance method to nsFactoryEntry and the corresponding
entry wrapper to directly call the appropriate constructor method, and only
create a factory object when required by external code.

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

--HG--
extra : rebase_source : 903a6f31c6290d0090e6765e0e317d1f749c5855
extra : source : b8d2dfdfc324c53ce5aacc822ce52d4e2bfdc31a
2018-12-18 20:30:13 -08:00
Kris Maglione 43481fed07 Bug 1478124: Part 4b - Support loading components from static lookup tables. r=froydnj
This patch essentially creates a separate, static component database for
statically-defined CID and contract ID entries, and gives it precedence over
the runtime DB. It combines the two separate databases by updating existing
code to use lookup functions which understand both databases, and then access
all entries through wrappers which defer to the appropriate underlying type.

Static component entries require no runtime relocations, and require no
writable data allocation aside from one pointer-sized BSS entry per CID, and
one bit of BSS per contract ID.

To achieve this, all strings in the static lookup tables are stored as indexes
into a static string table, all constructor functions live in a switch
statement which compiles to a relative jump table, and all writable data for
static entries is accessed by indexed lookups into BSS arrays.

We also avoid creating nsIFactory entries for static components when possible
by adding a CreateInstance method to nsFactoryEntry and the corresponding
entry wrapper to directly call the appropriate constructor method, and only
create a factory object when required by external code.

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

--HG--
extra : rebase_source : 8d02ff3b67b8078d1ac837d8c12f54786155c6b6
extra : absorb_source : 0fe36ca220c9270e634abf5b1f320a01878e0ce7
extra : histedit_source : 51521ceae2c1b3e4e8bf63d4ed1e2e67e9468780
2018-12-18 20:30:13 -08:00
Dragana Damjanovic 2a013cc260 Bug 1515459 - Check if we reenter CreateShimError. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D15297

--HG--
extra : moz-landing-system : lando
2019-01-08 20:40:35 +00:00
Paolo Amadini ffa6503244 Bug 983187 - Test that downloads fail when an RST packet is received. r=mayhemer
This adds a way to simulate failed network connections, allowing the addition of test coverage that would otherwise not be available. This is used in the Downloads tests to ensure that failures at the network level are handled correctly.

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

--HG--
extra : rebase_source : 2597b27de5213b0322520cefafe10a197d0d3b83
2019-01-09 11:48:23 +00:00
Michal Novotny 1ac8081516 Bug 1513676 - Twice-reported memory allocations in CacheStorageService code, r=honzab
Do not report malloc size of CacheIOThread::mThread, because it can be reported by ThreadsReporter.

--HG--
extra : rebase_source : b077f80a82c5df70f1b3f267f7718f1ad7f94ea1
2019-01-08 16:38:00 +02:00
Oana Pop Rus 762fbfae67 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-22 18:39:16 +02:00
Honza Bambas 594d062b4c Bug 1520125 - Don't use origin attributes to distinguish proxy authentication cache entries. r=dragana, r=mixedpuppy 2019-01-22 07:34:00 -05:00
Andrea Marchesini 98de6694fc Bug 1516133 - Avoid extra main-thread jumps during the URL-classification, r=dimi 2019-01-17 09:33:25 +01:00
Andrea Marchesini 10799b6b03 Bug 1513300 - Implement Cryptomining URL-Classifier, r=dimi 2019-01-09 12:16:04 +01:00
Andrea Marchesini 0c34bd1c34 Bug 1513298 - Fingerprinting url-classifier feature, r=dimi 2019-01-09 12:16:04 +01:00
Noemi Erli ac42324894 Backed out changeset 76f3be6b25e1 (bug 1513298) for ES lint failure in test_fingerprinting.html CLOSED TREE 2019-01-09 12:15:44 +02:00
Andrea Marchesini f10ced4f9d Bug 1513298 - Fingerprinting url-classifier feature, r=dimi 2019-01-08 23:05:41 +01:00
Andrea Marchesini d4de202543 Bug 1517308 - Add a search field in about:url-classifier - part 1 - nsIUrlClassifier.getFeatureNames(), r=dimi 2019-01-08 23:05:40 +01:00
Michal Novotny f0e2bfb56c Bug 1479357 - Specific values for browser.cache.disk.capacity do break the cache, r=mayhemer
This patch changes all size limits in CacheObserver to kilobytes. The same unit is used at most places when checking these limits. This avoids uint32_t overflow when converting to bytes and back.
2019-01-08 16:28:00 +02:00
Andrea Marchesini 7728c152a2 Bug 1417463 - Default accept header should follow the fetch spec - tests, r=mayhemer 2019-01-08 23:36:17 +01:00
Andrea Marchesini 5752cef527 Bug 1417463 - Default accept header should follow the fetch spec, r=mayhemer
For navigation: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
For images: image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5
for style: text/css,*/*;q=0.1
Anything else: */*
2019-01-08 23:36:16 +01:00
Valentin Gosu 55d58519a7 Bug 1517542 - Fail URL deserialization if query or ref start at position 0 r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D15854

--HG--
extra : moz-landing-system : lando
2019-01-08 15:00:05 +00:00
Tom Schuster 82d1aa2207 Bug 1510223 - Test for MIME type warning. r=ckerschb,nchevobbe
Turns out we also produced an error instead of a warnings.
Good that we added those test \o/

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

--HG--
extra : moz-landing-system : lando
2019-01-08 12:28:32 +00:00
Oana Pop Rus 3adbeba770 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-08 12:13:02 +02:00
Dragana Damjanovic 7bdd6628ba Bug 1514688 - In case we already have a h2 connection and it does not support websockets, we should not try again to use websockets over h2. r=michal
There are 2 parts of the patch:
1) we should not try to use websockets over h2 if we already know that they are not supported.
2) make sure that we clean up websockets waiting for the settings frame when we close a h2 connection. (the part 1) will fix the issue, this part is only to be 100% that we some how do not retrigger the issue)

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

--HG--
extra : moz-landing-system : lando
2019-01-07 23:09:35 +00:00
Ehsan Akhgari b63debc2d4 Bug 1517014 - Part 1: Add nsIPermissionManager.testPermissionOriginNoSuffix(), an API for testing permissions using an origin string without the overhead of parsing it into a URI; r=nika
For consumers which have an origin string, currently they need to parse it into
a URI before they can call testPermission().  Internally, in the common case this
nsIURI* argument will be immediately converted back into the same origin string
in PermissionKey::CreateFromURI().  This means that the cost of parsing the
original origin string will effectively end up being wasted in the common case.

This patch adds an API that allows the consumer to test a permission using the
origin string directly, and only parse it into an nsIURI when necessary, thereby
avoiding this overhead.

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

--HG--
extra : moz-landing-system : lando
2019-01-07 18:45:26 +00:00
Csoregi Natalia 4eda4d34c0 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-01-07 23:51:06 +02:00
Jeff Walden a128f0c35c Bug 1517624 - Move JSPropertySpec and JSFunctionSpec definitions into a new js/public/PropertySpec.h header. r=arai
--HG--
extra : rebase_source : b80911e01f984ee9f99fbbc6c4552ef3d2178587
2019-01-03 15:37:01 -06:00
Andrea Marchesini 4712d40e55 Bug 1514697 - Lazy loading for URL-Classifier features, r=dimi 2019-01-05 09:11:06 +01:00
Andrea Marchesini 1aada62615 Bug 1515286 - Get rid of nsIURIClassifier.asyncClassifyLocalWithTables, r=dimi 2019-01-05 09:10:56 +01:00
Andrea Marchesini 7872e64c7c Bug 1515286 - Introduce nsIURIClassifier.getFeatureByName() and nsIURIClassifier.createFeatureWithTables(), r=dimi 2019-01-05 09:10:45 +01:00
shindli ce5a0b424d Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-05 06:09:57 +02:00
Jeff Walden d084a5e469 Back out f8a29b8bb211, d1267711aef0, df1b7a886a9d, 0f6a3dd2c2f7, e6628922b7be, 0a374ac233cd, cf00fd0f080c, 6fc24c4e7798, ab2e4a2e5dd2, 2d17e4ef5e71, 4a8940073f8c, ea3ab4b83152, c7577c232591, e58454c68f0f, and 0e39815d1bce for breaking a single Android J10 and nothing else. (That J10 task must not like deck chairs...) r=bustage
--HG--
extra : rebase_source : f02dabe3ece7955cb223313d3605b825560c62b1
2019-01-04 16:33:01 -06:00
bitnotri 542ea80ecd Bug 1461737 - Move nsstring-rs to a better location, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D15743

--HG--
rename : servo/support/gecko/nsstring/Cargo.toml => xpcom/rust/nsstring/Cargo.toml
rename : servo/support/gecko/nsstring/src/conversions.rs => xpcom/rust/nsstring/src/conversions.rs
rename : servo/support/gecko/nsstring/src/lib.rs => xpcom/rust/nsstring/src/lib.rs
extra : moz-landing-system : lando
2019-01-04 22:03:56 +00:00
Ciure Andrei 7a748ae68f Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-04 01:03:06 +02:00
Boris Zbarsky 058f83508f Bug 1517434 part 2. Convert existing callers of GetIsSystemPrincipal() to IsSystemPrincipal(). r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D15673

--HG--
extra : moz-landing-system : lando
2019-01-03 20:55:38 +00:00
Jeff Walden 87aba62a4a Bug 1517624 - Move JSPropertySpec and JSFunctionSpec definitions into a new js/public/PropertySpec.h header. r=arai 2019-01-03 15:37:01 -06:00
Andrea Marchesini 647b040b0f Bug Bug 1515272 - Get rid of nsIURIClassifier.classifyLocal(), r=dimi, r=froydnj 2019-01-04 14:46:30 +01:00
Andrea Marchesini e34612e16e Bug 1514202 - Port flash url-classifier to nsIUrlClassifierFeature - part 1 - Flash feature, r=dimi, r=edgar, r=valentin 2019-01-04 14:45:42 +01:00
Tom Schuster 008b6d8204 Bug 1510223 - Warn about scripts with wrong MIME type. r=ckerschb,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D14859

--HG--
extra : moz-landing-system : lando
2019-01-03 08:58:48 +00:00
Ehsan Akhgari 60238893a6 Bug 1517057 - Part 2: Avoid minting a new codebase principal in the channel-based version of AntiTrackingCommon::IsFirstPartyStorageAccessGrantedFor() in the common case to make things faster; r=baku
Depends on D15547

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

--HG--
extra : moz-landing-system : lando
2019-01-02 15:41:59 +00:00
Ehsan Akhgari 61338d3be7 Bug 1517057 - Part 1: Remove support for the unused URI_FORBIDS_COOKIE_ACCESS protocol flag; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D15547

--HG--
extra : moz-landing-system : lando
2019-01-02 15:42:08 +00:00
ffxbld 7745a0ae89 No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D15511

--HG--
extra : moz-landing-system : lando
2018-12-31 13:34:39 +00:00
Emilio Cobos Álvarez d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Sylvestre Ledru cccdda3c2a Bug 1516555 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2018-12-28 15:48:06 +00:00
Tom Schuster 8c3a7f7d61 Bug 1510241 - Proxy HttpChannel MIME blocking message to the child process. r=flod,dragana
Differential Revision: https://phabricator.services.mozilla.com/D14858

--HG--
extra : moz-landing-system : lando
2018-12-27 06:25:51 +00:00
Kris Maglione 39ae97e234 Bug 1515884: Remove unused XPCWrappedJS nsIPropertyBag implementation. r=bholley
This helper code is currently unused, and presents a pretty significant
footgun for any JS object which implements nsIPropertyBag itself.

When those objects are first queried to nsIWritablePropertyBag, they behave as
expected, returning the JS-implemented nsIPropertyBag methods. But when
they're first queried to nsIPropertyBag, they use the XPCWrappedNative stubs,
which don't behave as expected.

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

--HG--
extra : rebase_source : 02942592dc8c4efcc1190610448a46593faa5703
2018-12-21 15:03:13 -08:00
Andrea Marchesini 301d9591cd Bug 1515693 - Check allow-storage-access-by-user-activation sandbox flag only if StorageAccess API is enabled, r=ehsan 2018-12-22 00:38:37 +01:00
Ehsan Akhgari aa81b3cc6c Bug 1510860 - Ensure that the cookie service checks the content blocking allow list even for first-party cookies since that's required when we're blocking all cookies; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D15109
2018-12-21 12:21:28 -05:00
Jeff Walden ed23151bd7 Bug 1492937 - Make the JS subscript loader load scripts exclusively as UTF-8, with no way to specify any other encoding, and adjust a bunch of existing tests to use UTF-8 directly, rather than Unicode escape sequences or similar. (This also changes the encoding of .sjs scripts and all mochitest-browser tests in the tree from Latin-1 to UTF-8.) r=yzen, r=MattN, r=jimb, r=kmag 2018-12-19 13:46:20 -08:00
Nathan Froyd 6a08dde1cc Bug 1515194 - part 4 - un-aggregate nsLoadGroup; r=valentin
We no longer use the aggregation facility for nsLoadGroup, and removing
it saves approximately 10% of the space consumed by nsLoadGroup.
2018-12-19 10:08:28 -05:00