Commit Graph

171 Commits

Author SHA1 Message Date
Jonathan Watt
9ff8f044a3 Bug 1558071. Rename nsIWebBrowserPrint.printPreviewNavigate to printPreviewScrollToPage. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D34297

--HG--
extra : rebase_source : 58343bee2ce7e2761fcc93b8e842051a14cf3684
extra : amend_source : ff72ab52d1274f0bcfad59f30c43364af05a0310
2019-06-03 12:48:21 +01:00
Nicklas Boman
f293246462 Bug 1519365 - Update object property names that get passed to loadURIOptions to match the names in loadURIOptions r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D31729

--HG--
extra : moz-landing-system : lando
2019-06-08 11:04:27 +00:00
Mike Conley
d622bd6c52 Bug 1505909 - Make basic context menu actions Fission-compatible. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32876

--HG--
extra : moz-landing-system : lando
2019-06-08 01:09:46 +00:00
Noemi Erli
ea35f4b13b Backed out 6 changesets (bug 1505909) for failures in browser_ext_webNavigation_onCreatedNavigationTarget_contextmenu.js CLOSED TREE
Backed out changeset 57336967a6c7 (bug 1505909)
Backed out changeset 8adcacadd689 (bug 1505909)
Backed out changeset bcca6bb913ef (bug 1505909)
Backed out changeset afc11a5ebb6d (bug 1505909)
Backed out changeset 40f0a56ed3af (bug 1505909)
Backed out changeset 3e31f9726798 (bug 1505909)
2019-06-07 19:19:14 +03:00
Mike Conley
6d0f158a7d Bug 1505909 - Make basic context menu actions Fission-compatible. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32876

--HG--
extra : moz-landing-system : lando
2019-06-07 14:28:59 +00:00
Bogdan Tara
4da63aeb53 Backed out 6 changesets (bug 1505909) for bc failures complaining about WebNavigationChild and browser_e10s_about_page_triggeringprincipal.js CLOSED TREE
Backed out changeset 56449fd37aee (bug 1505909)
Backed out changeset 3ff09b79821c (bug 1505909)
Backed out changeset a1a2a9efe22f (bug 1505909)
Backed out changeset 8aeb77291207 (bug 1505909)
Backed out changeset 4aa17e28ee54 (bug 1505909)
Backed out changeset dbe6803d979e (bug 1505909)
2019-06-07 06:15:16 +03:00
Mike Conley
261632c77d Bug 1505909 - Make basic context menu actions Fission-compatible. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D32876

--HG--
extra : moz-landing-system : lando
2019-06-06 20:32:50 +00:00
Masayuki Nakano
af9134a0d3 Bug 1545410 - part 2: Add telemetry probe to decide when we can remove the hack for Office Online Server data-review=liuche, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D32288

--HG--
extra : moz-landing-system : lando
2019-06-03 14:05:18 +00:00
Ehsan Akhgari
a9e9f5ccdb Bug 1415270 - Part 1: Move nsHTMLDocument editing APIs to Document; r=farre,masayuki
Differential Revision: https://phabricator.services.mozilla.com/D32911

--HG--
extra : moz-landing-system : lando
2019-05-31 01:37:26 +00:00
Mike Conley
82bd51e393 Bug 1533949 - Make BrowserChild functions Fission-compatible, and move to BrowserElementChild. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D30725

--HG--
rename : toolkit/actors/BrowserChild.jsm => toolkit/actors/BrowserElementChild.jsm
extra : moz-landing-system : lando
2019-05-30 19:01:29 +00:00
Masayuki Nakano
e85fd75144 Bug 1545410 - part 1: Forcibly disable new keyCode/charCode value of keypress events if the document is Office Online Server r=smaug
Similar to bug 1514940, we need to use "split model" keypres events on
Office Online Server since they can be installed into user own servers.

Microsoft said it's safe to check whether there is an element whose id is
"WACViewPanel_EditingElement":
https://bugzilla.mozilla.org/show_bug.cgi?id=1545410#c17

Additionally, they'll add new class to the element after fixing the bug in
their side:
https://bugzilla.mozilla.org/show_bug.cgi?id=1545410#c17
https://bugzilla.mozilla.org/show_bug.cgi?id=1545410#c20

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

--HG--
extra : moz-landing-system : lando
2019-05-23 22:00:58 +00:00
Nika Layzell
899ad56a3d Bug 1550613 - Part 2: Add test for early-lifecycle in-process messages, r=jdai
Differential Revision: https://phabricator.services.mozilla.com/D30665

