Commit Graph
178 Commits
Author SHA1 Message Date
Barret Rennie d7117f2c60 Bug 1562821 - Mirror RemoteWebNavigation state from the <xul:browser> to the <iframe mozbrowser> when in RDM r=ochameau
In the last patch of this series, I forgot to sync `remoteWebNavigationImpl`
state in the progress listener. This patch corrects that.

Differential Revision: https://phabricator.services.mozilla.com/D39395
2019-07-25 20:14:56 +00:00
Barret Rennie 3d99704f60 Bug 1562821 - Mirror state from the <xul:browser> to the <iframe mozbrowser> when in RDM r=ochameau
As part of bug 1510569, the majority of the `nsIWebProgress` event listeners
have moved from the `WebProgressChild`/`RemoteWebProgress` to the
`BrowserChild`/`BrowserParent`. In responsive design mode, the
`RemoteWebProgress` previously would update the state of the `<iframe
mozbrowser>` with document URI and title which would be mirrored back to the
`<xul:browser>` when leaving RDM. However, the event handlers in the
`BrowserParent` call directly into the `<xul:browser>`, skipping the `<iframe
mozbrowser>` entirely. Therefore, when RDM is shut down, old state will be
mirroed to the `<xul:browser>`, leaving it in an inconsistent state. We now
mirror the state from the `<xul:browser>` to the `<iframe mozbrowser>` with an
`nsIWebProgressListener` so that the `<iframe mozbrowser>` will not clobber the
`<xul:browser>`'s state when leaving RDM.

Differential Revision: https://phabricator.services.mozilla.com/D38918
2019-07-24 17:00:16 +00:00
Barret Rennie adf0740fc0 Bug 1510569 - Port Content:LoadURIResult message to IPDL r=mconley
The `WebProgress#sendLoadCallResult` method only existed to send a empty async
message and was only called from the `WebNavigationChild`. Since
`WebNavigationChild` is in the process of being removed, it makes sense to
inline the replaced method into its call site.

Differential Revision: https://phabricator.services.mozilla.com/D34566
2019-06-13 21:00:34 +00:00
Barret Rennie 116492e86b Bug 1510569 - Port onLocationChange notifications inside WebProgressChild.jsm to C++ r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D34563
2019-06-13 21:08:40 +00:00
Narcis Beleuzu e491374825 Backed out 5 changesets (bug 1510569) for bustages on BrowserChild.cpp . CLOSED TREE
Backed out changeset 4f0f5351be8b (bug 1510569)
Backed out changeset 14bbe0916bdd (bug 1510569)
Backed out changeset 19e734aeffa9 (bug 1510569)
Backed out changeset abb51690fd32 (bug 1510569)
Backed out changeset 1bf1907ee0c9 (bug 1510569)
2019-06-13 22:08:23 +03:00
Barret Rennie b80a8add2f Bug 1510569 - Port Content:LoadURIResult message to IPDL r=mconley
The `WebProgress#sendLoadCallResult` method only existed to send a empty async
message and was only called from the `WebNavigationChild`. Since
`WebNavigationChild` is in the process of being removed, it makes sense to
inline the replaced method into its call site.

Differential Revision: https://phabricator.services.mozilla.com/D34566
2019-06-13 17:55:04 +00:00
Barret Rennie e63f01338e Bug 1510569 - Port onLocationChange notifications inside WebProgressChild.jsm to C++ r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D34563
2019-06-13 17:54:23 +00:00
Tom Ritter 8ceb7d4934 Bug 1539595 - Rename Priveleged Content Process to PrivlegedAbout Content Process r=mconley,flod
We do this because we will be introducing more privileged content processes
and we want to be able to distinguish them.

Differential Revision: https://phabricator.services.mozilla.com/D30274
2019-05-29 11:31:31 +00:00
Sebastian Hengst 3a5c93d421 Backed out 4 changesets (bug 1539595) for build bustage in nsAboutRedirector.cpp. CLOSED TREE
Backed out changeset 2b0bb889b087 (bug 1539595)
Backed out changeset 95f0b82ec253 (bug 1539595)
Backed out changeset 6310e6dabceb (bug 1539595)
Backed out changeset ba3e353c6957 (bug 1539595)
2019-05-28 19:49:17 +02:00
Tom Ritter 62be8b57fc Bug 1539595 - Rename Priveleged Content Process to PrivlegedAbout Content Process r=mconley,flod
We do this because we will be introducing more privileged content processes
and we want to be able to distinguish them.

