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

41 Коммитов

Автор SHA1 Сообщение Дата
Ryan Hunt 9078c825ec Bug 1525720, part 14 - Move final bits of nsIRemoteTab implementation to BrowserHost. r=nika
This commit moves the actual implementation of nsIRemoteTab from BrowserParent
to BrowserHost, without any functional changes.

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

--HG--
extra : source : d25963c72ff7981990660050182a82ea3e935f53
2019-05-08 15:47:18 -05:00
Ryan Hunt 4683a8b07a Bug 1525720, part 13 - Stop inheriting nsIRemoteTab interface in BrowserParent. r=nika
This commit removes nsIRemoteTab as a parent class from BrowserParent,
so that BrowserHost is the only concrete implementation of nsIRemoteTab.

Some static_cast's are updated to cast to BrowserHost, and other places
have to be updated to pass a BrowserHost instead of a BrowserParent.

WindowGlobalParent had a getter to return it's managing BrowserParent
as a nsIRemoteTab. I couldn't find a use of this in-tree, so I've just
opt-ed to remove it. If there's a use-case, we can add something back
in.

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

--HG--
extra : source : 810b7371987139844429d0206f9da6a7701a1efc
2019-05-08 14:34:47 -05:00
Ryan Hunt fd25ba1f84 Bug 1525720, part 10 - Link BrowserParent and BrowserHost on creation. r=nika
This commit adds a link from BrowserParent to it's owning BrowserHost
if it is the root BrowserParent.

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

--HG--
extra : source : d3b2ac8d5ca4bd350603085c3cb9f6a51269e075
2019-05-15 10:34:03 -05:00
Ryan Hunt cadf33a327 Bug 1525720, part 2 - Move UITabResolutionChanged method to nsIRemoteTab interface from BrowserParent. r=smaug
This reduces the amount of code that assumes that BrowserParent implements nsIRemoteTab.

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

--HG--
extra : source : 5f1c1b609ec1ecc28734e1b6daeeb3f6854ded38
2019-04-24 23:05:40 -05:00
Ryan Hunt ce59f54daf Bug 1525720, part 1 - Allow calling BrowserParent::InitRendering multiple times, and remove RenderFrame dependency from nsFrameLoader. r=kats
This cleanup will simplify refactoring nsFrameLoader later.

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

--HG--
extra : source : 00d83f1d02e015735d580045524eceeeccdc4e28
2019-04-24 22:36:27 -05:00
Gurzau Raul 57f573a6ff Backed out 18 changesets (bug 1525720) for mass failures on Windows platform e.g ProcessPriorityManager.cpp on a CLOSED TREE.
Backed out changeset 1f2e86c2d691 (bug 1525720)
Backed out changeset 9b79caa460a0 (bug 1525720)
Backed out changeset e65cb2d4c5a5 (bug 1525720)
Backed out changeset 99f971a02d87 (bug 1525720)
Backed out changeset d25963c72ff7 (bug 1525720)
Backed out changeset 810b73719871 (bug 1525720)
Backed out changeset ee10a8254481 (bug 1525720)
Backed out changeset 1bcf9f586c55 (bug 1525720)
Backed out changeset d3b2ac8d5ca4 (bug 1525720)
Backed out changeset 697774dd8984 (bug 1525720)
Backed out changeset eadeacbe4483 (bug 1525720)
Backed out changeset 32eeee79d628 (bug 1525720)
Backed out changeset 07678a2fa9e7 (bug 1525720)
Backed out changeset 757b4f595cc4 (bug 1525720)
Backed out changeset b255e0a84e12 (bug 1525720)
Backed out changeset 9a255864f75d (bug 1525720)
Backed out changeset 5f1c1b609ec1 (bug 1525720)
Backed out changeset 00d83f1d02e0 (bug 1525720)
2019-05-23 01:57:16 +03:00
Ryan Hunt 9b1bbaea5b Bug 1525720, part 14 - Move final bits of nsIRemoteTab implementation to BrowserHost. r=nika
This commit moves the actual implementation of nsIRemoteTab from BrowserParent
to BrowserHost, without any functional changes.

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

