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

7144 Коммитов

Автор SHA1 Сообщение Дата
Anny Gakhokidze 5986a2de44 Bug 1546759 - Change nsSHistory::WalkHistoryEntries to walk browsing context tree instead of doc shell tree, r=peterv,nika
WalkHistoryEntries function gets called by nsSHistory::CloneAndReplaceChild
and nsSHistory::SetChildHistoryEntry recursively, so those have to be moved
into the parent process. This eliminates many sync IPC calls.

To facilitate transition to a new session history design,
we are mirroring mOSHE and mLSHE SH entries from docshell to browsing context.
Whenever we update those entries in docshell, we will also update those in BC,
and vice versa.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 14:28:22 +00:00
Ehsan Akhgari cde7e014c2 Bug 1620322 - Part 9: Move ContentBlockingLog to antitracking to keep all related code together in the same place; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65822

--HG--
rename : dom/base/ContentBlockingLog.cpp => toolkit/components/antitracking/ContentBlockingLog.cpp
rename : dom/base/ContentBlockingLog.h => toolkit/components/antitracking/ContentBlockingLog.h
extra : moz-landing-system : lando
2020-03-09 23:36:39 +00:00
Ehsan Akhgari 5200d034f5 Bug 1620322 - Part 8: Rename AntiTrackingCommon to ContentBlocking; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65821

--HG--
rename : toolkit/components/antitracking/AntiTrackingCommon.cpp => toolkit/components/antitracking/ContentBlocking.cpp
rename : toolkit/components/antitracking/AntiTrackingCommon.h => toolkit/components/antitracking/ContentBlocking.h
extra : moz-landing-system : lando
2020-03-09 23:36:39 +00:00
Ehsan Akhgari 4369044005 Bug 1620322 - Part 6: Refactor the code related to user interactions out of AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65819

--HG--
extra : moz-landing-system : lando
2020-03-09 23:36:35 +00:00
Ehsan Akhgari 8e46ea55d2 Bug 1620322 - Part 2: Refactor the code for content blocking events and notifications out of AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65743

--HG--
extra : moz-landing-system : lando
2020-03-09 23:36:37 +00:00
Narcis Beleuzu 0186cbe565 Backed out 8 changesets (bug 1620322) for bustages on nsContentSink.cpp . CLOSED TREE
Backed out changeset f41739c64dff (bug 1620322)
Backed out changeset be942a7f329e (bug 1620322)
Backed out changeset a916987c7c71 (bug 1620322)
Backed out changeset ead3484ffb5f (bug 1620322)
Backed out changeset 4e1e8b9afa1a (bug 1620322)
Backed out changeset 473bba698e5a (bug 1620322)
Backed out changeset 0e5e5d41597d (bug 1620322)
Backed out changeset 31b24d79db3d (bug 1620322)

--HG--
rename : toolkit/components/antitracking/ContentBlockingLog.cpp => dom/base/ContentBlockingLog.cpp
rename : toolkit/components/antitracking/ContentBlockingLog.h => dom/base/ContentBlockingLog.h
rename : toolkit/components/antitracking/ContentBlocking.cpp => toolkit/components/antitracking/AntiTrackingCommon.cpp
rename : toolkit/components/antitracking/ContentBlocking.h => toolkit/components/antitracking/AntiTrackingCommon.h
2020-03-09 22:18:36 +02:00
Ehsan Akhgari 8530d61140 Bug 1620322 - Part 9: Move ContentBlockingLog to antitracking to keep all related code together in the same place; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65822

--HG--
rename : dom/base/ContentBlockingLog.cpp => toolkit/components/antitracking/ContentBlockingLog.cpp
rename : dom/base/ContentBlockingLog.h => toolkit/components/antitracking/ContentBlockingLog.h
extra : moz-landing-system : lando
2020-03-09 18:12:42 +00:00
Ehsan Akhgari 5045d313c2 Bug 1620322 - Part 8: Rename AntiTrackingCommon to ContentBlocking; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65821

--HG--
rename : toolkit/components/antitracking/AntiTrackingCommon.cpp => toolkit/components/antitracking/ContentBlocking.cpp
rename : toolkit/components/antitracking/AntiTrackingCommon.h => toolkit/components/antitracking/ContentBlocking.h
extra : moz-landing-system : lando
2020-03-09 18:12:40 +00:00
Ehsan Akhgari a95fb737fd Bug 1620322 - Part 6: Refactor the code related to user interactions out of AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65819

