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

5424 Коммитов

Автор SHA1 Сообщение Дата
arthur.iakab 7ae8fb76e1 Backed out 2 changesets (bug 1539261) for multiple build bustages on /fuzz-tests/testStructuredCloneReader.cpp CLOSED TREE
Backed out changeset 526daf87fff9 (bug 1539261)
Backed out changeset 5b070b6ae224 (bug 1539261)
2019-03-27 21:59:29 +02:00
Haik Aftandilian b8118af581 Bug 1452278 - Part 1 - Make macOS nsOSHelperAppService::GetFromTypeAndExtension() not call OS MIME API's in content r=bzbarsky,froydnj
Add a new nsExternalHelperAppService derived class named nsOSHelperAppServiceChild to be used for the MIME service, external helper app service, and external protocol service interfaces in child processes. nsOSHelperAppServiceChild overrides some methods used to get MIME and external protocol handler information from the OS and implements these methods by remoting the calls to the parent process.

This is necessary because, on Mac, querying the OS for helper application info from sandboxed content processes is unreliable and has buggy side effects.

For now, only use the new class on Mac.

Android and unix file changes r+ by gcp.
Windows files changes r+ by bobowen.
Sync messages review r+ by nfroyd.

MozReview-Commit-ID: 63BiS6VCxfn

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

--HG--
extra : moz-landing-system : lando
2019-03-27 19:23:32 +00:00
Andrew McCreight c5ae898857 Bug 1539261, part 2 - Mark various JSStructuredCloneData methods MOZ_MUST_USE. r=sfink
Also, fix up various places that call these methods.

Depends on D24991

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

--HG--
extra : moz-landing-system : lando
2019-03-27 19:34:46 +00:00
Cosmin Sabou 3d469329a4 Merge mozilla-inbound to mozilla-central. a=merge 2019-03-27 06:45:13 +02:00
dOn'tReallycAre 2823fecb3a Bug 1353767 - BufferList methods that can OOM should all be MOZ_MUST_USE. r=billm
The Pickle methods can use MOZ_ALWAYS_TRUE because the BufferList is
infallible, so the WriteBytes calls will never fail.
2019-03-26 13:24:00 +02:00
Cameron McCormack 349f8a0865 Bug 1538045 - use MAP_FAILED instead of (void*)-1 in shared_memory_posix.cc. r=jld
Differential Revision: https://phabricator.services.mozilla.com/D24458

--HG--
extra : moz-landing-system : lando
2019-03-26 22:06:18 +00:00
Cameron McCormack bc72d9813e Bug 1515551 - Add functionality to SharedMemoryBasic to help map the shared memory at an arbitrary address. r=kmag
This patch adds two things:

1. An optional fixed_address argument to SharedMemoryBasic::Map, which
   is the address to map the shared memory at.

2. A FindFreeAddressSpace function that callers can use to find a
   contiguous block of free address space, which can then be used to
   determine an address to pass in to Map that is likely to be free.

Patches in bug 1474793 will use these to place the User Agent style
sheets in a shared memory buffer in the parent process at an address
that is also likely to be free in content processes.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 00:11:51 +00:00
sakshaat d781937a67 Bug 1517483 - Get rid of nsIScriptSecurityManager::IsSystemPrincipal r=bzbarsky
Replaced instances of callers in both C++ and JS files to query the state from the principal directly.

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

--HG--
extra : moz-landing-system : lando
2019-03-24 20:36:25 +00:00
srujana 9847052e21 Bug 1212103 : Added assert to check if the id is exceeding bounds of signed 32 bit integer r=jld
Added assert to check if the id is exceeding bounds of signed 32 bit integer.

```
x < (1<<29)
x+1 <= (1<<29)
((x+1)<<2) <= (1<<31)
((x+1)<<2)  | (two bit tag t)<= (1<<31)
```

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

--HG--
extra : moz-landing-system : lando
2019-03-22 19:06:02 +00:00
Alex Gaynor 6039e80432 Bug 1513911 - Part 3 - replace PIndexedDBPermissionRequest with async returns in IPC; r=asuth
This removes the only case of an IPDL protocol which has two implementors.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 19:14:01 +00:00
Doug Thayer 3f608fab0a Bug 1441308 - Support moving Maybe's in IPC serialization r=mccr8
I'd like to move an ipc::ByteBuf member of a struct into a Maybe,
and in order for that to work IPDLParamTraits<Maybe> needs to support
the rvalue Write.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 18:29:00 +00:00
Ciure Andrei 3de853018a Backed out 7 changesets (bug 1441308)for causing webrender build bustages CLOSED TREE
Backed out changeset 1764701d11d1 (bug 1441308)
Backed out changeset 32f7793dfd1a (bug 1441308)
Backed out changeset d8b4d6ec9b40 (bug 1441308)
Backed out changeset e2f83e4816dd (bug 1441308)
Backed out changeset baee8ada680f (bug 1441308)
Backed out changeset c09a51622e98 (bug 1441308)
Backed out changeset 737807563dd5 (bug 1441308)
2019-03-22 10:52:44 +02:00
Doug Thayer 0b1b0ee79e Bug 1441308 - Support moving Maybe's in IPC serialization r=mccr8
I'd like to move an ipc::ByteBuf member of a struct into a Maybe,
and in order for that to work IPDLParamTraits<Maybe> needs to support
the rvalue Write.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 23:15:32 +00:00
Aaron Klotz e0f5f64905 Bug 1536642: Ensure that mscom::RegisteredProxy move assignment correctly releases its references; r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D24106