--HG--
extra : moz-landing-system : lando
2019-05-24 20:16:18 +00:00
Barret Rennie
0345083532 Bug 1510569 - Keep track of whether we are navigating to a new URI in nsDocShell r=mconley,kmag,qdot
Previously the `WebNavigationChild` would keep track of when triggering its
`nsIWebNavigation`, `goForward`, `goBack`, `gotoIndex`, and `loadURI` methods.
It's `nsIWebNavigation` instance is always an `nsIDocShell` and as part of
porting `OnStateChange` and `OnLocationChange` events from
`WebProgressChild`/`RemoteWebProgress` to `BrowserChild`/`BrowserParent`, this
informations needs to be available from the `BrowserChild`. As it stands, it is
currently an expando property on the `WebProgressChild`.

Instead of introducing yet another XPCOM interface for the WebProgressChild, we
now store this information directly on the `nsDocShell`. Furthermore, instead
of having the `WebNavigationChild` manage this part of the `nsDocShell`'s
state, we can have the `nsDocShell` manage this state itself so it is always
consistent.

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

--HG--
extra : moz-landing-system : lando
2019-05-23 18:48:48 +00:00
Mike Conley
68d6458052 Bug 1547795 - Hide Picture-in-Picture toggle on videos where its probably more annoying than not. r=JSON_voorhees
This makes our video controls bindings check on loadedmetadata events whether or not to display
the toggle.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 01:41:08 +00:00
Andreea Pavel
b6b841afb8 Backed out changeset 9b60f95e81da (bug 1547795) for breaking a11y at test_media.html on a CLOSED TREE 2019-05-23 23:47:50 +03:00
Mike Conley
9eb1aeadb9 Bug 1547795 - Hide Picture-in-Picture toggle on videos where its probably more annoying than not. r=JSON_voorhees
This makes our video controls bindings check on loadedmetadata events whether or not to display
the toggle.

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

--HG--
extra : moz-landing-system : lando
2019-05-23 18:49:10 +00:00
Bogdan Tara
a0b69fc936 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
Barret Rennie
f795631269 Bug 1510569 - Keep track of whether we are navigating to a new URI in nsDocShell r=mconley,kmag,qdot
Previously the `WebNavigationChild` would keep track of when triggering its
`nsIWebNavigation`, `goForward`, `goBack`, `gotoIndex`, and `loadURI` methods.
It's `nsIWebNavigation` instance is always an `nsIDocShell` and as part of
porting `OnStateChange` and `OnLocationChange` events from
`WebProgressChild`/`RemoteWebProgress` to `BrowserChild`/`BrowserParent`, this
informations needs to be available from the `BrowserChild`. As it stands, it is
currently an expando property on the `WebProgressChild`.

Instead of introducing yet another XPCOM interface for the WebProgressChild, we
now store this information directly on the `nsDocShell`. Furthermore, instead
of having the `WebNavigationChild` manage this part of the `nsDocShell`'s
state, we can have the `nsDocShell` manage this state itself so it is always
consistent.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 21:34:54 +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
Barret Rennie
68cdb08594 Bug 1510569 - Keep track of whether we are navigating to a new URI in nsDocShell r=mconley,kmag,qdot
Previously the `WebNavigationChild` would keep track of when triggering its
`nsIWebNavigation`, `goForward`, `goBack`, `gotoIndex`, and `loadURI` methods.
It's `nsIWebNavigation` instance is always an `nsIDocShell` and as part of
porting `OnStateChange` and `OnLocationChange` events from
`WebProgressChild`/`RemoteWebProgress` to `BrowserChild`/`BrowserParent`, this
informations needs to be available from the `BrowserChild`. As it stands, it is
currently an expando property on the `WebProgressChild`.

Instead of introducing yet another XPCOM interface for the WebProgressChild, we
now store this information directly on the `nsDocShell`. Furthermore, instead
of having the `WebNavigationChild` manage this part of the `nsDocShell`'s
state, we can have the `nsDocShell` manage this state itself so it is always
consistent.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 19:28:39 +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
3ee6a359f7 Bug 1510569 - Keep track of whether we are navigating to a new URI in nsDocShell r=mconley,kmag,qdot
Previously the `WebNavigationChild` would keep track of when triggering its
`nsIWebNavigation`, `goForward`, `goBack`, `gotoIndex`, and `loadURI` methods.
It's `nsIWebNavigation` instance is always an `nsIDocShell` and as part of
porting `OnStateChange` and `OnLocationChange` events from
`WebProgressChild`/`RemoteWebProgress` to `BrowserChild`/`BrowserParent`, this
informations needs to be available from the `BrowserChild`. As it stands, it is
currently an expando property on the `WebProgressChild`.