--HG--
extra : moz-landing-system : lando
2020-03-09 18:12:35 +00:00
Ehsan Akhgari 78677f7812 Bug 1620322 - Part 2: Refactor the code for content blocking events and notifications out of AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65743

--HG--
extra : moz-landing-system : lando
2020-03-09 18:12:26 +00:00
Andrew McCreight c5217006a9 Bug 1620705 - Don't send "memory-pressure" if ContentChild::mShuttingDown. r=smaug
Shutting down the process is going to free more memory than anything else we
could do, so don't delay it.

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

--HG--
extra : moz-landing-system : lando
2020-03-09 18:41:34 +00:00
Noemi Erli a48fac9e3b Backed out 8 changesets (bug 1620322) for causing bustages in ContentBlockingLog.cpp CLOSED TREE
Backed out changeset 3dcf513e36cb (bug 1620322)
Backed out changeset 46714855ce1d (bug 1620322)
Backed out changeset 0eb2b5f7322f (bug 1620322)
Backed out changeset 72d640fa0740 (bug 1620322)
Backed out changeset 4533bb4e5177 (bug 1620322)
Backed out changeset 659270edd419 (bug 1620322)
Backed out changeset 6802c18b1914 (bug 1620322)
Backed out changeset 60ff34db9f15 (bug 1620322)

--HG--
rename : toolkit/components/antitracking/ContentBlockingLog.cpp => dom/base/ContentBlockingLog.cpp
rename : toolkit/components/antitracking/ContentBlockingLog.h => dom/base/ContentBlockingLog.h
rename : toolkit/components/antitracking/ContentBlocking.cpp => toolkit/components/antitracking/AntiTrackingCommon.cpp
rename : toolkit/components/antitracking/ContentBlocking.h => toolkit/components/antitracking/AntiTrackingCommon.h
2020-03-09 19:19:41 +02:00
Ehsan Akhgari 271a1e1e51 Bug 1620322 - Part 9: Move ContentBlockingLog to antitracking to keep all related code together in the same place; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65822

--HG--
rename : dom/base/ContentBlockingLog.cpp => toolkit/components/antitracking/ContentBlockingLog.cpp
rename : dom/base/ContentBlockingLog.h => toolkit/components/antitracking/ContentBlockingLog.h
extra : moz-landing-system : lando
2020-03-09 10:23:30 +00:00
Ehsan Akhgari 1195c302a4 Bug 1620322 - Part 8: Rename AntiTrackingCommon to ContentBlocking; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65821

--HG--
rename : toolkit/components/antitracking/AntiTrackingCommon.cpp => toolkit/components/antitracking/ContentBlocking.cpp
rename : toolkit/components/antitracking/AntiTrackingCommon.h => toolkit/components/antitracking/ContentBlocking.h
extra : moz-landing-system : lando
2020-03-09 10:23:07 +00:00
Ehsan Akhgari 300024b8c3 Bug 1620322 - Part 6: Refactor the code related to user interactions out of AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65819

--HG--
extra : moz-landing-system : lando
2020-03-09 10:22:14 +00:00
Ehsan Akhgari 4bc71d0112 Bug 1620322 - Part 2: Refactor the code for content blocking events and notifications out of AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65743

--HG--
extra : moz-landing-system : lando
2020-03-09 10:16:54 +00:00
Jonathan Kew 3df4ab8b5e Bug 1620111 - Eliminate sync-IPC message ReadFontList, instead use SetXPCOMProcessAttributes to pass font list to the child process on Android. r=lsalzman,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D65742

--HG--
extra : moz-landing-system : lando
2020-03-09 12:27:45 +00:00
Timothy Nikkel e424589434 Bug 1620817. Invalidate when the BrowserChild gets a different visible rect. r=mattwoodrow
layout/reftests/bugs/370422-1.html changes the size of a fission iframe.

Bug 1615504 made sure the visible rect got to the child process. But there is still a failure mode where (I assume) all invalidations/painting of changing the document size in the iframe content process happens before the effects visible rect ipc msg arrives at the content process.