--HG--
extra : moz-landing-system : lando
2019-03-20 00:29:27 +00:00
Alex Gaynor f3608ddac7 Bug 1536163 - Part 3 - use native Maybe syntax in place of OptionalShmem in IPDL; r=nika
--HG--
extra : rebase_source : 4f0c682a6d574308ec11608191f810c3fd6dc513
2019-03-21 06:52:48 +02:00
Alex Gaynor 6f04c635d8 Bug 1513911 - Part 2 - fixed a missing include; r=mccr8
Depends on D18995

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

--HG--
extra : moz-landing-system : lando
2019-02-27 20:00:58 +00:00
Alex Gaynor 177fb00eba Bug 1375863 - fold MOZ_CONTENT_SANDBOX and MOZ_GMP_SANDBOX into MOZ_SANDBOX; r=jld,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D22975

--HG--
extra : moz-landing-system : lando
2019-03-18 22:31:59 +00:00
Alex Gaynor aad50392d8 Bug 1534364 - replace OptionalIPCServiceWorkerDescriptor with IPCServiceWorkerDescriptor? in IPDL: r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D23013

--HG--
extra : moz-landing-system : lando
2019-03-15 12:55:10 +00:00
Andreea Pavel af20d1c10b Backed out changeset a5beba8cc190 (bug 1534364) for assertion failures 2019-03-14 23:14:31 +02:00
Alex Gaynor 2b1e080e64 Bug 1534364 - replace OptionalIPCServiceWorkerDescriptor with IPCServiceWorkerDescriptor? in IPDL: r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D23013

--HG--
extra : moz-landing-system : lando
2019-03-14 19:40:20 +00:00
Dorel Luca 0e9ffb4c4f Merge mozilla-inbound to mozilla-central. a=merge 2019-03-14 18:25:40 +02:00
Sylvestre Ledru 4aa92e3091 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D22514
2019-03-13 10:19:06 +01:00
Andrea Marchesini 21180cb43c Bug 1534538 - Avoid sending CookieSettings from parent to child if not needed, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D23121

--HG--
extra : moz-landing-system : lando
2019-03-14 06:57:45 +00:00
David Major e5773183d6 Bug 1528074 - Remove MSVC warning flags that clang-cl doesn't understand r=chmanchester
Per the previous patch, clang-cl only understands five MSVC-style warning flags: 7219c7e9af/clang/include/clang/Driver/CLCompatOptions.td (L188-L197)

This patch removes the flags that clang-cl doesn't understand.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 20:19:08 +00:00
Chris Pearce de686d23c1 Bug 1530245 - Launch sandbox from new remote sandbox broker process. r=jld,bobowen
Depends on D22051

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

--HG--
extra : moz-landing-system : lando
2019-03-13 09:24:52 +00:00
Chris Pearce f4c9b88845 Bug 1530245 - Make GeckoChildProcessHost::mSandboxBroker an abstract pointer. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D22051

--HG--
extra : moz-landing-system : lando
2019-03-13 09:24:37 +00:00
Alex Gaynor 456bcf6c38 Bug 1534666 - replace OptionalInputStreamParams with InputStreamParams? in IPDL; r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D23153

--HG--
extra : moz-landing-system : lando
2019-03-12 15:52:26 +00:00
Valentin Gosu 21bfdeb265 Bug 1525036 - Add CrossOriginPolicy to the browsing context r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21418

--HG--
extra : moz-landing-system : lando
2019-03-12 08:04:01 +00:00
Csoregi Natalia d086070187 Backed out 5 changesets (bug 1525036) for browser_httpCrossOriginHeader.js failures. CLOSED TREE
Backed out changeset 6717beb3ac53 (bug 1525036)
Backed out changeset 0c05686bd62a (bug 1525036)
Backed out changeset 502b0bb796cd (bug 1525036)
Backed out changeset fa0363d33dbd (bug 1525036)
Backed out changeset 6391f42aaa6d (bug 1525036)
2019-03-09 02:39:11 +02:00
Valentin Gosu d12177cb53 Bug 1525036 - Add CrossOriginPolicy to the browsing context r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21418

--HG--
extra : moz-landing-system : lando
2019-03-08 15:34:54 +00:00
Andrea Marchesini 43beb5b35b Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 1 - information stored into loadInfo, r=Ehsan,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D18949

--HG--
extra : moz-landing-system : lando
2019-03-08 09:00:06 +00:00
Jan Varga f8372b6b8d Bug 1526891 - Part 13: Send an async IPC message instead of dispatching a runnable to the PBackground thread when shutting down quota manager; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D20922
2019-02-23 17:30:41 +01:00
Jan Varga 993ecafb04 Bug 1517089 - Part 11: Verify principalInfo before creating any parent actors; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D19205
2019-02-08 21:02:03 +01:00
Jan Varga 473d8c3a68 Bug 1517089 - Part 9: Add baseDomain to ContentPrincipalInfo; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D19203
2019-02-08 21:01:50 +01:00
Coroiu Cristina 24aacfe9a4 Merge inbound to mozilla-central a=merge 2019-03-07 06:34:11 +02:00
Alex Gaynor 9a784d8ef8 Bug 1533066 - replace OptionalIPCClientInfo with IPCClientInfo? in IPDL; r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D22332