Differential Revision: https://phabricator.services.mozilla.com/D30274
2019-05-28 14:19:11 +00:00
Barret Rennie 422b75a792 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
2019-05-23 18:49:08 +00:00
Bogdan Tara 27d82ae613 Backed out 4 changesets (bug 1510569) for 1419902.html failures CLOSED TREE
Backed out changeset 756519a7cf79 (bug 1510569)
Backed out changeset 39c6818fdb12 (bug 1510569)
Backed out changeset 3d9715a5ecd4 (bug 1510569)
Backed out changeset 418a61f5f87b (bug 1510569)
2019-05-23 01:58:51 +03:00
Micah Tigley 1e019458d6 Bug 1357774 - Part 2: Add the ability to update orientation state of a simulated device in RDM r=gl
This patch gives the RDM UI the ability to update the screen orientation based on the orientation of the simulated device screen. It fixes the following issues:

  - Initializing the orientation state of the selected device when RDM is opened.
  - Updating orientation state when the rotate button in the RDM toolbar is pressed.
  - Updating the orientation state when a new device is selected.

There are three actions creators that are responsible for notifying the ResponsiveUI manager, `changeDevice`, `restoreDeviceState`, and `rotateViewport`. In particular:



  - `restoreDeviceState` is dispatched when the Responsive UI has finished initializing. If a previous RDM session had a device selected, then this action creator will also dispatch the `changeDevice` action to update the RDM UI to reflect the currently selected device.
  - `changeDevice` is dispatched when a device is selected.
  - `rotateViewport` is dispatched when the rotate button is clicked in the RDM toolbar.

When either of these actions is dispatched, we post a "viewport-orientation-change" message to the window that notifies the manager to update the screen orientation accordingly.

Finally, when RDM is closed, we need to ensure the original physical screen orientation is restored. We do this by calling the `setRDMPaneOrientation` on the docShell's document in the content frame script.

Differential Revision: https://phabricator.services.mozilla.com/D30440
2019-05-22 20:07:13 +00:00
Barret Rennie 72279816b7 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
2019-05-21 21:35:04 +00:00
Noemi Erli 42dc28e8b4 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
Barret Rennie 23dc40f66a 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
2019-05-21 19:28:52 +00:00
Cosmin Sabou 9135cb4406 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 016bd6d67e 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
2019-05-21 17:09:14 +00:00
Julien Cristau 4a684d4c82 Bug 1536465 - remove expiring FX_TAB_REMOTE_NAVIGATION_DELAY_MS telemetry probe. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D27328
2019-05-20 11:57:42 +02:00
Brad Werth a806958ce9 Bug 1541175 Part 1: Prevent fullZoom and textZoom from being remapped on RDM docshell swap. r=ochameau
There is no need to transfer these properties because the swap makes
the outer browser act as if it is remote, and then the message manager
tunnel ensures that the outer browser will get and set the zoom values
from the inner browser.

Differential Revision: https://phabricator.services.mozilla.com/D29911
2019-05-07 17:59:36 +00:00
Bogdan Tara 2c040ca027 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 9348f64709 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
2019-05-02 23:36:24 +00:00
Bogdan Tara c203974769 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 8da177841d 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
2019-05-02 16:20:34 +00:00
Ehsan Akhgari 36ed31a827 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 c6e302039f Bug 1534395 - Rename nsITabParent to nsIRemoteTab. r=nika,mconley
nsITabParent is exposed to frontend code and is generally used as a representation of a remote tab. We could just rename the interface to nsIBrowserParent and worry about it later, but I think it's better to rename the interface to nsIRemoteTab so that we can later work on splitting the interface away from the PBrowser protocol.

Note: Some frontend code refers to a TabParentId. This commit renames this to RemoteTabId. We need to figure out the purpose of TabId with fission.