In this case we still need to invalidate even though we use the correct visible rect on the builder we need a dirty rect that includes the unveiled area.

Depends on D65888

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

--HG--
extra : moz-landing-system : lando
2020-03-08 22:19:10 +00:00
Mark Banner 15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Noemi Erli 507497e864 Backed out 2 changesets (bug 1580176) for causing hazard bustages CLOSED TREE
Backed out changeset 59f7472b2ad4 (bug 1580176)
Backed out changeset 6f33e6cec3c1 (bug 1580176)
2020-03-06 21:31:48 +02:00
Kashav Madan 0f6fedc8ee Bug 1580176 - Part 2: Log sent and received messages in JSWindowActor, r=nika
Also logs JSWindowActor{Child,Parent}::Init and JSWindowActor::{Start,After}Destroy.

Originally authored by :freddyb.

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

--HG--
extra : moz-landing-system : lando
2020-03-06 18:10:40 +00:00
Kashav Madan 4ea86a1e83 Bug 1580176 - Part 1: Make some common actor utility methods virtual, r=nika
Adds GetManager on JSWindowActor (returns the associated WindowGlobalActor),
and IsInProcess on WindowGlobalActor (returns whether the actor is in process
or not).

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

--HG--
extra : moz-landing-system : lando
2020-03-06 18:10:38 +00:00
Ehsan Akhgari 5a4c537105 Bug 1620322 - Part 1: Refactor the code for content blocking allow list out of AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65662

--HG--
extra : moz-landing-system : lando
2020-03-06 16:36:01 +00:00
Simon Giesecke ac33c1f119 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/ipc. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D65179

--HG--
extra : moz-landing-system : lando
2020-03-06 09:11:40 +00:00
alwu 1d40019c19 Bug 1592037 - part3 : notifty updating media session's metadata. r=MeFisto94
Whenever media session's metadata changes in the content process, we would like to propogate the updated metadata to the media controller in the parent process in order to show that in the virtual media control interface, which would only be set in the chrome process.

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

--HG--
extra : moz-landing-system : lando
2020-03-05 20:58:54 +00:00
Tim Huang 04d44bae12 Bug 1616570 - Part 1: Rename CookieSettings to CookieJarSettings. r=Ehsan
Given that we are going to add ContentBlockingAllowList in
CookieSettings, so CookieSettings will be responsible for more stuff than the
cookie behavior and cookie permission. We should use a proper name to
reflect the purpose of it. The name 'CookieSettings' is misleading that
this is only for cookie related stuff. So, we decide to rename
'CookieSettins' to 'CookieJarSettings' which serves better meaning here.

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

--HG--
rename : netwerk/cookie/CookieSettings.cpp => netwerk/cookie/CookieJarSettings.cpp
rename : netwerk/cookie/nsICookieSettings.idl => netwerk/cookie/nsICookieJarSettings.idl
extra : moz-landing-system : lando
2020-03-04 08:59:08 +00:00
Makoto Kato 6279258383 Bug 1503656 - Part 7. Notify of safe area insets changed. r=smaug
Since safe area insets uses on content, we need send it from chrome process to
content process.

SafeAreaInsetsChanged will be called per window position/size change (Next
patch is Android implementation for it), we have to calculate safe area insets
on widget/window per change.

Current implementation is that this value is top level document only like Blink
since https://github.com/w3c/csswg-drafts/issues/4670 isn't resolved yet.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 08:16:31 +00:00
Csoregi Natalia aa5b814fee Backed out 6 changesets (bug 1503656) as per request. CLOSED TREE
Backed out changeset 27faa3b167a9 (bug 1503656)
Backed out changeset 7111f9b5ad06 (bug 1503656)
Backed out changeset 43fdc889beac (bug 1503656)
Backed out changeset 332ceea26151 (bug 1503656)
Backed out changeset f31efa4ea2ec (bug 1503656)
Backed out changeset 91b847efe591 (bug 1503656)
2020-03-04 10:07:42 +02:00
Makoto Kato 00949ff265 Bug 1503656 - Part 7. Notify of safe area insets changed. r=smaug
Since safe area insets uses on content, we need send it from chrome process to
content process.