--HG--
extra : rebase_source : 2e6533dfa69a3278300eb70d5258bcd0a3aba68b
extra : histedit_source : a26ba68b78eb6d16cdffbc630f4410c5dd46a367
2019-05-08 15:47:18 -05:00
Ryan Hunt 93d6ab4ec4 Bug 1525720, part 13 - Stop inheriting nsIRemoteTab interface in BrowserParent. r=nika
This commit removes nsIRemoteTab as a parent class from BrowserParent,
so that BrowserHost is the only concrete implementation of nsIRemoteTab.

Some static_cast's are updated to cast to BrowserHost, and other places
have to be updated to pass a BrowserHost instead of a BrowserParent.

WindowGlobalParent had a getter to return it's managing BrowserParent
as a nsIRemoteTab. I couldn't find a use of this in-tree, so I've just
opt-ed to remove it. If there's a use-case, we can add something back
in.

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

--HG--
extra : rebase_source : 63070e3c2b90c9134f9106028e124935c8dad009
extra : histedit_source : 807f2ff684d86008077be07b0894f39a925fe778
2019-05-08 14:34:47 -05:00
Ryan Hunt ad5807c04e Bug 1525720, part 10 - Link BrowserParent and BrowserHost on creation. r=nika
This commit adds a link from BrowserParent to it's owning BrowserHost
if it is the root BrowserParent.

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

--HG--
extra : rebase_source : 8cb8fa816198fd2bf660f092227e92e69bc63c97
extra : histedit_source : 1597cb06d341ec87c27c67a1b8aa858fe0bfe8bc
2019-05-15 10:34:03 -05:00
Ryan Hunt e084a16216 Bug 1525720, part 2 - Move UITabResolutionChanged method to nsIRemoteTab interface from BrowserParent. r=smaug
This reduces the amount of code that assumes that BrowserParent implements nsIRemoteTab.

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

--HG--
extra : rebase_source : d639864ba86001cf90a8b3d42b6eda97a7f829ac
extra : histedit_source : 6f6f1e0b6d3561e478391ce9e72a8a2dbc280983
2019-04-24 23:05:40 -05:00
Ryan Hunt b3a1c0edb7 Bug 1525720, part 1 - Allow calling BrowserParent::InitRendering multiple times, and remove RenderFrame dependency from nsFrameLoader. r=kats
This cleanup will simplify refactoring nsFrameLoader later.

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

--HG--
extra : rebase_source : 416d91a0119c4df11faf73076fb425bb0471a48e
extra : histedit_source : 62cc6bc346b2b961860b3e070fd34ca69b9cf0e0
2019-04-24 22:36:27 -05:00
Alphan Chen 2dbd18c6c8 Bug 1549973 - Force tabState flush from C++ listener before tab is closed r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D30475

--HG--
extra : moz-landing-system : lando
2019-05-22 09:06:14 +00:00
Noemi Erli cc1f5b44f2 Backed out 4 changesets (bug 1510569) for mass test failures CLOSED TREE
Backed out changeset c5488e2770a6 (bug 1510569)
Backed out changeset df98eef1f640 (bug 1510569)
Backed out changeset db6da7f94a92 (bug 1510569)
Backed out changeset fb696b92c13d (bug 1510569)
2019-05-21 23:41:41 +03:00
Emilio Cobos Álvarez 4cd1208da9 Bug 416771 - Use RefPtr<Element> rather than nsCOMPtr in BrowserParent. r=NeilDeakin
Depends on D31641

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