Differential Revision: https://phabricator.services.mozilla.com/D28132
2019-04-09 15:59:37 -05:00
Brad Werth b04f412191 Bug 1541158 Part 1: Passthrough zoom to RDM document. r=pbro
This ensures that any changes to zoom level, when RDM is active,
happen on the content document and not on the RDM interface.

Differential Revision: https://phabricator.services.mozilla.com/D26040
2019-04-04 16:52:12 +00:00
Barret Rennie c4e71a23fe Bug 1510569 - Port onProgressChange notifications inside WebProgressChild.jsm to C++ r=baku
We do not need to handle onProgressChange64 notifications since the TabChild's
web progress events are filtered through an nsBrowserStatusFilter, which
truncates onProgresChange64 event values to 32-bit integers and then calls
onProgressChange.

Differential Revision: https://phabricator.services.mozilla.com/D25649
2019-04-03 17:32:41 +00:00
Barret Rennie 6538de8bb3 Bug 1510569 - Port onStatusChange notifications inside WebProgressChild.jsm to C++ r=baku
Differential Revision: https://phabricator.services.mozilla.com/D25446
2019-04-03 17:31:54 +00:00
Barret Rennie 92f6adfd95 Bug 1510569 - Reimplement RemoteWebProgress as an XPCOM component in C++ r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24811
2019-04-03 17:30:40 +00:00
Brad Werth 395a07bd93 Bug 1501665 Part 12: Update RDM viewport size reporting to make it consistent with zoomed presshells. r=gl
There are two viewports: the layout (or content) viewport, and the visual
viewport. This change ensures that we are both setting and checking the
visual viewport size, which is the size shown in the RDM control bar.
It is still possible to get the layout viewport with getContentSize().

Differential Revision: https://phabricator.services.mozilla.com/D22437
2019-03-18 15:00:57 +00:00
Brad Werth d3ca3a33fb Bug 1501665 Part 2: Set the inRDMPane property on Documents as they enter/leave RDM. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D19237
2019-03-18 14:56:09 +00:00
shindli 281680d4f1 Backed out 13 changesets (bug 1501665) for failing a11y tests in accessible/tests/mochitest/relations/test_tabbrowser.xul CLOSED TREE
Backed out changeset 2fa518cb0dfc (bug 1501665)
Backed out changeset afaf26d7df42 (bug 1501665)
Backed out changeset 5bdf0ad9dc66 (bug 1501665)
Backed out changeset 520dd24a73fc (bug 1501665)
Backed out changeset 3542bf2b89dd (bug 1501665)
Backed out changeset 088dc24eabc7 (bug 1501665)
Backed out changeset 178210eb72ba (bug 1501665)
Backed out changeset 9eebe767ef20 (bug 1501665)
Backed out changeset 6a84e97d0e62 (bug 1501665)
Backed out changeset cf42ea4e8443 (bug 1501665)
Backed out changeset 731d7ee06d86 (bug 1501665)
Backed out changeset 8e0afe4a041a (bug 1501665)
Backed out changeset be1026de486b (bug 1501665)
2019-03-18 18:08:58 +02:00
Brad Werth c019a916f2 Bug 1501665 Part 12: Update RDM viewport size reporting to make it consistent with zoomed presshells. r=gl
There are two viewports: the layout (or content) viewport, and the visual
viewport. This change ensures that we are both setting and checking the
visual viewport size, which is the size shown in the RDM control bar.
It is still possible to get the layout viewport with getContentSize().

Differential Revision: https://phabricator.services.mozilla.com/D22437
2019-03-18 15:00:57 +00:00
Brad Werth 0e530bc41f Bug 1501665 Part 2: Set the inRDMPane property on Documents as they enter/leave RDM. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D19237
2019-03-18 14:56:09 +00:00
Kyle Machulis 84c4937745 Bug 1524709 - Remove aShouldBeRemote from updateBrowserRemoteness; r=nika
Just set the RemoteType in the options object argument, instead of
doubling up the information.

Differential Revision: https://phabricator.services.mozilla.com/D23250
2019-03-14 00:51:30 +00:00
Jonathan Kingston 540181c731 Bug 1521549 - Move (de)serializePrincipal from sessionstore Utils to E10SUtils. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17261
2019-02-19 02:34:09 +00:00
Thomas Nguyen 7405fdc8a3 Bug 1517703 - Part 2 - Use ReferrerInfo in loadURIOptions from js r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17922
2019-02-12 19:35:24 +00:00
Mike Conley ca98bc55b2 Bug 1525188 - Tunnel the remoteType properly from the outer to inner browser in RDM, and remember to clean up. r=ochameau
Depends on D19220