SafeAreaInsetsChanged will be called per window position/size change (Next
patch is Android implementation for it), we have to calculate safe area insets
on widget/window per change.

Current implementation is that this value is top level document only like Blink
since https://github.com/w3c/csswg-drafts/issues/4670 isn't resolved yet.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 07:28:04 +00:00
Matt Woodrow 0b6366e23e Bug 1617434 - Don't recreate ClientSource when we process switch. r=perry
Now that we're guaranteed to not have an existing ClientSource in the old process, we no longer need to allocate a new ClientInfo in the new process.
This lets us just create a ClientSource around the ClientInfo already on the channel (exactly as we do for same-process loads), and we no longer need to reconcile changes with the parent.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 02:47:57 +00:00
Daniel Varga 8d900cf3ef Backed out changeset e51b4e883adc (bug 1507287) for not having proper review 2020-03-03 18:23:07 +02:00
Alphan Chen 9ead74bd10 Bug 1507287 - Make sessionRestore work with session history living in the parent process. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D46281

--HG--
extra : moz-landing-system : lando
2020-03-03 16:16:03 +00:00
Mihai Alexandru Michis f049ee5a93 Backed out 4 changesets (bug 1589493) for causing failures in test_process_error_oom.xhtml
CLOSED TREE

Backed out changeset d914e968de2c (bug 1589493)
Backed out changeset 2c23fed6b2ff (bug 1589493)
Backed out changeset 416b95911b6d (bug 1589493)
Backed out changeset 47e745b389d0 (bug 1589493)
2020-03-03 12:21:11 +02:00
David Teller 726cc381c7 Bug 1589493 - Testing ipc:content-shutdown's support for isLikelyOOM;r=gsvelto
Depends on D54700

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

--HG--
extra : moz-landing-system : lando
2020-03-03 08:35:09 +00:00
David Teller c04d208ad5 Bug 1589493 - Expose isLikelyOOM to Content crash handlers;r=gsvelto
Depends on D54129

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

--HG--
extra : moz-landing-system : lando
2020-03-03 08:34:29 +00:00
Oana Pop Rus 9f4dae4db5 Backed out 4 changesets (bug 1589493) for mochitest multiple failures in test_process_error_oom.xhtml on a CLOSED TREE
Backed out changeset 6ab5b9391f95 (bug 1589493)
Backed out changeset 4c3d736d0259 (bug 1589493)
Backed out changeset 8e5458038d38 (bug 1589493)
Backed out changeset 716e6cd5245f (bug 1589493)
2020-03-02 15:57:39 +02:00
David Teller 4d433f1b47 Bug 1589493 - Testing ipc:content-shutdown's support for isLikelyOOM;r=gsvelto
Depends on D54700

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

--HG--
extra : moz-landing-system : lando
2020-03-02 11:24:21 +00:00
David Teller 7706533531 Bug 1589493 - Expose isLikelyOOM to Content crash handlers;r=gsvelto
Depends on D54129

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

--HG--
extra : moz-landing-system : lando
2020-03-02 11:22:13 +00:00
Matt Woodrow ba75e2fd89 Bug 1615966 - Try to compute topWindowURI/contentblockingallowlistprincipal in the parent process for DocumentChannel. r=nika,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D63041

--HG--
extra : moz-landing-system : lando
2020-03-01 19:25:01 +00:00
Andrew McCreight 4babb2b5ab Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 17:39:15 +00:00
Boris Zbarsky aa65e88c73 Bug 911444 part 2. Allow sending an nsIPrincipal in a variant over IPC. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63708

--HG--
extra : moz-landing-system : lando
2020-02-27 14:54:53 +00:00
Daniel Varga 860a0279eb Backed out 4 changesets (bug 1589493) for causing mochitest failures at dom/ipc/tests/test_process_error.xhtml
CLOSED TREE

Backed out changeset 5b1b813bbdab (bug 1589493)
Backed out changeset aed44db455c4 (bug 1589493)
Backed out changeset 9f357dded30f (bug 1589493)
Backed out changeset 87c463f53ea9 (bug 1589493)