--HG--
extra : moz-landing-system : lando
2019-03-06 17:57:04 +00:00
Dorel Luca ac34e1d973 Backed out 16 changesets (bug 1525245) for Android failures. CLOSED TREE
Backed out changeset 9f8a1b410320 (bug 1525245)
Backed out changeset 0ef284a9a1d5 (bug 1525245)
Backed out changeset 835e5f642a03 (bug 1525245)
Backed out changeset 362f5a8d033c (bug 1525245)
Backed out changeset 9da3ab33cf67 (bug 1525245)
Backed out changeset 6aacd2d6e835 (bug 1525245)
Backed out changeset 8ff9e8f45e02 (bug 1525245)
Backed out changeset 2020227181cc (bug 1525245)
Backed out changeset fc3c64c330b9 (bug 1525245)
Backed out changeset 2762bf88e050 (bug 1525245)
Backed out changeset ffc10fdc50a6 (bug 1525245)
Backed out changeset bb6ade1207d7 (bug 1525245)
Backed out changeset 1875eb5085e4 (bug 1525245)
Backed out changeset 7e4f67a6d6f1 (bug 1525245)
Backed out changeset e671fc9581eb (bug 1525245)
Backed out changeset b89f5def8d0d (bug 1525245)
2019-03-06 21:07:49 +02:00
Nathan Froyd 14c0cbba56 Bug 1523996 - part 5 - bulk-read/write adjacent POD fields in IPDL-defined structs; r=Alex_Gaynor
Now that fields are packed nicely, we can take advantage of the
contiguous layout of POD fields and read/write all the POD fields of a
given size in a single read/write call.  For many structs, this should
have little or no effect, but for large structs such as LoadInfoArgs,
this reduces the number of function calls by ~50%.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 13:59:57 +00:00
Nathan Froyd c5829037f6 Bug 1523996 - part 4 - add static assertions for member layout; r=Alex_Gaynor
We're about to start depending on how the fields are packed in a future
patch, so we should add some compile-time checking that our assertions
are correct.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 13:59:48 +00:00
Nathan Froyd f1a050db9b Bug 1523996 - part 3 - factor out reading/writing sentinels; r=Alex_Gaynor
We're going to read and write sentinels slightly differently for
bulk-writing adjacent fields, so let's factor out some reusable code for
doing so.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 13:59:43 +00:00
Nathan Froyd aace5317f4 Bug 1523996 - part 2 - pack IPDL-defined struct members better; r=Alex_Gaynor
This patch changes the layout of IPDL-defined structs to order the POD
members by decreasing size, which ensures everything is packed well.
This optimization is only applied to the internal representation; the
external interface (e.g. constructors) is entirely unchaged.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 13:59:39 +00:00
Nathan Froyd e1246d9446 Bug 1523996 - part 1 - compute a packed ordering for structure fields; r=Alex_Gaynor
This patch computes an ordering for the fields of an IPDL structure decl
such that they are packed well in memory.  We'll take advantage of this
ordering in future patches.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 13:59:35 +00:00
Andrea Marchesini 2fb61cb48b Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 1 - information stored into loadInfo, r=Ehsan,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D18949

--HG--
extra : moz-landing-system : lando
2019-03-06 17:00:39 +00:00
Alex Gaynor e5279ff3f7 Bug 1532727 - replace OptionalURIParams with URIParams? in IPDL; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D22138

--HG--
extra : moz-landing-system : lando
2019-03-06 14:05:50 +00:00
Masatoshi Kimura 5baf191ea3 Bug 1528651 - Another follow-up to fix warnings on beta/release builds. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D21821

--HG--
extra : moz-landing-system : lando
2019-03-05 20:18:48 +00:00
Alex Gaynor d3a1bdd83c Bug 1532368 - replace OptionalPrincipalInfo with PrincipalInfo? in IPDL; r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D21972

--HG--
extra : moz-landing-system : lando
2019-03-05 14:41:42 +00:00
Yaron Tausky 842cf2b27c Bug 1484524: Allow creating a StrongWorkerRef for IPC in the Canceling state r=asuth
By allowing the creation of StrongWorkerRefs in the Canceling state we
ensure that IPC will not fail and lead to crashes.

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

--HG--
extra : moz-landing-system : lando
2019-03-04 23:05:34 +00:00
Alex Gaynor 38a2064d1e Bug 1441651 - Part 2 - pass Shmem and ByteBuf by rvalref to Send* IPC methods; r=nika,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D19954

--HG--
extra : moz-landing-system : lando
2019-03-04 16:35:30 +00:00
Alex Gaynor 82df5a3cd4 Bug 1441651 - Part 1 - pass Shmem and ByteBuf by rvalref to ParamTraits; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D19953

--HG--
extra : moz-landing-system : lando
2019-03-04 16:07:37 +00:00
Alex Gaynor dccb3bee8b Bug 1531827 - replace OptionalLoadInfoArgs with LoadInfoArgs? in IPDL; r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D21722

--HG--
extra : moz-landing-system : lando
2019-03-04 06:30:00 +00:00
Luke Wagner b65bcf0771 Bug 1520931 - Remove dom/asmjscache (r=ttung)
Differential Revision: https://phabricator.services.mozilla.com/D24985