--HG--
extra : moz-landing-system : lando
2019-05-21 14:14:57 +00:00
Barret Rennie 461c1d28b9 Bug 1510569 - Port onStateChange notifications inside WebProgressChild.jsm to C++ r=baku,kmag
We now also only access the document when the state is
nsIWebProgress::STATE_STOP. The comments in the previous code indicated that
touching the document inside the event handler when the state is not STATE_STOP
would result in the content creating a new about:blank document to retrieve the
values from. However, it then went on to do this in another location, causing a
document to be created whenever we received an onStateChange event. This should
no longer occur.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 19:28:52 +00:00
Barret Rennie 8dc24e1342 Bug 1510569 - Refactor BrowserParent nsIWebProgress handlers r=kmag
The BrowserParent's IPC receive methods for nsIWebProgress events in the
BrowserChild were all doing the same set up to ensure they had the correct
state to process them. This has now been refactored out into a single method.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 19:28:19 +00:00
Cosmin Sabou e565aa827a Backed out 4 changesets (bug 1510569) for causing build bustages on nsIDocShell.idl CLOSED TREE
Backed out changeset 57f49df057be (bug 1510569)
Backed out changeset de97a258fcfd (bug 1510569)
Backed out changeset 4b0ed20ab3bc (bug 1510569)
Backed out changeset 1d8ab383d3e9 (bug 1510569)
2019-05-21 20:30:01 +03:00
Barret Rennie 748556eba1 Bug 1510569 - Port onStateChange notifications inside WebProgressChild.jsm to C++ r=baku,kmag
We now also only access the document when the state is
nsIWebProgress::STATE_STOP. The comments in the previous code indicated that
touching the document inside the event handler when the state is not STATE_STOP
would result in the content creating a new about:blank document to retrieve the
values from. However, it then went on to do this in another location, causing a
document to be created whenever we received an onStateChange event. This should
no longer occur.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 17:09:14 +00:00
Barret Rennie 50f9f3dd7a Bug 1510569 - Refactor BrowserParent nsIWebProgress handlers r=kmag
The BrowserParent's IPC receive methods for nsIWebProgress events in the
BrowserChild were all doing the same set up to ensure they had the correct
state to process them. This has now been refactored out into a single method.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 17:08:42 +00:00
Mihai Alexandru Michis 97df17e745 Backed out 11 changesets (bug 1330467) as requested by xeonchen on IRC. CLOSED TREE
Backed out changeset 0229d5353d50 (bug 1330467)
Backed out changeset 2f2308fe5747 (bug 1330467)
Backed out changeset 2cd09bae2bdf (bug 1330467)
Backed out changeset 2648f5bb1804 (bug 1330467)
Backed out changeset 4686eebd8962 (bug 1330467)
Backed out changeset b43fa07d5756 (bug 1330467)
Backed out changeset 35d96a4ff659 (bug 1330467)
Backed out changeset 6ac44130d2bb (bug 1330467)
Backed out changeset f939c61e051f (bug 1330467)
Backed out changeset 0ae215d91758 (bug 1330467)
Backed out changeset 1d48bdbb4035 (bug 1330467)
2019-05-17 16:19:06 +03:00
Kyle Machulis 9f9436d028 Bug 1540839 - Add ability to preserve browsing contexts between FrameLoaders; r=nika
When changing processes and therefore destroying/rebuilding
frameloaders, add ability to keep the browsing context around and add
it to the new frameloader.

Differential Revision: https://phabricator.services.mozilla.com/D26267
2019-05-14 10:51:04 -07:00
Razvan Maries 1be8bab7d1 Backed out 8 changesets (bug 1540839) for build bustages. CLOSED TREE
Backed out changeset f7e477858ab7 (bug 1540839)
Backed out changeset 55e841a0f005 (bug 1540839)
Backed out changeset b71b58e40426 (bug 1540839)
Backed out changeset 484a54613358 (bug 1540839)
Backed out changeset b34c4d71f202 (bug 1540839)
Backed out changeset 8ff2ff524489 (bug 1540839)
Backed out changeset 27492a30286c (bug 1540839)
Backed out changeset f1c35e8e84f6 (bug 1540839)
2019-05-14 04:23:27 +03:00
Kyle Machulis deebf851e0 Bug 1540839 - Add ability to preserve browsing contexts between FrameLoaders; r=nika
When changing processes and therefore destroying/rebuilding
frameloaders, add ability to keep the browsing context around and add
it to the new frameloader.