Instead of introducing yet another XPCOM interface for the WebProgressChild, we
now store this information directly on the `nsDocShell`. Furthermore, instead
of having the `WebNavigationChild` manage this part of the `nsDocShell`'s
state, we can have the `nsDocShell` manage this state itself so it is always
consistent.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 17:08:57 +00:00
Julien Cristau
1c6fe6b8d4 Bug 1536465 - remove expiring FX_TAB_REMOTE_NAVIGATION_DELAY_MS telemetry probe. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D27328

--HG--
extra : rebase_source : 2f8c9ad952dfe9f5772709723a4fdfe0411083ee
2019-05-20 11:57:42 +02:00
Jonathan Watt
f3060a6671 Bug 1552449. Make the nsIDocShell interface to print preview less susceptible to inadvertent misuse. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D31598

--HG--
extra : rebase_source : 843908736fcaaab29bd16033d1c077850423521a
2019-05-07 14:12:44 +01:00
John Dai
0d9e080d74 Bug 1538979 - Part 3: Add testcase to test JSWindowActor's lifecycle; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D30197

--HG--
extra : moz-landing-system : lando
2019-05-10 15:01:42 +00:00
Csoregi Natalia
ca5858897f Backed out 3 changesets (bug 1538979) for bustage on JSWindowActor.cpp. CLOSED TREE
Backed out changeset a098226e4211 (bug 1538979)
Backed out changeset 8e065761738c (bug 1538979)
Backed out changeset 9df2b856b655 (bug 1538979)
2019-05-10 12:44:22 +03:00
John Dai
d293ec56c7 Bug 1538979 - Part 3: Add testcase to test JSWindowActor's lifecycle; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D30197

--HG--
extra : moz-landing-system : lando
2019-05-10 09:19:37 +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
c28096b98d Bug 1510569 - Keep track of whether we are navigating to a new URI in nsDocShell r=mconley,kmag,qdot
Previously the `WebNavigationChild` would keep track of when triggering its
`nsIWebNavigation`, `goForward`, `goBack`, `gotoIndex`, and `loadURI` methods.
It's `nsIWebNavigation` instance is always an `nsIDocShell` and as part of
porting `OnStateChange` and `OnLocationChange` events from
`WebProgressChild`/`RemoteWebProgress` to `BrowserChild`/`BrowserParent`, this
informations needs to be available from the `BrowserChild`. As it stands, it is
currently an expando property on the `WebProgressChild`.

Instead of introducing yet another XPCOM interface for the WebProgressChild, we
now store this information directly on the `nsDocShell`. Furthermore, instead
of having the `WebNavigationChild` manage this part of the `nsDocShell`'s
state, we can have the `nsDocShell` manage this state itself so it is always
consistent.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 23:35:02 +00:00
Mike Conley
b6719b756f Bug 1545296 - Suppress mouse button events firing in content when clicking on the Picture-in-Picture toggle. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D29422

--HG--
extra : moz-landing-system : lando
2019-05-02 17:51:30 +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
5474c1f3df Bug 1510569 - Keep track of whether we are navigating to a new URI in nsDocShell r=mconley,kmag,qdot
Previously the `WebNavigationChild` would keep track of when triggering its
`nsIWebNavigation`, `goForward`, `goBack`, `gotoIndex`, and `loadURI` methods.
It's `nsIWebNavigation` instance is always an `nsIDocShell` and as part of
porting `OnStateChange` and `OnLocationChange` events from
`WebProgressChild`/`RemoteWebProgress` to `BrowserChild`/`BrowserParent`, this
informations needs to be available from the `BrowserChild`. As it stands, it is
currently an expando property on the `WebProgressChild`.

Instead of introducing yet another XPCOM interface for the WebProgressChild, we
now store this information directly on the `nsDocShell`. Furthermore, instead
of having the `WebNavigationChild` manage this part of the `nsDocShell`'s
state, we can have the `nsDocShell` manage this state itself so it is always
consistent.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 17:00:51 +00:00
Mike Conley
b851e61ae7 Bug 1548096 - Make PictureInPictureChild process trusted events only. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D29403

--HG--
extra : moz-landing-system : lando
2019-05-01 13:48:02 +00:00
Jim Porter
a480304779 Bug 1493225, part 3 - Cancel content JS when navigating through history to prevent hangs r=smaug
This patch adds an ID to ensure that we avoid canceling content JS if the next
page already started loading by the time we're ready to try canceling the JS.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 23:31:46 +00:00
Mike Conley
27357bc0b7 Bug 1540835 - Add some automated tests for the Picture-in-Picture toggle. r=Felipe
Depends on D27001

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

--HG--
extra : moz-landing-system : lando
2019-04-25 03:35:29 +00:00
Mike Conley
f2dd484a37 Bug 1540835 - Make Picture-in-Picture window closing more resilient to races. r=Felipe
We needed to handle the case where closePictureInPicture was being called on a window
that had already been closed but not yet GC'd.