--HG--
extra : rebase_source : 359ed648d0f0120a7892c5ecc794c008b99d1e27
2019-03-26 16:57:55 -05:00
David Major 15d58f1c4c Bug 1531376: Fix more unused code -Werrors in GeckoChildProcessHost.cpp 2019-03-01 14:29:39 -05:00
Gurzau Raul 6b94d177d1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-03-01 09:28:28 +02:00
Chris Pearce e5d0d33136 Bug 1531376 - #ifdef out isWidevine if sandbox disabled in GeckoChildProcessHost.cpp. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D21600

--HG--
extra : moz-landing-system : lando
2019-02-28 21:35:25 +00:00
Nika Layzell 516741b393 Bug 1507991 - Part 2: Serialize domain in ContentPrincipalInfo, r=baku
This is needed to maintain full feature parity with the existing
nsIPrincipal serializer while switching to using the PrincipalInfo-based
one.

Depends on D14434

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

--HG--
extra : moz-landing-system : lando
2019-02-28 16:50:28 +00:00
Cosmin Sabou 00f3836a87 Merge mozilla-inbound to mozilla-central. a=merge 2019-02-28 12:57:50 +02:00
Boris Zbarsky 9c5da5f234 Bug 1489308 part 9. Remove now-unused wyciwyg bits. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D17327

--HG--
rename : dom/html/test/browser_refresh_wyciwyg_url.js => dom/html/test/browser_refresh_after_document_write.js
rename : dom/html/test/file_refresh_wyciwyg_url.html => dom/html/test/file_refresh_after_document_write.html
extra : moz-landing-system : lando
2019-02-28 01:09:48 +00:00
Ciure Andrei 8d2894e70d Backed out 12 changesets (bug 1525245) for failing worker-interception.https.html CLOSED TREE
Backed out changeset 009e7457b990 (bug 1525245)
Backed out changeset efb2e8fca464 (bug 1525245)
Backed out changeset 6a8401de3237 (bug 1525245)
Backed out changeset 38e802661b14 (bug 1525245)
Backed out changeset d02e3f436390 (bug 1525245)
Backed out changeset 10afd61b7582 (bug 1525245)
Backed out changeset 6b92fb3666d1 (bug 1525245)
Backed out changeset 476af2d7efe5 (bug 1525245)
Backed out changeset 43ad14e323a1 (bug 1525245)
Backed out changeset 94295e3fb027 (bug 1525245)
Backed out changeset d01ead2270e9 (bug 1525245)
Backed out changeset 6bdda622a04a (bug 1525245)
2019-02-28 00:55:39 +02:00
Andrea Marchesini dec5a16bcd Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 1 - information stored into loadInfo, r=Ehsan,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D18949

--HG--
extra : moz-landing-system : lando
2019-02-27 19:55:11 +00:00
Aaron Klotz 2dee09001f Bug 1530809: Make LaunchElevated use mscom::ProcessRuntime instead of mscom::STARegion; r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D21261

--HG--
extra : moz-landing-system : lando
2019-02-26 21:40:59 +00:00
Gurzau Raul ad9b9545b4 Backed out 3 changesets (bug 1507991) for bustages at DBSchema.cpp on a CLOSED TREE.
Backed out changeset 71c093a6dace (bug 1507991)
Backed out changeset 15116b423375 (bug 1507991)
Backed out changeset a483c170d712 (bug 1507991)
2019-02-26 22:56:42 +02:00
Chris Pearce 4d52a6a8f4 Bug 1527811 - Don't pass appdir and omnijar path to GMP processes. r=bobowen
GMP shouldn't need them anyway, and this reduces the dependencies from the x86
build we need to package in the "i686" subdir.

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

--HG--
extra : source : 72ef2d2e9429ddb00d423181e3f8c881db228889
extra : intermediate-source : 1481e243977a28f1e8bbc12641f9a44ecb0a3856
extra : histedit_source : 1eb8f04f329e2df8f92b85a884304fd89c616234
2019-02-15 10:47:45 +13:00
Chris Pearce 66200a9a99 Bug 1527811 - Execute plugin-container.exe for CDM GMP child process in "i686" subdir on Windows on ARM. r=bobowen
This patch assumes that "the build" places plugin-container.exe, xul.dll, and
their dependencies in the "i686" subdirectory of the aarch64 firefox package
directory.

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

--HG--
extra : source : bcba2fa22c772ba7c17e0dbdb5a10e5bbfe900d6
extra : histedit_source : 4b7f79876b3e67d1c1c64d91e869c3ad1efc4913
2019-02-12 15:45:07 +13:00
Nika Layzell e1231c52dd Bug 1507991 - Part 2: Serialize domain in ContentPrincipalInfo, r=baku
This is needed to maintain full feature parity with the existing
nsIPrincipal serializer while switching to using the PrincipalInfo-based
one.

Depends on D20853

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