--HG--
extra : amend_source : 0b1fb8afac0d4cd7ee5680fb88fbd5ce5b99688f
2020-02-27 16:31:56 +02:00
David Teller a43f540f7d Bug 1589493 - Testing ipc:content-shutdown's support for isLikelyOOM;r=gsvelto
Depends on D54700

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

--HG--
extra : moz-landing-system : lando
2020-02-27 13:21:36 +00:00
David Teller aa195f1a76 Bug 1589493 - Expose isLikelyOOM to Content crash handlers;r=gsvelto
Depends on D54129

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

--HG--
extra : moz-landing-system : lando
2020-02-27 11:05:14 +00:00
Daniel Varga 1e0ceaa672 Backed out 4 changesets (bug 1589493) for causing mochitest failure at dom/ipc/tests/test_process_error_oom.xhtml
CLOSED TREE

Backed out changeset 46183b72cf37 (bug 1589493)
Backed out changeset 3621ad792a38 (bug 1589493)
Backed out changeset 4c242e542545 (bug 1589493)
Backed out changeset f0ab64c7765b (bug 1589493)

--HG--
extra : rebase_source : 74643ea36f7fc0d90647bc79c939e36fdeb14839
2020-02-27 12:52:39 +02:00
David Teller f370e3346e Bug 1589493 - Testing ipc:content-shutdown's support for isLikelyOOM;r=gsvelto
Depends on D54700

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

--HG--
extra : moz-landing-system : lando
2020-02-26 20:32:35 +00:00
David Teller 7dd5bc5b03 Bug 1589493 - Expose isLikelyOOM to Content crash handlers;r=gsvelto
Depends on D54129

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

--HG--
extra : moz-landing-system : lando
2020-02-26 20:30:54 +00:00
Ciure Andrei 00dd87f6f4 Backed out changeset d407a28318e6 (bug 1609815) for causing windows ming bustages CLOSED TREE
--HG--
extra : histedit_source : b2c748e31e0f6ba8fcf9960a336e0bbd361b07e6
2020-02-27 07:05:19 +02:00
Andrew McCreight b197e1f783 Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 04:43:48 +00:00
Nika Layzell 9a986dc911 Bug 1617063 - Part 3: Allow creating WindowContext for discarded, but not cleaned up, BrowsingContexts, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D64225

--HG--
extra : moz-landing-system : lando
2020-02-26 18:22:31 +00:00
Nika Layzell 73c537ec74 Bug 1617063 - Part 2: Share mBrowsingContext field between WindowGlobalParent and WindowContext, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D64224

--HG--
extra : moz-landing-system : lando
2020-02-26 18:21:07 +00:00
Nika Layzell 09ea5ff76e Bug 1617063 - Part 1: Remove duplicate InnerWindowId and OuterWindowId fields from WindowGlobalParent, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D64223

--HG--
extra : moz-landing-system : lando
2020-02-26 18:19:17 +00:00
Coroiu Cristina 9d56d9389b Backed out 4 changesets (bug 1589493) for multiple failures and crashes on CrashReporterHost on a CLOSED TREE
Backed out changeset 59fc685edca2 (bug 1589493)
Backed out changeset 275b66a8c77a (bug 1589493)
Backed out changeset 23601d10e69d (bug 1589493)
Backed out changeset e8e7bc5c8a00 (bug 1589493)
2020-02-26 18:11:44 +02:00
David Teller 048a2c638e Bug 1605072 - Updating assertion check in MinTabSelect;r=nika
Forgot a negation in the assertion check. Ideally, this should be squashed with a previous patch
but this would require backouting a patch for a one-character change, so adding this patch separately.

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

--HG--
extra : moz-landing-system : lando
2020-02-26 15:10:50 +00:00
David Teller dff8adaa9a Bug 1589493 - Testing ipc:content-shutdown's support for isLikelyOOM;r=gsvelto
Depends on D54700

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

--HG--
extra : moz-landing-system : lando
2020-02-26 14:52:55 +00:00
David Teller d35076d793 Bug 1589493 - Expose isLikelyOOM to Content crash handlers;r=gsvelto
Depends on D54129

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