Differential Revision: https://phabricator.services.mozilla.com/D19223
2019-02-11 15:40:37 +00:00
Mike Conley eaa9c4a4ce Bug 1522546 - Make RDM swap code follow the browser binding on how remoteType shortcuts to the message manager. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D18227
2019-01-31 20:33:08 +00:00
Ehsan Akhgari 0730432b48 Bug 1520879 - Port the onContentBlockingEvent notifications inside WebProgressChild.jsm to C++; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D17157
2019-01-25 14:44:09 +00:00
Ehsan Akhgari 5530c0b72d Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D16052
2019-01-21 09:58:50 -05:00
Jonathan Kingston 8143f36e80 Bug 1520862 - Fixing WebNavigation serialization of principals to always be present. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D16884
2019-01-17 18:50:40 +00:00
Brian Grinstead d3484f107d Bug 1441935 - Modifications on top of the generated MozBrowser Custom Element r=mconley
In order to make the history easier to navigate, this changeset includes the
modifications required to make <xul:browser> actually work as a Custom Element,
and switches the app to use it instead of the XBL browser.

Differential Revision: https://phabricator.services.mozilla.com/D14911
2019-01-10 01:45:43 +00:00
Mark Banner ae7d62129f Bug 1503674 - Remove unused PageMetadata. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D14678
2018-12-17 09:33:12 +00:00
Patrick Brosset 8237fb4d11 Bug 1500921 - Tunnel the pagestyle message through RDM; r=gl
Differential Revision: https://phabricator.services.mozilla.com/D14256
2018-12-12 16:34:51 +00:00
Patrick Brosset e6329197a7 Bug 1273997 - Minimap support for alerts in RDM by relaying alerts on outer browser r=ochameau,jryans
Differential Revision: https://phabricator.services.mozilla.com/D13812
2018-12-10 16:37:54 +00:00
Mike Conley 4f7cfd5cb0 Bug 1505063 - Only flip remoteness in RDM if we're switching from the privileged content process. r=ochameau
This means that for the File URI content process, we end up closing RDM if the page
navigates. This appears to be an acceptable trade-off, as this is the behaviour we've
been shipping since bug 1453519 landed (Firefox 61).

Differential Revision: https://phabricator.services.mozilla.com/D13331
2018-12-03 17:00:20 +00:00
Jay Lim 87037e45ca Bug 1472212 - Handle navigation away from privileged content process in RDM. r=jryans
Author: J. Ryan Stinnett <[email protected]>

Now that we are running about:home in the privileged content process, clicking
on a link in Activity Stream while having RDM activated will close the RDM
because a process flip will occur. This causes the following tests to time out
because the RDM has been deactivated:
- devtools/client/responsive.html/test/browser/browser_container_tab.js
- devtools/client/responsive.html/test/browser/browser_preloaded_newtab.js

This patch disables RDM in about:home and will load about:blank instead when
RDM is enabled.

MozReview-Commit-ID: D5EMyfkOM8l
2018-07-20 18:40:44 -04:00
Ciure Andrei 1f3e650127 Backed out 10 changesets (bug 1501044, bug 1472212) for fetch-destination.https.html perma failure CLOSED TREE
Backed out changeset aa35078cabaa (bug 1472212)
Backed out changeset bf02793f802d (bug 1472212)
Backed out changeset 95a7ef6102a6 (bug 1472212)
Backed out changeset 7b7fa6ab2229 (bug 1472212)
Backed out changeset 4fe4ec18f2f3 (bug 1472212)
Backed out changeset 18f824674b76 (bug 1472212)
Backed out changeset 1978a7837502 (bug 1472212)
Backed out changeset 21a6f1a83c73 (bug 1472212)
Backed out changeset 48242d39d532 (bug 1472212)
Backed out changeset 0b5cf2f4305a (bug 1501044)
2018-10-30 23:31:10 +02:00