--HG--
extra : moz-landing-system : lando
2019-02-26 15:48:00 +00:00
Gurzau Raul a12ddd1865 Backed out 11 changesets (bug 1525245) for failing at test_cookies_thirdparty.js on a CLOSED TREE.
Backed out changeset 1dcb31a1d5be (bug 1525245)
Backed out changeset 4cde0e38ada8 (bug 1525245)
Backed out changeset d3e99dd3fc32 (bug 1525245)
Backed out changeset a565014fdd8d (bug 1525245)
Backed out changeset 20f336320ce1 (bug 1525245)
Backed out changeset d8ee13b6a17d (bug 1525245)
Backed out changeset b79ec111bf41 (bug 1525245)
Backed out changeset 858d08371107 (bug 1525245)
Backed out changeset 1c359cdcf69f (bug 1525245)
Backed out changeset d65fb2d2a243 (bug 1525245)
Backed out changeset 28147c8790d3 (bug 1525245)
2019-02-26 22:09:25 +02:00
Andrea Marchesini 309c007d8d Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 1 - information stored into loadInfo, r=Ehsan,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D18949

--HG--
extra : moz-landing-system : lando
2019-02-26 17:34:36 +00:00
Alex Gaynor e2c32f5404 Bug 1529686 - Part 2 - fixed IPC test protocols to build with devirtualization; r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D21067

--HG--
extra : moz-landing-system : lando
2019-02-26 15:37:22 +00:00
Alex Gaynor fb6b626563 Bug 1529686 - Part 1 - fixed ipdl unittests for devirtualization, which requires protocol names to start with 'P'; r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D21066

