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
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