--HG--
extra : moz-landing-system : lando
2020-02-25 18:16:31 +00:00
Kris Maglione c31aa68fb4 Bug 1535617: Part 2 - Clear weak references for most cycle collected objects on unlink. r=mccr8
This covers most cycle collected objects which support weak references, but
not the ones which inherit from a cycle collected class and don't do any cycle
collection on their own.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 19:44:39 +00:00
Olli Pettay d9972ce888 Bug 1561488 - null check document in RecvUIResolutionChanged and RecvThemeChanged, r=bdahl
These were the worrisome missing null checks I noticed, and crash-stat shows that there areactually crashes in these two places

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

--HG--
extra : moz-landing-system : lando
2020-02-25 18:05:57 +00:00
Noemi Erli b3a7ad66b1 Backed out 4 changesets (bug 1589493) for causing lint failure in test_process_error_oom.xhtml
Backed out changeset 9dbe0bdd321b (bug 1589493)
Backed out changeset 900ec6b447c9 (bug 1589493)
Backed out changeset 3f7c15d29416 (bug 1589493)
Backed out changeset c1bc7695e720 (bug 1589493)
2020-02-25 20:10:35 +02:00
David Teller 2b49f57fa1 Bug 1589493 - Testing ipc:content-shutdown's support for isLikelyOOM;r=gsvelto
Depends on D54700

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

--HG--
extra : moz-landing-system : lando
2020-02-25 17:38:47 +00:00
David Teller 713124183d Bug 1589493 - Expose isLikelyOOM to Content crash handlers;r=gsvelto
Depends on D54129

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

--HG--
extra : moz-landing-system : lando
2020-02-25 17:37:29 +00:00
Simon Giesecke aaf6cb4e75 Bug 1617628 - Hide nsBaseHashtable Put overloads in nsRefPtrHashtable subclass. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63899

--HG--
extra : moz-landing-system : lando
2020-02-25 17:03:36 +00:00
Olli Pettay d46a226467 Bug 1577432 - Null check document in BrowserChild::RecvSizeModeChanged, r=bdahl
Based on crash stats the crash is null+offset, and I think the issue can happen during closing down
BrowserChild if there is a pending RecvSizeModeChanged message.
The crash has been there for ages, I think since bug 1104916

Note, BrowserChild::RecvUpdateDimensions does have a null check for the document.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 00:07:04 +00:00
Dorel Luca 1def5d818a Backed out 4 changesets (bug 911444) for Mochitest failures in dom/base/test/test_pdf_print.html. CLOSED TREE
Backed out changeset d156bbaabbd5 (bug 911444)
Backed out changeset a32592af0b11 (bug 911444)
Backed out changeset b96d0a37ed1a (bug 911444)
Backed out changeset fd2e3e8728d9 (bug 911444)
2020-02-25 00:11:50 +02:00
Boris Zbarsky 18a2411b3d Bug 911444 part 2. Allow sending an nsIPrincipal in a variant over IPC. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63708

--HG--
extra : moz-landing-system : lando
2020-02-21 21:48:21 +00:00
Kartikaya Gupta 85c3d9e6a5 Bug 1617565 - Convert additional compile-conditional logging bits to MOZ_LOG. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D63868

--HG--
extra : moz-landing-system : lando
2020-02-24 16:31:04 +00:00
Ehsan Akhgari a8ca0713ed Bug 1614831 - Speed up the transmission of permissions to content processes upon navigation; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D63674

--HG--
extra : moz-landing-system : lando
2020-02-24 15:21:51 +00:00
Matt Woodrow 230ce652a1 Bug 1614847 - Copy the load type across to the new nsDocShellLoadState. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63268

--HG--
extra : moz-landing-system : lando
2020-02-24 02:17:01 +00:00
Matt Woodrow ebf189ed47 Bug 1614847 - Construct nsDocShellLoadState in ContentChild to avoid needing to pass excess parameters into nsDocShell. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63267

--HG--
extra : moz-landing-system : lando
2020-02-24 02:16:24 +00:00
Arnaud Renevier 9d7abb9383 Bug 1607364 - CrashReporting API r=baku
Implement Crash Report for Reporting API.

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

--HG--
extra : moz-landing-system : lando
2020-02-21 17:40:30 +00:00
Nika Layzell 199effbc30 Bug 1615403 - Part 9: Remove old BrowsingContext & WindowContext serializers, r=farre
These serializers have been superceded by the new
MaybeDiscarded<BrowsingContext> and MaybeDiscarded<WindowContext> serializers
added in earlier parts.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 23:30:56 +00:00
Nika Layzell 83006b3472 Bug 1615403 - Part 8: Use MaybeDiscarded for new focus methods, r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D63374