Depends on D26807

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

--HG--
extra : moz-landing-system : lando
2019-04-25 03:35:09 +00:00
Nika Layzell
1f9c0e088f Bug 1544936 - Part 2: Add a test for the new sendQuery method, r=jdai
Differential Revision: https://phabricator.services.mozilla.com/D27810

--HG--
extra : moz-landing-system : lando
2019-04-17 18:18:28 +00:00
Coroiu Cristina
33d59a9c32 Backed out 4 changesets (bug 1493225) for browser-chrome failures with application terminated with exit code 2147483651 on a CLOSED TREE
Backed out changeset 62ee0aed9e59 (bug 1493225)
Backed out changeset 3537b8f8d38a (bug 1493225)
Backed out changeset 1de539e8f568 (bug 1493225)
Backed out changeset e9c116dba541 (bug 1493225)
2019-04-19 23:55:50 +03:00
Jim Porter
7f3f2e49dc Bug 1493225, part 3 - Cancel content JS when navigating through history to prevent hangs r=smaug
This patch adds an ID to ensure that we avoid canceling content JS if the next
page already started loading by the time we're ready to try canceling the JS.

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

--HG--
extra : moz-landing-system : lando
2019-04-18 18:39:45 +00:00
Mike Conley
6f2e110ae1 Bug 1544969 - Show the Picture-in-Picture flyout when hovering the toggle. r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D27835

--HG--
extra : moz-landing-system : lando
2019-04-18 17:29:39 +00:00
Nika Layzell
6186f66b37 Bug 1542779 - Use callback interfaces for JSWindowActor callbacks, r=jdai
This should not have any major behaviour changes, with the following exceptions:

 1. The method for receiving messages from IPC is called `receiveMessage` rather
    than `recvAsyncMessage`. This is more consistent with existing code, so
    should be OK.
 2. Exceptions will be correctly reported when thrown within a callback.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 15:49:02 +00:00
Mike Conley
50caaa08a3 Bug 1543128 - Have PictureInPictureChild detect clicks on Picture-in-Picture toggle if visible. r=jaws
Depends on D26806

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:09:46 +00:00
Mike Conley
416db4aeac Bug 1543128 - Have PictureInPictureToggleChild set hover states on the no-controls <video> widget manually. r=jaws
Depends on D26805

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:09:26 +00:00
Mike Conley
559f6fe0f2 Bug 1543128 - Get rid of most of the AnonymousContent toggle implementation, but leave some things stubbed out for a later patch. r=jaws,zbraniecki
Depends on D26804

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:09:12 +00:00
Mike Conley
189f9c4505 Bug 1542756 - Bug 1543128 - Add option to only return visible nodes from nsIDOMWindowUtils.nodesFromRect. r=emilio
Depends on D26778

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:08:12 +00:00
Mike Conley
c0298fe7f6 Bug 1543122 - Add the simple Picture-in-Picture toggle to the <video controls/> binding, still preffed off by default. r=jaws
This also stops the PictureInPictureToggleChild from tracking videos with controls for now.

Depends on D26777

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:07:53 +00:00
Mike Conley
827f8a0905 Bug 1543122 - Add a preference for controlling whether or not we display a toggle for Picture-in-Picture on <video> elements. r=jaws
Depends on D26775

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

--HG--
extra : moz-landing-system : lando
2019-04-15 01:07:13 +00:00
Mike Conley
25829adc57 Bug 1543122 - Allow passing a static list of preference values to UAWidgets upon construction. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D26775

--HG--
extra : moz-landing-system : lando
2019-04-15 01:06:54 +00:00
Csoregi Natalia
9e8043e236 Backed out 10 changesets (bug 1542756, bug 1543128, bug 1543122) for multiple media failures /test_setSinkId.html. CLOSED TREE
Backed out changeset ce3a15e1b737 (bug 1543128)
Backed out changeset cea8c1af70ad (bug 1543128)
Backed out changeset aeb23f8f45fb (bug 1543128)
Backed out changeset a2e73d143aba (bug 1543128)
Backed out changeset 1692fc6491a0 (bug 1543128)
Backed out changeset 9fbce4274cfd (bug 1542756)
Backed out changeset 20092bcebe6a (bug 1543122)
Backed out changeset 1645d577016c (bug 1543122)
Backed out changeset 3fce0b7586c1 (bug 1543122)
Backed out changeset aab68db4131b (bug 1543122)
2019-04-13 06:22:47 +03:00
Mike Conley
33058a6bbd Bug 1543128 - Have PictureInPictureChild detect clicks on Picture-in-Picture toggle if visible. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D26807

--HG--
extra : moz-landing-system : lando
2019-04-13 01:24:23 +00:00