--HG--
rename : ipc/ipdl/test/ipdl/error/asyncMessageListed.ipdl => ipc/ipdl/test/ipdl/error/PasyncMessageListed.ipdl
rename : ipc/ipdl/test/ipdl/ok/AsyncReturn.ipdl => ipc/ipdl/test/ipdl/ok/PAsyncReturn.ipdl
rename : ipc/ipdl/test/ipdl/ok/Delete.ipdl => ipc/ipdl/test/ipdl/ok/PDelete.ipdl
rename : ipc/ipdl/test/ipdl/ok/DeleteSub.ipdl => ipc/ipdl/test/ipdl/ok/PDeleteSub.ipdl
rename : ipc/ipdl/test/ipdl/ok/EndpointDecl.ipdl => ipc/ipdl/test/ipdl/ok/PEndpointDecl.ipdl
rename : ipc/ipdl/test/ipdl/ok/EndpointUse.ipdl => ipc/ipdl/test/ipdl/ok/PEndpointUse.ipdl
rename : ipc/ipdl/test/ipdl/ok/Nullable.ipdl => ipc/ipdl/test/ipdl/ok/PNullable.ipdl
rename : ipc/ipdl/test/ipdl/ok/Struct.ipdl => ipc/ipdl/test/ipdl/ok/PStruct.ipdl
rename : ipc/ipdl/test/ipdl/ok/SyncSyncManagee.ipdl => ipc/ipdl/test/ipdl/ok/PSyncSyncManagee.ipdl
rename : ipc/ipdl/test/ipdl/ok/SyncSyncManager.ipdl => ipc/ipdl/test/ipdl/ok/PSyncSyncManager.ipdl
rename : ipc/ipdl/test/ipdl/ok/actorparam.ipdl => ipc/ipdl/test/ipdl/ok/Pactorparam.ipdl
rename : ipc/ipdl/test/ipdl/ok/actorreturn.ipdl => ipc/ipdl/test/ipdl/ok/Pactorreturn.ipdl
rename : ipc/ipdl/test/ipdl/ok/array_Basic.ipdl => ipc/ipdl/test/ipdl/ok/Parray_Basic.ipdl
rename : ipc/ipdl/test/ipdl/ok/array_OfActors.ipdl => ipc/ipdl/test/ipdl/ok/Parray_OfActors.ipdl
rename : ipc/ipdl/test/ipdl/ok/array_OfActorsSub.ipdl => ipc/ipdl/test/ipdl/ok/Parray_OfActorsSub.ipdl
rename : ipc/ipdl/test/ipdl/ok/array_Union.ipdl => ipc/ipdl/test/ipdl/ok/Parray_Union.ipdl
rename : ipc/ipdl/test/ipdl/ok/basicUsing.ipdl => ipc/ipdl/test/ipdl/ok/PbasicUsing.ipdl
rename : ipc/ipdl/test/ipdl/ok/builtins.ipdl => ipc/ipdl/test/ipdl/ok/Pbuiltins.ipdl
rename : ipc/ipdl/test/ipdl/ok/bytebuf.ipdl => ipc/ipdl/test/ipdl/ok/Pbytebuf.ipdl
rename : ipc/ipdl/test/ipdl/ok/empty.ipdl => ipc/ipdl/test/ipdl/ok/Pempty.ipdl
rename : ipc/ipdl/test/ipdl/ok/emptyStruct.ipdl => ipc/ipdl/test/ipdl/ok/PemptyStruct.ipdl
rename : ipc/ipdl/test/ipdl/ok/headerProto.ipdl => ipc/ipdl/test/ipdl/ok/PheaderProto.ipdl
rename : ipc/ipdl/test/ipdl/ok/intrProtocol.ipdl => ipc/ipdl/test/ipdl/ok/PintrProtocol.ipdl
rename : ipc/ipdl/test/ipdl/ok/jetpack.ipdl => ipc/ipdl/test/ipdl/ok/Pjetpack.ipdl
rename : ipc/ipdl/test/ipdl/ok/manageSelf.ipdl => ipc/ipdl/test/ipdl/ok/PmanageSelf.ipdl
rename : ipc/ipdl/test/ipdl/ok/manageSelf_Toplevel.ipdl => ipc/ipdl/test/ipdl/ok/PmanageSelf_Toplevel.ipdl
rename : ipc/ipdl/test/ipdl/ok/managedProtocol.ipdl => ipc/ipdl/test/ipdl/ok/PmanagedProtocol.ipdl
rename : ipc/ipdl/test/ipdl/ok/managerProtocol.ipdl => ipc/ipdl/test/ipdl/ok/PmanagerProtocol.ipdl
rename : ipc/ipdl/test/ipdl/ok/maybe_Basic.ipdl => ipc/ipdl/test/ipdl/ok/Pmaybe_Basic.ipdl
rename : ipc/ipdl/test/ipdl/ok/maybe_OfActors.ipdl => ipc/ipdl/test/ipdl/ok/Pmaybe_OfActors.ipdl
rename : ipc/ipdl/test/ipdl/ok/maybe_OfActorsSub.ipdl => ipc/ipdl/test/ipdl/ok/Pmaybe_OfActorsSub.ipdl
rename : ipc/ipdl/test/ipdl/ok/maybe_Union.ipdl => ipc/ipdl/test/ipdl/ok/Pmaybe_Union.ipdl
rename : ipc/ipdl/test/ipdl/ok/media.ipdl => ipc/ipdl/test/ipdl/ok/Pmedia.ipdl
rename : ipc/ipdl/test/ipdl/ok/messageCompress.ipdl => ipc/ipdl/test/ipdl/ok/PmessageCompress.ipdl
rename : ipc/ipdl/test/ipdl/ok/messageVerify.ipdl => ipc/ipdl/test/ipdl/ok/PmessageVerify.ipdl
rename : ipc/ipdl/test/ipdl/ok/messageVerifyTopLevel.ipdl => ipc/ipdl/test/ipdl/ok/PmessageVerifyTopLevel.ipdl
rename : ipc/ipdl/test/ipdl/ok/multiManaged.ipdl => ipc/ipdl/test/ipdl/ok/PmultiManaged.ipdl
rename : ipc/ipdl/test/ipdl/ok/multiManager1.ipdl => ipc/ipdl/test/ipdl/ok/PmultiManager1.ipdl
rename : ipc/ipdl/test/ipdl/ok/multiManager2.ipdl => ipc/ipdl/test/ipdl/ok/PmultiManager2.ipdl
rename : ipc/ipdl/test/ipdl/ok/multipleUsingCxxTypes.ipdl => ipc/ipdl/test/ipdl/ok/PmultipleUsingCxxTypes.ipdl
rename : ipc/ipdl/test/ipdl/ok/mutualRecStructUnion.ipdl => ipc/ipdl/test/ipdl/ok/PmutualRecStructUnion.ipdl
rename : ipc/ipdl/test/ipdl/ok/mutualRecUnion.ipdl => ipc/ipdl/test/ipdl/ok/PmutualRecUnion.ipdl
rename : ipc/ipdl/test/ipdl/ok/namespace_Basic.ipdl => ipc/ipdl/test/ipdl/ok/Pnamespace_Basic.ipdl
rename : ipc/ipdl/test/ipdl/ok/noRedeclCrossMessage.ipdl => ipc/ipdl/test/ipdl/ok/PnoRedeclCrossMessage.ipdl
rename : ipc/ipdl/test/ipdl/ok/plugin.ipdl => ipc/ipdl/test/ipdl/ok/Pplugin.ipdl
rename : ipc/ipdl/test/ipdl/ok/selfRecUnion.ipdl => ipc/ipdl/test/ipdl/ok/PselfRecUnion.ipdl
rename : ipc/ipdl/test/ipdl/ok/shmem.ipdl => ipc/ipdl/test/ipdl/ok/Pshmem.ipdl
rename : ipc/ipdl/test/ipdl/ok/syncProtocol.ipdl => ipc/ipdl/test/ipdl/ok/PsyncProtocol.ipdl
rename : ipc/ipdl/test/ipdl/ok/threeDirections.ipdl => ipc/ipdl/test/ipdl/ok/PthreeDirections.ipdl
rename : ipc/ipdl/test/ipdl/ok/union_Basic.ipdl => ipc/ipdl/test/ipdl/ok/Punion_Basic.ipdl
rename : ipc/ipdl/test/ipdl/ok/union_Namespaced.ipdl => ipc/ipdl/test/ipdl/ok/Punion_Namespaced.ipdl
extra : moz-landing-system : lando
2019-02-26 16:54:04 +00:00
Ryan Hunt 5e72855054 Bug 1523969 part 12 - Move method definition inline comments to new line in 'ipc/'. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D21112

--HG--
extra : rebase_source : f7e1461efb6f9e190dd4d9b161e2fb898aeb203a
2019-02-25 16:08:36 -06:00
Masatoshi Kimura e0a317eaee Bug 1528651 - Followup to fix a warning on release or beta. r=aklotz
--HG--
extra : source : 9688ff017d0d9ec8ece0f229187d0fcd6d58922d
extra : intermediate-source : c16331d3f4ab41f4de8414632630d24759209114
2019-02-23 06:58:07 +09:00
Nika Layzell dec9708f74 Bug 1522579 - Part 6: Completely remove nsIContent{Parent,Child}, r=mccr8
Depends on D20553

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

--HG--
extra : moz-landing-system : lando
2019-02-25 20:04:55 +00:00
Nika Layzell 305c3ca912 Bug 1522579 - Part 3: Remove consumers of nsIContentChild, r=mccr8
Like Part 2, however for `nsIContentChild`.