Differential Revision: https://phabricator.services.mozilla.com/D26267
2019-05-13 17:58:44 -07:00
Liang-Heng Chen 284baaf7d8 Bug 1330467 - part 8. Make canvas permission respect FPI; r=johannh,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D19929

--HG--
extra : moz-landing-system : lando
2019-05-07 22:19:02 +00:00
Ryan Hunt 7df4ba7bbf Bug 1549753 - Add Visit methods for visiting the tree of BrowserParent and BrowserBridgeParent. r=afarre
Differential Revision: https://phabricator.services.mozilla.com/D30215

--HG--
extra : rebase_source : f885c62dc8a24974d67b2c65e19ab42576e8640e
extra : histedit_source : f884a8ed29c99bd0e71f78d6adaf61a9f19ce21e
2019-05-07 11:08:22 -05:00
Ryan Hunt 0a27a22677 Bug 1548939 - Move method getters to the top of BrowserParent. r=nika
The next easy step is to move the getters below the static methods.

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

--HG--
extra : rebase_source : a609823f9f19a51f73fe61fa910bc513c614378e
extra : source : 2e91e4b9d847b74f1514a14720c618bf1634d91e
extra : histedit_source : bd641bf544aa378544fb401b0b0a6768d63b48f3
2019-04-29 17:14:17 -05:00
Ryan Hunt c6fa6dfc9d Bug 1548939 - Move static methods to top of BrowserParent. r=nika
The methods in BrowserParent are a bit disorganized. There's a lot to
do to fix that, but an easy first step is to move static methods to
the top of the class.

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

--HG--
extra : rebase_source : 2fb0b7ad48030ba4682e6d0ded06b67494a0c330
extra : source : 05002949953c3df7a647e78a8a65975a19e23631
extra : histedit_source : a6b997485d7576962ce23dcfe86b419686c19b78
2019-04-29 16:57:42 -05:00
Ryan Hunt af4211d4b6 Bug 1548939 - Rearrange state on BrowserParent to logical groups. r=nika
This is the followup to the previous patch, and attempts to organize
state to be a bit more logical.

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

--HG--
extra : rebase_source : e85426e0c03857ceb4b89fab3fdb557e66ab9f2f
extra : source : c0221209ace4c85d66cd9b667e0699f50b923f1a
extra : histedit_source : 16d5f4a458dab48ab96741e449d50b8e8b48c5eb
2019-04-29 16:50:29 -05:00
Ryan Hunt 7de79f9080 Bug 1548939 - Move all BrowserParent state into one contiguous block. r=nika
Somehow all of the member variables of BrowserParent have been
spread around the class. This makes it really hard to understand
what state there is. This commit moves all member variables
(preserving order) to the bottom of the class.

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

--HG--
extra : rebase_source : 377f5b55e5393a9ac6f88389f0589eb6fd66848c
extra : source : 033e99403d147fd11eaf7b2037f36e156d2598ff
extra : histedit_source : c20e5d02ca67c3f3eff3c1d77abb0f871a9025d2
2019-04-29 16:33:21 -05:00
Ryan Hunt 6fb9422bfd Bug 1548939 - Update include guard on the header for BrowserParent. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D30152

--HG--
extra : rebase_source : 294d47038a08b08398735b09c4dbe7953a5d8402
extra : source : 1b159b5ce02ec8a66b7dcf36c39a8bcdd0edccfb
extra : histedit_source : 9eb10bdf99662f0fd94cbe062470b66b0a7f6ae8
2019-04-29 16:23:05 -05:00
Henri Sivonen 73365f142b Bug 1544632 - Check for BrowserParent destruction before sending StopIMEStateManagement IPC message. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D30007

--HG--
extra : moz-landing-system : lando
2019-05-06 12:00:03 +00:00
Alphan Chen d12fbd8633 Bug 1474130 - Implement ScrollPosition/Privacy/DocCapability listeners in C++ r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D23057

--HG--
extra : moz-landing-system : lando
2019-05-04 10:42:52 +00:00
Ryan Hunt bb5d014363 Bug 1547812 - Add some documentation to PBrowser and PBrowserBridge. r=nika
Depends on D29251

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