--HG--
extra : moz-landing-system : lando
2020-02-20 23:30:54 +00:00
Nika Layzell 38b8556d89 Bug 1615403 - Part 7: Use MaybeDiscarded for PExternalAppHelperParent, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D62934

--HG--
extra : moz-landing-system : lando
2020-02-20 23:30:52 +00:00
Nika Layzell b614aeff7b Bug 1615403 - Part 6: Use MaybeDiscarded for WindowGlobalInit, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D62837

--HG--
extra : moz-landing-system : lando
2020-02-20 23:30:50 +00:00
Nika Layzell 9fef430436 Bug 1615403 - Part 5: Use MaybeDiscarded for RestoreBrowsingContextChildren, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D62836

--HG--
extra : moz-landing-system : lando
2020-02-20 23:30:47 +00:00
Nika Layzell 86a0f60017 Bug 1615403 - Part 4: Use MaybeDiscarded for PSHistory, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D62835

--HG--
extra : moz-landing-system : lando
2020-02-20 23:30:45 +00:00
Nika Layzell 930087d6c6 Bug 1615403 - Part 3: Use MaybeDiscarded for postMessage source, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D62834

--HG--
extra : moz-landing-system : lando
2020-02-20 23:30:38 +00:00
Nika Layzell 476ad24af9 Bug 1615403 - Part 2: Use MaybeDiscarded for direct IPC arguments, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D62833

--HG--
extra : moz-landing-system : lando
2020-02-20 23:30:35 +00:00
Nika Layzell 77393e07dd Bug 1615403 - Part 1: Introduce a new MaybeDiscarded type, r=farre
Adds a new MaybeDiscarded wrapper type which allows sending a maybe-discarded
BrowsingContext over IPC to another process which must be explicitly checked for
nullness and discarded status before being used.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 23:30:33 +00:00
alwu b47157c216 Bug 1611328 - part1 : update document title via WindowGlobal r=nika
In order to generate media default metadata, we need to know document's title in the media session controller.

Therefore, store this property in `WindowGlobal` to allow we access document's title in chrome process.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:04:23 +00:00
Aaron Klotz e377847a3f Bug 1616562: Do not call GeckoProcessManager::MarkAsDead unless the ContentParent lifecycle state is ALIVE; r=geckoview-reviewers,snorp
`OtherPid()` release asserts when the process has not connected.

Since `MarkAsDead` is called under both success and failure conditions, we must
ensure that we are running under a success condition (ie, we successfully
started but are now shutting down) before we call into `GeckoProcessManager`.

Note that, in the failure case, `GeckoProcessManager` is already aware that the
process is not alive by virtue of the fact that it was responsible for creating
the process in the first place; it already saw the failure.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 21:12:05 +00:00
Simon Giesecke 9350e6b741 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 11:40:14 +00:00
Andrea Marchesini 688f40008c Bug 1577040 - Part 7: Get rid of nsIClassifiedChanel::IsTrackingResource(), r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D63305

--HG--
extra : moz-landing-system : lando
2020-02-20 07:30:30 +00:00
Andrea Marchesini 58c13b1a1e Bug 1577040 - Part 4: Get rid of nsIClassifiedChannel::IsSocialTrackingResource(), r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D63302

--HG--
extra : moz-landing-system : lando
2020-02-20 07:29:24 +00:00
Andrea Marchesini 09465dbf49 Bug 1577040 - Part 0: nsIClassifiedChannel.isThirdPartySocialTrackingResource(), r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D63298

--HG--
extra : moz-landing-system : lando
2020-02-20 07:26:54 +00:00
Dorel Luca d5f9df8ee1 Backed out 2 changesets (bug 1613985) for Build bustage on Windows2012. CLOSED TREE
Backed out changeset fd177b40b561 (bug 1613985)
Backed out changeset fb6d62b7f28d (bug 1613985)
2020-02-19 22:22:41 +02:00
Simon Giesecke 59b23375c0 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 18:05:38 +00:00
David Teller f4fcc09d90 Bug 1605072 - Rewriting ContentParent::GetNewOrUsedBrowserProcess;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D60499