Depends on D20550

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

--HG--
extra : moz-landing-system : lando
2019-02-25 20:04:49 +00:00
Nika Layzell 1e93329f70 Bug 1522579 - Part 2: Remove consumers of nsIContentParent, r=mccr8
This patch tries to move them to `ContentParent` instead.

`ProcessPriorityManagerImpl::ObserveContentParentCreated` could not be moved
due to using `do_QueryInterface` to cast from a `nsISupports` down to the
`ContentParent` object. This could be fixed to remove the interfaces entirely,
but I left that for a follow-up.

Depends on D20549

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

--HG--
extra : moz-landing-system : lando
2019-02-25 20:04:47 +00:00
Nika Layzell f3274c2fd2 Bug 1522579 - Part 1: Remove PContentBridge, r=mccr8
This actor won't be being used anymore, and acts only as a maintenance burden
for people working on this code (which we're doing pretty often these days!).

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

--HG--
extra : moz-landing-system : lando
2019-02-25 20:04:45 +00:00
Andreea Pavel cd1b27ad4d Backed out 6 changesets (bug 1522579) for build bustages on a CLOSED TREE
Backed out changeset 3c8320baa230 (bug 1522579)
Backed out changeset 0a288a3d85cd (bug 1522579)
Backed out changeset ecfd27e7d150 (bug 1522579)
Backed out changeset eda40fca0758 (bug 1522579)
Backed out changeset 5c7aafa32a0a (bug 1522579)
Backed out changeset a3c5a2c16411 (bug 1522579)
2019-02-25 18:19:38 +02:00
Nika Layzell 072dbde694 Bug 1522579 - Part 6: Completely remove nsIContent{Parent,Child}, r=mccr8
Depends on D20553

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:51:25 +00:00
Nika Layzell da5b73b6a0 Bug 1522579 - Part 3: Remove consumers of nsIContentChild, r=mccr8
Like Part 2, however for `nsIContentChild`.

Depends on D20550

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:51:19 +00:00
Nika Layzell ae293bbea9 Bug 1522579 - Part 2: Remove consumers of nsIContentParent, r=mccr8
This patch tries to move them to `ContentParent` instead.

`ProcessPriorityManagerImpl::ObserveContentParentCreated` could not be moved
due to using `do_QueryInterface` to cast from a `nsISupports` down to the
`ContentParent` object. This could be fixed to remove the interfaces entirely,
but I left that for a follow-up.

Depends on D20549

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:51:12 +00:00
Nika Layzell 7924bfa435 Bug 1522579 - Part 1: Remove PContentBridge, r=mccr8
This actor won't be being used anymore, and acts only as a maintenance burden
for people working on this code (which we're doing pretty often these days!).

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

--HG--
extra : moz-landing-system : lando
2019-02-25 15:51:10 +00:00
Nika Layzell 4b1ca2241a Bug 1528493 - Part 2: Move OptionalIPCStream to use new maybe types, r=baku
Depends on D20067

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

--HG--
extra : moz-landing-system : lando
2019-02-22 18:46:14 +00:00
Nika Layzell fa6f0c132c Bug 1528493 - Part 1: Add support for maybe types to IPDL, r=mccr8,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D20067

--HG--
extra : moz-landing-system : lando
2019-02-22 18:46:12 +00:00
Oana Pop Rus e3f2246ee8 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-21 11:42:10 +02:00
Oana Pop Rus b36e97fc77 Merge inbound to mozilla-central. a=merge 2019-02-21 11:31:00 +02:00
Chris Peterson ee7a3f7cca Bug 1528452 - Part 2: Rename _splitMethodDefn() to _splitMethodDeclDefn(). r=froydnj
This follows the naming convention of the related functions _splitClassDeclDefn() and _splitFuncDeclDefn().

Depends on D20056

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

--HG--
extra : moz-landing-system : lando
2019-02-20 11:20:27 +00:00
Chris Peterson 44a9ea3410 Bug 1528452 - Part 1: Don't emit method definitions for pure methods. r=froydnj
Bug 1428984 caused a regression where ipdlc will emit (empty) method definitions for pure methods. C++ allows a pure member function to have a definition (in case a derived class wants to call a default implementation in the base class), but we don't want this for ipdl's generated code.

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

--HG--
extra : moz-landing-system : lando
2019-02-20 11:19:43 +00:00
Cosmin Sabou 9f8b29287b Merge mozilla-central to autoland. 2019-02-21 05:43:34 +02:00
Cosmin Sabou f3db52f4cf Merge mozilla-inbound to mozilla-central. a=merge 2019-02-21 05:42:03 +02:00
Masatoshi Kimura e59e3b3e20 Bug 1528651 - Fix some trivial warnings and re-enable warnings-as-errors on Windows in some directories. r=dmajor
--HG--
extra : source : 5ee9efeda9e67f6af0521be85266703763cc4c50
2019-02-19 20:42:11 +09:00
Aaron Klotz c8b2ad1720 Bug 1529060: Minor mscom::ProcessRuntime cleanup; r=Jamie
* Be sure to set mInitResult = S_OK when we've already done process-wide initialization;
* Don't bother checking for Win32 lockdown unless we're not in the parent process

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

--HG--
extra : moz-landing-system : lando
2019-02-20 03:27:00 +00:00
Makoto Kato 376eb1a4da Bug 1528665 - Remove GetAndroidSystemInfo sync IPC. r=geckoview-reviewers,mccr8,snorp
nsSystemInfo is initialzied at first page load. Actually, content process uses
sync IPC to get Android OS information. But now, we can use Java code even if
on content process, so we should use JNI directly instead of sync IPC.

Also, nsSystemInfo still has unused extern android_sdk_version that is for
HoneyComp's DNS hack.  So let's remote it.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 21:19:14 +00:00
Sylvestre Ledru e0c61dafa5 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
Summary: # ignore-this-changeset

Reviewers: Ehsan

Reviewed By: Ehsan

Subscribers: emilio, jandem, bbouvier, jya

Bug #: 1519636

Differential Revision: https://phabricator.services.mozilla.com/D20062
2019-02-16 20:20:37 +01:00
Valentin Gosu a5cc5b2a87 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-15 22:02:47 +00:00
Valentin Gosu 865d80fff4 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-15 22:02:58 +00:00
Nika Layzell feecd3ed43 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-15 19:49:04 +00:00
Cosmin Sabou 8cb8ef3973 Merge mozilla-central to autoland. 2019-02-15 20:50:34 +02:00
Cosmin Sabou fab429586f Merge autoland to mozilla-central. a=merge 2019-02-15 20:36:32 +02:00
Cosmin Sabou ba308a2f90 Backed out 4 changesets (bug 1521808) for causing merge conflicts.
Backed out changeset 42641f88d7da (bug 1521808)
Backed out changeset 32ce09b2c33a (bug 1521808)
Backed out changeset 94e513102b53 (bug 1521808)
Backed out changeset a08553c07886 (bug 1521808)
2019-02-15 20:34:07 +02:00
Razvan Maries d93d94cbc9 Backed out 9 changesets (bug 1522637) for causing bug 1528188. a=backout
Backed out changeset e4ca191d62a5 (bug 1522637)
Backed out changeset 540e5f318768 (bug 1522637)
Backed out changeset 0886a317a108 (bug 1522637)
Backed out changeset 4c7c512a262d (bug 1522637)
Backed out changeset d7eb272688be (bug 1522637)
Backed out changeset 67e838f49f4b (bug 1522637)
Backed out changeset 7e38890c72fa (bug 1522637)
Backed out changeset e6ca9ad18d15 (bug 1522637)
Backed out changeset 0f759e91eca8 (bug 1522637)
2019-02-15 18:21:36 +02:00
Mike Hommey ef3ad686ee Bug 1512504 - Remove support for MSVC. r=froydnj
Consequently, this removes:
- MOZ_LIBPRIO, which is now always enabled.
- non_msvc_compiler, which is now always true.
- The cl.py wrapper, since it's not used anymore.
- CL_INCLUDES_PREFIX, which was only used for the cl.py wrapper.
- NONASCII, which was only there to ensure CL_INCLUDES_PREFIX still
  worked in non-ASCII cases.

This however keeps a large part of detecting and configuring for MSVC,
because we still do need it for at least headers, libraries, and midl.

Depends on D19614

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

--HG--
extra : moz-landing-system : lando
2019-02-14 21:45:27 +00:00
Aaron Klotz 84c01f8930 Bug 1400344: Rename mscom::MainThreadRuntime to mscom::ProcessRuntime and make it aware of Win32k lockdown and of multiple instantiations; r=Jamie
This patch takes care of a bunch of issues and does some cleanup:

* We rename mscom::MainThreadRuntime to mscom::ProcessRuntime, as the latter
  is a more accurate name going forward.
* We make ProcessRuntime aware of the Win32k Lockdown process mitigation
  policy. When Win32k is disabled, we perform process-wide COM initialization
  in the multi-threaded apartment (since we cannot create an STA window).
* We refactor the mscom apartment region stuff to enable the Win32k lockdown
  pieces in ProcessRuntime.
* We move some Gecko-specific stuff into MOZILLA_INTERNAL_API guards so that
  ProcessRuntime is usable outside of xul.dll (I will be needing it for the
  launcher process).
* Another thing that might happen with the launcher process is that, under
  error conditions in the launcher, we create a ProcessRuntime object on a
  background thread for the purposes of telemetry logging, but we also allow
  the main thread to proceed to start as the browser. This could result in a
  scenario where the main thread, as the browser process, is attempting to
  instantiate its ProcessRuntime and ends up racing with the launcher process's
  telemetry thread which has its own ProcessRuntime. To account for this
  situation, we add mutual exclusion to the process-wide initialization code.
  We host this part inside mozglue since that state is shared between both
  firefox.exe and xul.dll.
* We clean up ProcessRuntime::InitializeSecurity by using Vector to set up
  the EXPLICIT_ACCESS entries.
* We remove mscom::MainThreadClientInfo and replace it with a direct call to
  CoGetCallerTID
* We revise all references to this class to use the new name.

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

--HG--
rename : ipc/mscom/COMApartmentRegion.h => ipc/mscom/ApartmentRegion.h
rename : ipc/mscom/MainThreadRuntime.cpp => ipc/mscom/ProcessRuntime.cpp
rename : ipc/mscom/MainThreadRuntime.h => ipc/mscom/ProcessRuntime.h
extra : moz-landing-system : lando
2019-02-14 18:56:20 +00:00