--HG--
extra : moz-landing-system : lando
2019-05-06 14:47:56 +00:00
Bogdan Tara a3eab309d8 Backed out 2 changesets (bug 1510569) for crashtests/1419902.html crashes CLOSED TREE
Backed out changeset fc0ae629221a (bug 1510569)
Backed out changeset 97f6ac273b5d (bug 1510569)
2019-05-03 03:48:15 +03:00
Barret Rennie 93a50953e0 Bug 1510569 - Port onStateChange notifications inside WebProgressChild.jsm to C++ r=baku,kmag
We now also only access the document when the state is
nsIWebProgress::STATE_STOP. The comments in the previous code indicated that
touching the document inside the event handler when the state is not STATE_STOP
would result in the content creating a new about:blank document to retrieve the
values from. However, it then went on to do this in another location, causing a
document to be created whenever we received an onStateChange event. This should
no longer occur.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 23:36:24 +00:00
Bogdan Tara 86cbef62d0 Backed out 2 changesets (bug 1510569) for crashtests/1419902.html failures CLOSED TREE
Backed out changeset 13c5249d66a7 (bug 1510569)
Backed out changeset a6ad4039d785 (bug 1510569)
2019-05-02 21:30:20 +03:00
Barret Rennie b32c02517c Bug 1510569 - Port onStateChange notifications inside WebProgressChild.jsm to C++ r=baku,kmag
We now also only access the document when the state is
nsIWebProgress::STATE_STOP. The comments in the previous code indicated that
touching the document inside the event handler when the state is not STATE_STOP
would result in the content creating a new about:blank document to retrieve the
values from. However, it then went on to do this in another location, causing a
document to be created whenever we received an onStateChange event. This should
no longer occur.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 16:20:34 +00:00
Sebastian Streich 8ac88db494 Bug 1444503 - Remove the IPC::Principal r=ckerschb,nika
***
Removed IPC References in PCContent
***
Removed IPC References on nsContentPermissionHelper
***
 Remove IPC Principal from PBrowser
***
Remove IPCPrincipal from the PaymentRequest
***
Remove IPCPrincipal from the PPresentation
***
Remove IPC Principal from PNecko

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

--HG--
extra : moz-landing-system : lando
2019-04-25 14:18:11 +00:00
Ehsan Akhgari 7b7c739afe Bug 1527287 - Add support for "noreferrer" feature argument to window.open(); r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28396
2019-04-24 20:29:19 -04:00
Ryan Hunt d6509bb237 Bug 1534395 - Rename TabChild to BrowserChild. r=nika
This commit renames TabChild to BrowserChild.

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

--HG--
rename : dom/base/InProcessTabChildMessageManager.cpp => dom/base/InProcessBrowserChildMessageManager.cpp
rename : dom/base/InProcessTabChildMessageManager.h => dom/base/InProcessBrowserChildMessageManager.h
rename : dom/ipc/TabChild.cpp => dom/ipc/BrowserChild.cpp
rename : dom/ipc/TabChild.h => dom/ipc/BrowserChild.h
extra : rebase_source : e7fcfb845a971a2760e73d517e24da18ce2551b5
extra : histedit_source : d1991334ccb107fe56e478865f22fd97b041a317
2019-04-09 17:39:01 -05:00
Ryan Hunt 0eeced87be Bug 1534395 - Rename TabParent to BrowserParent. r=nika
This commit renames TabParent to BrowserParent.

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

--HG--
rename : dom/ipc/TabParent.cpp => dom/ipc/BrowserParent.cpp
rename : dom/ipc/TabParent.h => dom/ipc/BrowserParent.h
extra : rebase_source : d2706b9f42177d8de16068b7b1d088a44b8720a4
extra : histedit_source : a617ddac45c58050ef799116a67d2d983f2a8f6d%2C1d1dabd8761a32d548a6fbf1027be960698f6a5e
2019-04-09 16:38:15 -05:00