--HG--
extra : moz-landing-system : lando
2020-02-18 18:53:17 +00:00
Jed Davis ee171b6406 Bug 1615155 - Don't generate default `Recv__delete__` if there are args. r=nika
The default method implementations cause problems when trying to
override them with different types in a direct call class.

For the `Recv__delete__` case there's a simple solution: omit it if
there are any arguments, because it doesn't make much sense to specify
arguments and then completely ignore them, and the no-arg case isn't a
problem for overriding.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 20:46:21 +00:00
Arthur Iakab d5dfd41c95 Backed out 2 changesets (bug 1605072) for causing reftest failures with splitText-normalize.html.
CLOSED TREE

Backed out changeset f9d038830cda (bug 1605072)
Backed out changeset 9431489d2688 (bug 1605072)
2020-02-18 17:58:31 +02:00
David Teller e5af5aaf62 Bug 1605072 - Rewriting ContentParent::GetNewOrUsedBrowserProcess;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D60499

--HG--
extra : moz-landing-system : lando
2020-02-18 14:02:01 +00:00
Henri Sivonen ac7d3f7b2a Bug 1556627 - Make nsFocusManager::SetFocus work in Fission. r=NeilDeakin,farre,masayuki
Differential Revision: https://phabricator.services.mozilla.com/D55651

--HG--
extra : moz-landing-system : lando
2020-02-18 13:30:04 +00:00
shindli bc91508b05 Backed out 2 changesets (bug 1605072) for causing reftest failures in layout/reftests/selection/splitText-normalize-ref.html CLOSED TREE
Backed out changeset 973f1e5baebf (bug 1605072)
Backed out changeset 038b50303733 (bug 1605072)
2020-02-17 21:39:58 +02:00
David Teller 361a4f6284 Bug 1605072 - Rewriting ContentParent::GetNewOrUsedBrowserProcess;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D60499

--HG--
extra : moz-landing-system : lando
2020-02-17 17:31:32 +00:00
Emilio Cobos Álvarez 7dbe3f32c3 Bug 1615609 - Rename nsRefreshDriver::IntersectionObservationAdded. r=hiro
The existing name is wrong since recently.

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

--HG--
extra : moz-landing-system : lando
2020-02-15 07:23:51 +00:00
sotaro 385addd8c7 Bug 1614570 - Make VRManagerChild life time handling more like CompositorManagerChild r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D62710

--HG--
extra : moz-landing-system : lando
2020-02-14 15:10:40 +00:00
Mihai Alexandru Michis 7a12252825 Backed out changeset 93c88e36d8ea (bug 1615609) for causing bustages in DOMIntersectionObserver.cpp
CLOSED TREE
2020-02-15 03:17:43 +02:00
Emilio Cobos Álvarez bb6f2791e3 Bug 1615609 - Rename nsRefreshDriver::IntersectionObservationAdded. r=hiro
The existing name is wrong since recently.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 21:16:06 +00:00
Boris Zbarsky 6c66fa85a4 Bug 1615022 part 2. Require an rvalue reference to reject a Promise with an ErrorResult. r=farre,kvark
The rejection process consumes the ErrorResult, so an rvalue reference is the honest thing here.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 15:42:30 +00:00
Hiroyuki Ikezoe 796e6049b6 Bug 1550800 - Call BrowserParent::UpdateDimensions() in BrowserBridgeParent::RecvUpdateDimensions. r=nika,hsivonen
So that we can get the correct client offset value and store other metrics
there and reuse them when the top browser window moves.

The client offset, browser window title bar and window decorated frame width,
is necessary to get element positions in OOP iframes in screen coordinates
for drag-and-drop etc.

This change also fixes event.screen{X,Y}. A mochitest in this commit fails
without this change with enabling fission at least on Linux. Note that in the
mochitest we have to use nsIDOMWindowUtils.synthesizeNativeMouseClick instead
of nsIDOMWindowUtils.sendMouseEvent since sendMouseEvent doesn't work in fission
world (bug 1528935).

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

--HG--
extra : moz-landing-system : lando
2020-02-13 22:30:56 +00:00