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

3654 Коммитов

Автор SHA1 Сообщение Дата
Agi Sferro a9c523c4c8 Bug 1661270 - Actually run ContentDelegate on all frames. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D88303
2020-08-26 16:56:32 +00:00
Jamie Nicol 54ed855193 Bug 1647797 - Add GeckoView API to listen for when contentful paint status has been reset. r=geckoview-reviewers,agi,esawin
Android-components listens to the GeckoView callback onFirstContentfulPaint to
track whether a contentful paint has occured, in order to decide when to
thumbnail a tab. Currently this gets fired once per tab.

However, when the GeckoSession is paused, we clear cached resources in the
compositor. This means that when the session is resumed, the compositor does not
have the necessary information to render the page (such as painted content
buffers, or the webrender display list). Because android-components attempts to
capture a new thumbnail immediately upon resuming, it ends up capturing a blank
thumbnail.

To fix this, add a new callback onPaintStatusReset() which is invoked when the
cached resources are cleared. Android-components can listen for this to be
informed when the contentful paint is no longer visible. It can then wait until
the subsequent contentful paint occurs before capturing the thumbnail.

Differential Revision: https://phabricator.services.mozilla.com/D87341
2020-08-19 15:24:14 +00:00
Eugen Sawin 7609049ab6 Bug 1623715 - [8.2] Move media fullscreen event to JS and extend its metadata. r=geckoview-reviewers,snorp,alwu
Differential Revision: https://phabricator.services.mozilla.com/D86350
2020-08-18 17:29:33 +00:00
Eugen Sawin 308a5f3d79 Bug 1623715 - [7.2] Extract media utility functions. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D86349
2020-08-18 17:29:24 +00:00
Eugen Sawin 35d86f7eeb Bug 1623715 - [1.8] Add MediaSession API for (DOM) media session control delegation. r=snorp,alwu,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D84189
2020-08-18 17:28:44 +00:00
Razvan Maries 1cad430a1a Backed out 7 changesets (bug 1623715) for build bustages on nsWindow.cpp. CLOSED TREE
Backed out changeset 9704afdeefb1 (bug 1623715)
Backed out changeset 2e7e298cfe27 (bug 1623715)
Backed out changeset 579df1a653ee (bug 1623715)
Backed out changeset 4361ef84e780 (bug 1623715)
Backed out changeset 898972ec680c (bug 1623715)
Backed out changeset a118a4d72bef (bug 1623715)
Backed out changeset 4ff55894774d (bug 1623715)
2020-08-18 18:38:43 +03:00
Eugen Sawin 3454e7652e Bug 1623715 - [8.2] Move media fullscreen event to JS and extend its metadata. r=geckoview-reviewers,snorp,alwu
Differential Revision: https://phabricator.services.mozilla.com/D86350
2020-08-18 14:37:39 +00:00
Eugen Sawin e5a2325e53 Bug 1623715 - [7.2] Extract media utility functions. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D86349
2020-08-18 14:37:35 +00:00
Eugen Sawin 0c4fd16ae8 Bug 1623715 - [1.8] Add MediaSession API for (DOM) media session control delegation. r=snorp,alwu,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D84189
2020-08-18 14:37:17 +00:00
Dorel Luca 6e3ab7e5fa Backed out 7 changesets (bug 1623715) for Linting failure and android build bustage. CLOSED TREE
Backed out changeset c8ca1d1866e7 (bug 1623715)
Backed out changeset 1b7c3fb0da3b (bug 1623715)
Backed out changeset 4887dea37231 (bug 1623715)
Backed out changeset 47f3eb481909 (bug 1623715)
Backed out changeset 6e7ce9e5f89b (bug 1623715)
Backed out changeset ddff358f800e (bug 1623715)
Backed out changeset cd585490e79b (bug 1623715)
2020-08-18 00:20:24 +03:00
Eugen Sawin cd681f2862 Bug 1623715 - [8.2] Move media fullscreen event to JS and extend its metadata. r=geckoview-reviewers,snorp,alwu
Differential Revision: https://phabricator.services.mozilla.com/D86350
2020-08-17 20:37:55 +00:00
Eugen Sawin 82db8a3949 Bug 1623715 - [7.2] Extract media utility functions. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D86349
2020-08-17 20:37:47 +00:00
Eugen Sawin fc486d897e Bug 1623715 - [1.7] Add MediaSession API for (DOM) media session control delegation. r=snorp,alwu,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D84189
2020-08-17 20:37:14 +00:00
Agi Sferro 041412208a Bug 1648149 - Check that a module does not define onInit and onEnable. r=snorp
After moving to actors it will be common to define both a onInit phase and a
onEnable phase for actors. We don't handle having both phases contain a
main-process script so we should check that.

Differential Revision: https://phabricator.services.mozilla.com/D87119
2020-08-17 19:41:21 +00:00
Agi Sferro 4488c5be10 Bug 1648149 - Ignore debug and warn in eslint. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D86777
2020-08-17 19:41:18 +00:00
Agi Sferro 79c6d13f6b Bug 1648149 - Split GeckoViewContent in enable and init phases. r=snorp,esawin
This commit splits the `GeckoViewContent` actor in two parts:

- `GeckoViewContent` proper, which runs unconditionally and handles code that
  needs to run regardless of whether we have a delegate installed or not.

- `ContentDelegate` which runs only when a delegate is first installed.

This emulates the previous paradigm of installing some listeners only when the
delegate is installed.

I discussed it briefly with :nika and she thinks that splitting modules in two
should not affect performance in a measurable manner.

Note that actors cannot be registered per-window, so we will get messages from
all windows as long as one content delegate is registered.

Differential Revision: https://phabricator.services.mozilla.com/D86776
2020-08-14 14:51:07 +00:00
Agi Sferro e9a73810de Bug 1648149 - Move GeckoViewContent to Actor. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D84040
2020-08-14 14:48:37 +00:00
Mihai Alexandru Michis 2ce16351f8 Backed out 5 changesets (bug 1648149) for causing android wpt failures in closed-attribute.window.html
CLOSED TREE

Backed out changeset 470b0fa401ab (bug 1648149)
Backed out changeset 938bf3fab3ee (bug 1648149)
Backed out changeset a41e4158e960 (bug 1648149)
Backed out changeset 700f8e53ed10 (bug 1648149)
Backed out changeset 3f74337b160e (bug 1648149)
2020-08-14 08:40:29 +03:00
Agi Sferro aaa44e891b Bug 1648149 - Split GeckoViewContent in enable and init phases. r=snorp
This commit splits the `GeckoViewContent` actor in two parts:

- `GeckoViewContent` proper, which runs unconditionally and handles code that
  needs to run regardless of whether we have a delegate installed or not.

- `ContentDelegate` which runs only when a delegate is first installed.

This emulates the previous paradigm of installing some listeners only when the
delegate is installed.

I discussed it briefly with :nika and she thinks that splitting modules in two
should not affect performance in a measurable manner.

Note that actors cannot be registered per-window, so we will get messages from
all windows as long as one content delegate is registered.

Differential Revision: https://phabricator.services.mozilla.com/D86776
2020-08-13 20:24:52 +00:00
Agi Sferro 4c8aa34ba2 Bug 1648149 - Move GeckoViewContent to Actor. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D84040
2020-08-13 20:24:54 +00:00
James Willcox ecaad75230 Bug 1639577 - Only suspend GeckoView tabs that are alone in their BrowsingContextGroup r=nika,geckoview-reviewers,agi
This avoids problems where a foreground tab tries to communicate with a background
tab via `window.opener`, but is unable to because the background tab
is suspended.

Differential Revision: https://phabricator.services.mozilla.com/D83693
2020-07-21 21:04:53 +00:00
Kris Maglione 9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
Dan Glastonbury b4dde7ce2a Bug 1633459 - Marshal customUserAgent setting via nsDocShell. r=geckoview-reviewers,esawin,nika
Reinstate customUserAgent interface for nsIDocShell. This is so it can be used
as a choke-point to catch setting values on docshells which are in the process
of changing process. We don't want to send changes which will be rejected on the
parent side.

This code should be removed once callers setting customUserAgent are refactored
to only occur from parent process.

Differential Revision: https://phabricator.services.mozilla.com/D75006
2020-05-20 00:19:59 +00:00
Agi Sferro 40aaada87c Bug 1635914 - Add workaround for docShellIsActive. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D74130
2020-05-06 20:49:39 +00:00
Agi Sferro 1c11cbd114 Bug 1632922 - use const instead of let - manual fixes. r=snorp
This commit was generated manually fixing all remaining eslint failures.

Differential Revision: https://phabricator.services.mozilla.com/D72413
2020-04-24 21:53:19 +00:00
Agi Sferro dff7aa5d42 Bug 1632922 - use const instead of let - eslint --fix r=snorp
This commit was generated by running `./mach eslint --fix`.

Differential Revision: https://phabricator.services.mozilla.com/D72412
2020-04-24 21:53:17 +00:00
Emilio Cobos Álvarez 7d6d772dee Bug 1622894 - Don't force-focus the input when we're force-showing the virtual keyboard. r=m_kato
When you type in a textarea, and zoom to position the caret, then click, we'll
scroll all the way to the top of the textarea, via:

  IMEStateManager::OnClickInEditor -> SetIMEState -> SetInputContext -> mEditable->NotifyIME(EditableListener::NOTIFY_IME_OPEN_VKB);

Even if the keyboard was already displayed. In this case, we're not moving
focus, and panning to the start causes more issues than it fixes. Prevent
zooming to the start of the input in this case, but still do it if we get the
resize event (and thus toggle the keyboard).

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

--HG--
extra : moz-landing-system : lando
2020-03-19 09:18:37 +00:00
Agi Sferro a4ed37be73 Bug 1622926 - Don't restore scrolldata and form data when switching processes. r=droeh
That data is not the right one anyway, since it comes from the previous page
rather than the current one.

Note: this is also broken on desktop too. It will be fixed once we move to main
process history (hopefully?).

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

--HG--
extra : moz-landing-system : lando
2020-03-19 00:57:10 +00:00
Brendan Dahl a32e64c031 Bug 1621503 - Notify the extension system when GeckoView has started. r=geckoview-reviewers,agi
The extension background page should be loaded when either an event needs
to be sent to it or after the browser has started up. When an extension
is updated the special startup event listeners do not appear to be built
yet and GeckoView was not sending browser started notification, which meant the
background page never being loaded.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 17:34:35 +00:00
Sebastian Hengst 5b855de25b Bug 1609278 - Replace bugzilla product and component assignment 'Firefox for Android :: General' with 'GeckoView :: General'. r=kbrosnan DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D61512

--HG--
extra : moz-landing-system : lando
2020-03-06 17:54:58 +00:00
Alastor Wu 1aded2bb3d Bug 1577890 - part9 : remove unused suspend types. r=baku
We won't need these suspend states anymore which were used for media control and audio focus on Fennec.

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

--HG--
extra : moz-landing-system : lando
2020-03-05 06:17:41 +00:00
Cosmin Sabou c7fa09335c Bug 1618265 - Fix prettier eslint failure on GeckoViewContentChild.js. r=eslint-fix 2020-02-27 01:04:25 +02:00
James Willcox c2d1b32c65 Bug 1618265 - Correctly disconnect from 'pageshow' event r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D64467

--HG--
extra : moz-landing-system : lando
2020-02-26 22:12:48 +00:00
Matt Woodrow f5dd8136c6 Bug 1615967 - Move customUserAgent to BrowsingContext. r=nika,remote-protocol-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D63040

--HG--
extra : moz-landing-system : lando
2020-02-24 02:15:03 +00:00
Agi Sferro 64dab61eb5 Bug 1554302 - Restore history when switching process during navigation. r=snorp
History is kept locally on the content process (or main process for main
process pages), so when going from one process to the other we need to restore
history. This will eventually be superseded by moving all history to the main
process, but we don't know when that's going to happen so we need to add this
workaround here. Desktop has the same workaround in place and this patch is
based on that code.

There are two places where we need to restore history:

- App navigates to page directly using `loadURI` or similar: in this case we
  need to pass down the load details to the content process alongside the
  history information so that we can restore and immediatelly navigate to the
  new page. This also avoids an extra history reloading that ordinarely happens
  when restoring history.

- App calls `goBack`, `goForward`, etc: in this case we don't need to reload a
  page but just restore the history and adjust the `historyIndex`. I'm not
  entirely sure why we need to add `1` to the `historyIndex` but that's what
  Desktop does and it seems to work correctly so I just did it.

This patch changes `updateRemoteTypeForURI` to `updateRemoteAndNavigate` which
more closely matches what that method is doing now, this is similar to what
happens on desktop.

This patch also adds a `window.moduleManager` that can be used in Actors to
access the current `moduleManager`. I expect this to go away when we fully
migrate all modules to actors.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:07:46 +00:00
Eugen Sawin 83e385a410 Bug 1612608 - [1.1] Move useMultiprocess from session to runtime settings. r=snorp,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D62078

--HG--
extra : moz-landing-system : lando
2020-02-12 16:45:06 +00:00
Thomas Wisniewski 6f8de0038c Bug 1612363 - add ability to allow extensions to close their action popups in GV; r=esawin,agi
add ability to allow extensions to close their action popups in GV.

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

--HG--
extra : moz-landing-system : lando
2020-02-10 21:20:58 +00:00
Mark Banner c7825a859e Bug 1425047 - Enable ESLint rule object-shorthand for mobile/android. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60826

--HG--
extra : moz-landing-system : lando
2020-01-24 16:27:19 +00:00
Mark Banner 7e33a4e3e5 Bug 1425047 - Enable ESLint rules no-undef and no-unused-vars for mobile/android/chrome/geckoview. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60824

--HG--
extra : moz-landing-system : lando
2020-01-24 16:27:00 +00:00
Tim Huang 75a5e78b99 Bug 1601660 - Part 1: Make GeckoView to get the content blocking log in the parent process. r=geckoview-reviewers,Ehsan,snorp
This patch is doing two things.
1. Make GeckoView directly gets the ContentBlockingLog in the parent
process when it gets the bundle event 'ContentBlocking:RequestLog'. It
will get the top-level browsingContext and get the log from the
WindowGlobal of this browsingContext.
2. Remove the GeckoViewContentBlockingChild. The child module of
ContentBlocking is no longer needed since it serves nothing after we move
the functionality of getting log to the parent process.

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

--HG--
extra : moz-landing-system : lando
2020-01-24 11:06:39 +00:00
Brendan Dahl d4e28b08cf Bug 1533406 - Extend private browsing lifetime for gecko view too. r=smaug
Private browsing data kept getting cleared each time a new tab was created
since gecko thought there were no more private windows. Also, fixes a typo
in the case of "windowtype".

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

--HG--
extra : moz-landing-system : lando
2020-01-22 22:06:58 +00:00
Bogdan Tara 3722dbcc14 Backed out 2 changesets (bug 1533406) for lints complaining about PrivateModeTest.kt CLOSED TREE
Backed out changeset 1b67df42fdf2 (bug 1533406)
Backed out changeset e60af0dab868 (bug 1533406)
2020-01-22 22:50:50 +02:00
Brendan Dahl 6bd04c1a5d Bug 1533406 - Extend private browsing lifetime for gecko view too. r=smaug
Private browsing data kept getting cleared each time a new tab was created
since gecko thought there were no more private windows. Also, fixes a typo
in the case of "windowtype".

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

--HG--
extra : moz-landing-system : lando
2020-01-21 18:28:37 +00:00
Agi Sferro a6d7032a66 Bug 1610608 - Remove unused ErrorPageEventHandler. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60579

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:29 +00:00
Narcis Beleuzu df67c871b2 Backed out 15 changesets (bug 1593395, bug 1610641, bug 1610608) for build bustages on chrome.ini . CLOSED TREE
Backed out changeset 11f9ed281022 (bug 1610641)
Backed out changeset a3852d7add7c (bug 1610641)
Backed out changeset 03fd98c58009 (bug 1610641)
Backed out changeset df53aae9f611 (bug 1610641)
Backed out changeset 8dce2aa95db7 (bug 1610641)
Backed out changeset 4d78ecbd2217 (bug 1610641)
Backed out changeset 8e5484acd16c (bug 1610641)
Backed out changeset 45be5eda8a5e (bug 1610608)
Backed out changeset 040bdf225776 (bug 1610641)
Backed out changeset 4a84eddd9815 (bug 1610641)
Backed out changeset e469149d1828 (bug 1610641)
Backed out changeset f1f041f2c5c1 (bug 1593395)
Backed out changeset ae84f1c37adb (bug 1610641)
Backed out changeset 4cf939a54ca3 (bug 1610641)
Backed out changeset 22f33e33fb81 (bug 1610641)
2020-01-22 17:13:36 +02:00
Agi Sferro fa62d87def Bug 1610608 - Remove unused ErrorPageEventHandler. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60579

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:40 +00:00
Oana Pop Rus 1d2bce24ac Backed out 2 changesets (bug 1601660) for gv-junit failures in ContentBlockingControllerTest. on a CLOSED TREE
Backed out changeset ec5d3b078a88 (bug 1601660)
Backed out changeset 06001b30f6cd (bug 1601660)
2020-01-22 12:06:22 +02:00
Tim Huang 91e877c5cd Bug 1601660 - Part 1: Make GeckoView to get the content blocking log in the parent process. r=geckoview-reviewers,Ehsan,snorp
This patch is doing two things.
1. Make GeckoView directly gets the ContentBlockingLog in the parent
process when it gets the bundle event 'ContentBlocking:RequestLog'. It
will get the top-level browsingContext and get the log from the
WindowGlobal of this browsingContext.
2. Remove the GeckoViewContentBlockingChild. The child module of
ContentBlocking is no longer needed since it serves nothing after we move
the functionality of getting log to the parent process.

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

--HG--
extra : moz-landing-system : lando
2020-01-06 20:00:16 +00:00
Makoto Kato 452a87b7b0 Bug 1574307 - Part 4. Notify GV of viewport-fit. r=geckoview-reviewers,snorp
`viewport-fit` is hint that browser application can use cutout area. So we should expose it to GeckoView application to set `layoutInDisplayCutoutMode`.

When meta element is found or changed, `ContentDelegate.onMetaviewportFitChange` is called. Even if nothing, it will be called after DOMContentLoaded is fired.

Depends on D57398

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

--HG--
extra : moz-landing-system : lando
2020-01-20 08:42:05 +00:00
Tim Huang d9eda2ce70 Bug 1599043 - Part 10: Make GeckoView to listen OnContentBlockingEvent on the parent process. r=geckoview-reviewers,agi
The GeckoView is listening OnContentBlockingEvent in the content process.
As we move the event into the parent process, we have to change it to
listen the event in the parent process.

This patch also adds a workaround in the test
ContentBlockingControllerTest#getLog(). This workaround adds a 500ms
delays before we check the ContentBlockingLog. This is needed because there
is a delay between the notification of OnContentBlockingEven in the parent
process and the actual recording of the log in the content process. This
workaround will be no longer needed once we move the log entirely to the
parent process (Bug 1599046).

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

--HG--
extra : moz-landing-system : lando
2020-01-13 14:09:12 +00:00
James Willcox c1f7515ff8 Bug 1508730 - Expose full X509Certificate in `SecurityInfo` object r=geckoview-reviewers,droeh,agi
Differential Revision: https://phabricator.services.mozilla.com/D58154

--HG--
extra : moz-landing-system : lando
2020-01-10 15:24:36 +00:00
Tim Nguyen d6d631b95f Bug 1516577 - Update GeckoView about:config visual design. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D59203

--HG--
extra : moz-landing-system : lando
2020-01-08 21:06:36 +00:00
Hiroyuki Ikezoe 93594694ee Bug 1601933 - Rename some ScreenLength APIs to differentiate `visual viewport` from `layout viewport`. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D56323

--HG--
extra : moz-landing-system : lando
2019-12-13 00:09:51 +00:00
Hiroyuki Ikezoe abc58dd4e5 Bug 1601933 - Use visual viewport width or height for GeckoView::ScrollBy and ScrollTo. r=botond,rbarker,agi
Since bug 1514429 window.inner{Width,Height} don't return the visual viewport
size so once after the content scale changed, i.e. the visual viewport size
doesn't match window inner size, GeckoView::ScrollBy and ScrollTo don't work
as expected.  This commit has JUnit tests to generate the situation by calling
nsIDOMWindowUtils.setResolutionAndScaleTo.

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

--HG--
extra : moz-landing-system : lando
2019-12-13 00:09:17 +00:00
Brian Grinstead 02d5d82b74 Bug 1603491 - Rename geckoview.xul to geckoview.xhtml r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D56969

--HG--
rename : mobile/android/chrome/geckoview/geckoview.xul => mobile/android/chrome/geckoview/geckoview.xhtml
extra : moz-landing-system : lando
2019-12-13 00:16:26 +00:00
Oana Pop Rus 53f1ba7c69 Backed out 10 changesets (bug 1599043) for build bustages in nsGlobalWindowOuter.cpp on a CLOSED TREE
Backed out changeset 463b815557e4 (bug 1599043)
Backed out changeset 7c3f0a58cc6c (bug 1599043)
Backed out changeset 1eadd9f5b50e (bug 1599043)
Backed out changeset e4ea0d47136b (bug 1599043)
Backed out changeset 6b97581c33b6 (bug 1599043)
Backed out changeset a68bd2acf5d6 (bug 1599043)
Backed out changeset c8ed9c52508c (bug 1599043)
Backed out changeset aaf83f7806b4 (bug 1599043)
Backed out changeset 0ad30634e416 (bug 1599043)
Backed out changeset 68219c132efc (bug 1599043)
2019-12-12 17:14:54 +02:00
Tim Huang d67a32d3cf Bug 1599043 - Part 10: Make GeckoView to listen OnContentBlockingEvent on the parent process. r=geckoview-reviewers,agi
The GeckoView is listening OnContentBlockingEvent in the content process.
As we move the event into the parent process, we have to change it to
listen the event in the parent process.

This patch also adds a workaround in the test
ContentBlockingControllerTest#getLog(). This workaround adds a 500ms
delays before we check the ContentBlockingLog. This is needed because there
is a delay between the notification of OnContentBlockingEven in the parent
process and the actual recording of the log in the content process. This
workaround will be no longer needed once we move the log entirely to the
parent process (Bug 1599046).

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

--HG--
extra : moz-landing-system : lando
2019-12-12 10:13:45 +00:00
Emma Malysz 75ea156d47 Bug 1601093, Rename the remaining .xul files to .xhtml in toolkit/ r=marionette-reviewers,mossop,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D55857

--HG--
rename : toolkit/components/alerts/resources/content/alert.xul => toolkit/components/alerts/resources/content/alert.xhtml
rename : toolkit/components/apppicker/content/appPicker.xul => toolkit/components/apppicker/content/appPicker.xhtml
rename : toolkit/components/extensions/dummy.xul => toolkit/components/extensions/dummy.xhtml
rename : toolkit/components/passwordmgr/content/passwordManager.xul => toolkit/components/passwordmgr/content/passwordManager.xhtml
rename : toolkit/components/printing/content/printPageSetup.xul => toolkit/components/printing/content/printPageSetup.xhtml
rename : toolkit/components/printing/content/printPreviewProgress.xul => toolkit/components/printing/content/printPreviewProgress.xhtml
rename : toolkit/components/printing/content/printProgress.xul => toolkit/components/printing/content/printProgress.xhtml
rename : toolkit/components/prompts/content/commonDialog.xul => toolkit/components/prompts/content/commonDialog.xhtml
rename : toolkit/components/prompts/content/selectDialog.xul => toolkit/components/prompts/content/selectDialog.xhtml
rename : toolkit/components/viewconfig/content/config.xul => toolkit/components/viewconfig/content/config.xhtml
rename : toolkit/content/editMenuKeys.inc.xul => toolkit/content/editMenuKeys.inc.xhtml
rename : toolkit/content/resetProfile.xul => toolkit/content/resetProfile.xhtml
rename : toolkit/content/resetProfileProgress.xul => toolkit/content/resetProfileProgress.xhtml
rename : toolkit/modules/win.xul => toolkit/modules/win.xhtml
rename : toolkit/profile/content/createProfileWizard.xul => toolkit/profile/content/createProfileWizard.xhtml
rename : toolkit/profile/content/profileDowngrade.xul => toolkit/profile/content/profileDowngrade.xhtml
rename : toolkit/profile/content/profileSelection.xul => toolkit/profile/content/profileSelection.xhtml
extra : moz-landing-system : lando
2019-12-11 17:44:54 +00:00
Gurzau Raul 824bc2bf90 Backed out changeset dd809e835f2a (bug 1601093) for eslint failures at alert.xhtml and commonDialog.xhtml on a CLOSED TREE.
--HG--
rename : toolkit/components/alerts/resources/content/alert.xhtml => toolkit/components/alerts/resources/content/alert.xul
rename : toolkit/components/apppicker/content/appPicker.xhtml => toolkit/components/apppicker/content/appPicker.xul
rename : toolkit/components/extensions/dummy.xhtml => toolkit/components/extensions/dummy.xul
rename : toolkit/components/passwordmgr/content/passwordManager.xhtml => toolkit/components/passwordmgr/content/passwordManager.xul
rename : toolkit/components/printing/content/printPageSetup.xhtml => toolkit/components/printing/content/printPageSetup.xul
rename : toolkit/components/printing/content/printPreviewProgress.xhtml => toolkit/components/printing/content/printPreviewProgress.xul
rename : toolkit/components/printing/content/printProgress.xhtml => toolkit/components/printing/content/printProgress.xul
rename : toolkit/components/prompts/content/commonDialog.xhtml => toolkit/components/prompts/content/commonDialog.xul
rename : toolkit/components/prompts/content/selectDialog.xhtml => toolkit/components/prompts/content/selectDialog.xul
rename : toolkit/components/viewconfig/content/config.xhtml => toolkit/components/viewconfig/content/config.xul
rename : toolkit/content/editMenuKeys.inc.xhtml => toolkit/content/editMenuKeys.inc.xul
rename : toolkit/content/resetProfile.xhtml => toolkit/content/resetProfile.xul
rename : toolkit/content/resetProfileProgress.xhtml => toolkit/content/resetProfileProgress.xul
rename : toolkit/modules/win.xhtml => toolkit/modules/win.xul
rename : toolkit/profile/content/createProfileWizard.xhtml => toolkit/profile/content/createProfileWizard.xul
rename : toolkit/profile/content/profileDowngrade.xhtml => toolkit/profile/content/profileDowngrade.xul
rename : toolkit/profile/content/profileSelection.xhtml => toolkit/profile/content/profileSelection.xul
2019-12-11 19:27:28 +02:00
Emma Malysz 106f09dd53 Bug 1601093, Rename the remaining .xul files to .xhtml in toolkit/ r=marionette-reviewers,mossop,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D55857

--HG--
rename : toolkit/components/alerts/resources/content/alert.xul => toolkit/components/alerts/resources/content/alert.xhtml
rename : toolkit/components/apppicker/content/appPicker.xul => toolkit/components/apppicker/content/appPicker.xhtml
rename : toolkit/components/extensions/dummy.xul => toolkit/components/extensions/dummy.xhtml
rename : toolkit/components/passwordmgr/content/passwordManager.xul => toolkit/components/passwordmgr/content/passwordManager.xhtml
rename : toolkit/components/printing/content/printPageSetup.xul => toolkit/components/printing/content/printPageSetup.xhtml
rename : toolkit/components/printing/content/printPreviewProgress.xul => toolkit/components/printing/content/printPreviewProgress.xhtml
rename : toolkit/components/printing/content/printProgress.xul => toolkit/components/printing/content/printProgress.xhtml
rename : toolkit/components/prompts/content/commonDialog.xul => toolkit/components/prompts/content/commonDialog.xhtml
rename : toolkit/components/prompts/content/selectDialog.xul => toolkit/components/prompts/content/selectDialog.xhtml
rename : toolkit/components/viewconfig/content/config.xul => toolkit/components/viewconfig/content/config.xhtml
rename : toolkit/content/editMenuKeys.inc.xul => toolkit/content/editMenuKeys.inc.xhtml
rename : toolkit/content/resetProfile.xul => toolkit/content/resetProfile.xhtml
rename : toolkit/content/resetProfileProgress.xul => toolkit/content/resetProfileProgress.xhtml
rename : toolkit/modules/win.xul => toolkit/modules/win.xhtml
rename : toolkit/profile/content/createProfileWizard.xul => toolkit/profile/content/createProfileWizard.xhtml
rename : toolkit/profile/content/profileDowngrade.xul => toolkit/profile/content/profileDowngrade.xhtml
rename : toolkit/profile/content/profileSelection.xul => toolkit/profile/content/profileSelection.xhtml
extra : moz-landing-system : lando
2019-12-11 17:02:20 +00:00
Thomas Wisniewski 826897618a Bug 1595086 - also freeze the presshell when setActive(false) is called to stop requestAnimationFrames; r=smaug
also freeze the presshell when setActive(false) is called to stop requestAnimationFrames

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

--HG--
extra : moz-landing-system : lando
2019-12-05 13:29:08 +00:00
Imanol Fernandez 2c071dd369 Bug 1597707 - Do not dispatch SELECT_ALL selection action if the input is empty or all the text is already selected. r=esawin
Do not dispatch SELECT_ALL selection action if the input is empty or all the text is already selected.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 17:24:04 +00:00
Mihai Alexandru Michis c22a7b20e8 Backed out changeset 4fbd18ff4990 (bug 1597707) for causing geckoview failures in SelectionActionDelegateTest.request 2019-11-20 14:19:27 +02:00
Imanol Fernandez 397c73b3bb Bug 1597707 - Do not dispatch SELECT_ALL selection action if the input is empty or all the text is already selected. r=esawin
Do not dispatch SELECT_ALL selection action if the input is empty or all the text is already selected.

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

--HG--
extra : moz-landing-system : lando
2019-11-19 22:31:49 +00:00
Dylan Roeh 3b86e10220 Bug 1585658 - Move GeckoViewContentBlocking.jsm to onInit and fix and reenable tests. r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D53808

--HG--
extra : moz-landing-system : lando
2019-11-19 14:44:32 +00:00
Agi Sferro a373408f01 Bug 1530402 - Add package-protected isPopup setting to hide GeckoSessions from extensions. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D51918

--HG--
extra : moz-landing-system : lando
2019-11-18 16:48:57 +00:00
Noemi Erli 9548dd980a Backed out 13 changesets (bug 1530402, bug 1533156) for causing raptor failures CLOSED TREE
Backed out changeset 6d7b7d22b0c6 (bug 1530402)
Backed out changeset acea32ec5975 (bug 1530402)
Backed out changeset 597e32ad2f5b (bug 1530402)
Backed out changeset 352068fe68bc (bug 1530402)
Backed out changeset e0ae4f16f7ed (bug 1530402)
Backed out changeset 282b033c7daa (bug 1530402)
Backed out changeset 72274a5a821b (bug 1530402)
Backed out changeset 3d3366fe476f (bug 1530402)
Backed out changeset 7400c3fd2b5f (bug 1530402)
Backed out changeset 23d43a425641 (bug 1530402)
Backed out changeset 83b9603f5fa1 (bug 1530402)
Backed out changeset 50c50a80e881 (bug 1533156)
Backed out changeset 5975264fd34b (bug 1530402)

--HG--
rename : toolkit/components/extensions/schemas/browser_action.json => browser/components/extensions/schemas/browser_action.json
rename : toolkit/components/extensions/schemas/page_action.json => browser/components/extensions/schemas/page_action.json
extra : rebase_source : 551e88b6719692756499387e93f797454a336180
2019-11-15 18:57:20 +02:00
Agi Sferro cc0a593046 Bug 1530402 - Add package-protected isPopup setting to hide GeckoSessions from extensions. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D51918

--HG--
extra : moz-landing-system : lando
2019-11-15 16:33:53 +00:00
Eugen Sawin 6ab58df198 Bug 1577005 - [1.6] Add autofill commit support. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D51185

--HG--
extra : moz-landing-system : lando
2019-11-15 15:48:39 +00:00
Andreea Pavel 30f5e9486a Backed out 13 changesets (bug 1530402, bug 1533156) for failing test_ext_tabs_query.html on a CLOSED TREE
Backed out changeset aa9499a196e3 (bug 1530402)
Backed out changeset ce12e494a189 (bug 1530402)
Backed out changeset 1b053a203af9 (bug 1530402)
Backed out changeset f57bc0ee284b (bug 1530402)
Backed out changeset 701de7bcb484 (bug 1530402)
Backed out changeset ab7b21969769 (bug 1530402)
Backed out changeset c7b8cc91f245 (bug 1530402)
Backed out changeset e2be10dbad5e (bug 1530402)
Backed out changeset f52a8fedcded (bug 1530402)
Backed out changeset 4fcca36d5b3e (bug 1530402)
Backed out changeset 82b28001164b (bug 1530402)
Backed out changeset 1dc6a4ebc9e1 (bug 1533156)
Backed out changeset ae5ead19921d (bug 1530402)

--HG--
rename : toolkit/components/extensions/schemas/browser_action.json => browser/components/extensions/schemas/browser_action.json
rename : toolkit/components/extensions/schemas/page_action.json => browser/components/extensions/schemas/page_action.json
2019-11-15 05:48:23 +02:00
Agi Sferro 5958bdff95 Bug 1530402 - Add package-protected isPopup setting to hide GeckoSessions from extensions. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D51918

--HG--
extra : moz-landing-system : lando
2019-11-14 19:08:42 +00:00
Csoregi Natalia 4cf34e2666 Backed out 13 changesets (bug 1530402, bug 1533156) for multiple failures e.g columnrule-linestyles.html and test_composite.html. CLOSED TREE
Backed out changeset 9e55fee783ff (bug 1530402)
Backed out changeset f6af9d6a5482 (bug 1530402)
Backed out changeset bf09025d6f98 (bug 1530402)
Backed out changeset 9717ba255826 (bug 1530402)
Backed out changeset e34768ee01db (bug 1530402)
Backed out changeset b540d7b34ef6 (bug 1530402)
Backed out changeset 126af041394b (bug 1530402)
Backed out changeset cf16e02e62cd (bug 1530402)
Backed out changeset 3638fcff5bed (bug 1530402)
Backed out changeset 9630bed0ca2c (bug 1530402)
Backed out changeset 1aa5898efa5f (bug 1530402)
Backed out changeset 7462bbe4e676 (bug 1533156)
Backed out changeset 536a4cac3ffe (bug 1530402)

--HG--
rename : toolkit/components/extensions/schemas/browser_action.json => browser/components/extensions/schemas/browser_action.json
rename : toolkit/components/extensions/schemas/page_action.json => browser/components/extensions/schemas/page_action.json
2019-11-14 03:46:37 +02:00
Agi Sferro eb04f82023 Bug 1530402 - Add package-protected isPopup setting to hide GeckoSessions from extensions. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D51918

--HG--
extra : moz-landing-system : lando
2019-11-13 20:29:10 +00:00
Eugen Sawin 97c8819903 Bug 1591462 - [1.1] Move autofill mechanics into a dedicated child module. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D50630

--HG--
extra : moz-landing-system : lando
2019-11-11 17:22:18 +00:00
Thomas Wisniewski 0b4983e40e Bug 1578942 - suspendTimeouts on inner window while GeckoSession is inactive; r=snorp,bzbarsky
suspendTimeouts on inner window while GeckoSession is inactive

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

--HG--
extra : moz-landing-system : lando
2019-11-07 18:23:49 +00:00
Thomas Wisniewski dea46a2eed Bug 1589182 - remove mobile/android/extensions/ and /mobile/android/chrome/content (Fennec leftovers); r=snorp,agi
Remove mobile/android/extensions/ and /mobile/android/chrome/content from mozilla-central (Fennec leftovers)

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

--HG--
extra : moz-landing-system : lando
2019-11-04 20:32:10 +00:00
Neil Deakin 7410901165 Bug 1567175, support password manager in out of process iframes, r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D47825

--HG--
extra : moz-landing-system : lando
2019-10-21 18:18:02 +00:00
Neil Deakin 7cbc074da1 Bug 1567175, rename LoginManagerContent to LoginManagerChild, r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D47824

--HG--
rename : toolkit/components/passwordmgr/LoginManagerContent.jsm => toolkit/components/passwordmgr/LoginManagerChild.jsm
extra : moz-landing-system : lando
2019-10-21 18:17:50 +00:00
Emilio Cobos Álvarez a09b9c5991 Bug 1589327 - Remove GeckoViewNavigationChild. r=snorp
While we're at it...

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

--HG--
extra : moz-landing-system : lando
2019-10-18 18:49:53 +00:00
James Willcox d45e43febe Bug 1577003 - Make naming consistent in GeckoView autofill bits r=geckoview-reviewers,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D48066

--HG--
rename : mobile/android/modules/geckoview/GeckoViewAutoFill.jsm => mobile/android/modules/geckoview/GeckoViewAutofill.jsm
extra : moz-landing-system : lando
2019-10-04 17:55:54 +00:00
Dylan Roeh c23b90b0da Bug 1578814 - Kill off GeckoViewContentChild.collectSessionState(), as it's no longer used. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D47774

--HG--
extra : moz-landing-system : lando
2019-10-01 15:36:28 +00:00
Eitan Isaacson 885a031613 Bug 1564549 - Remove AccessFu. r=geckoview-reviewers,yzen,snorp
Differential Revision: https://phabricator.services.mozilla.com/D45604

--HG--
extra : moz-landing-system : lando
2019-09-24 19:28:28 +00:00
Noemi Erli ecdbbb2a1f Backed out 8 changesets (bug 1564549) for causing failures in browser_all_files_referenced.js CLOSED TREE
Backed out changeset a6b83802832c (bug 1564549)
Backed out changeset 7f38c6ddd009 (bug 1564549)
Backed out changeset 15a754fb192e (bug 1564549)
Backed out changeset 34441585469f (bug 1564549)
Backed out changeset aada27f6ad6e (bug 1564549)
Backed out changeset 103dbf465704 (bug 1564549)
Backed out changeset c38e72058869 (bug 1564549)
Backed out changeset aca91e9add16 (bug 1564549)
2019-09-24 02:38:39 +03:00
Eitan Isaacson b7427e24a9 Bug 1564549 - Remove AccessFu. r=geckoview-reviewers,yzen,snorp
Differential Revision: https://phabricator.services.mozilla.com/D45604

--HG--
extra : moz-landing-system : lando
2019-09-23 21:07:21 +00:00
Agi Sferro 731917effd Bug 1570115 - Allow Actors to implement WebBrowserChrome. r=kmag,snorp
Differential Revision: https://phabricator.services.mozilla.com/D44052

--HG--
extra : moz-landing-system : lando
2019-09-20 18:15:18 +00:00
Agi Sferro ebe6d184ab Bug 1570115 - Move LoadURIDelegate to Actor. r=kmag,snorp
Differential Revision: https://phabricator.services.mozilla.com/D44051

--HG--
extra : moz-landing-system : lando
2019-09-20 18:15:25 +00:00
Randall E. Barker 421fb7c1ea Bug 1578947 - Add onFirstContentfulPaint() to GeckoView#ContentDelegate r=geckoview-reviewers,smaug,agi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D46230

--HG--
extra : moz-landing-system : lando
2019-09-18 22:45:30 +00:00
arthur.iakab 798ce0d7f2 Backed out changeset 16f534a22bc6 (bug 1578947) for causing lint failure on ServoCSSPropList.py CLOSED TREE 2019-09-19 00:56:49 +03:00
Randall E. Barker 06b876b520 Bug 1578947 - Add onFirstContentfulPaint() to GeckoView#ContentDelegate r=geckoview-reviewers,smaug,agi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D46230

--HG--
extra : moz-landing-system : lando
2019-09-18 21:37:44 +00:00
Neil Deakin 9a9e65a7e5 Bug 1553384, find should iterate over each frame within a document in the parent process to allow out-of-process frames to be searched through, r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D41224

--HG--
extra : moz-landing-system : lando
2019-09-17 23:28:41 +00:00
Valentin Gosu 80d86cafdc Bug 1513574 - Remove UAOverride use from mobile/.../browser.js r=snorp
This patch removes the use of UserAgentOverrides from browser.js
The UA change when in desktop mode now uses nsIDocShell.customUserAgent, while the feature landed in bug 838332 that is only performed for t.co URLs is removed, as it landed 4 years ago and was limited to Nightly.

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

--HG--
extra : moz-landing-system : lando
2019-09-16 15:21:06 +00:00
Dylan Roeh d53f00ee8b Bug 1580201 - Expose ContentBlockingLog to GV. r=geckoview-reviewers,snorp,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D45350

--HG--
extra : moz-landing-system : lando
2019-09-16 13:53:24 +00:00
Cosmin Sabou b1cfe7b829 Backed out 4 changesets (bug 1513574) for causing several browser chrome failures. CLOSED TREE
Backed out changeset 7d950fc452fb (bug 1513574)
Backed out changeset 11f015a3e739 (bug 1513574)
Backed out changeset be6959a563f6 (bug 1513574)
Backed out changeset ce51efd054b8 (bug 1513574)

--HG--
extra : histedit_source : a7bc0055925ac352826572f96730f3d90815bda0
2019-09-16 12:40:40 +03:00
Valentin Gosu 19ba4c2baa Bug 1513574 - Remove UAOverride use from mobile/.../browser.js r=snorp
This patch removes the use of UserAgentOverrides from browser.js
The UA change when in desktop mode now uses nsIDocShell.customUserAgent, while the feature landed in bug 838332 that is only performed for t.co URLs is removed, as it landed 4 years ago and was limited to Nightly.

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:37:54 +00:00
Andreea Pavel c0862209da Backed out changeset 7fa60ca9bdb5 (bug 1580201) for ESlint failure on a CLOSED TREE 2019-09-16 05:24:47 +03:00
Dylan Roeh 708b155955 Bug 1580201 - Expose ContentBlockingLog to GV. r=geckoview-reviewers,snorp,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D45350

--HG--
extra : moz-landing-system : lando
2019-09-16 01:46:52 +00:00
Cosmin Sabou 1aeb602d5e Backed out 4 changesets (bug 1513574) for Android build bustage and browser chrome failures. CLOSED TREE
Backed out changeset f155c449e516 (bug 1513574)
Backed out changeset 1f2bbbe0f781 (bug 1513574)
Backed out changeset 5f8b5f72a4ea (bug 1513574)
Backed out changeset 0e4cababccc7 (bug 1513574)
2019-09-13 21:38:18 +03:00
Valentin Gosu eb1e7e00fc Bug 1513574 - Remove UAOverride use from mobile/.../browser.js r=snorp
This patch removes the use of UserAgentOverrides from browser.js
The UA change when in desktop mode now uses nsIDocShell.customUserAgent, while the feature landed in bug 838332 that is only performed for t.co URLs is removed, as it landed 4 years ago and was limited to Nightly.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 17:19:13 +00:00
Paul Zuehlcke 00119452fc Bug 1574480 - Updated browser.js and OfflineAppsChild.jsm to use PermissionManager principal methods. r=johannh,smaug
Differential Revision: https://phabricator.services.mozilla.com/D42620

--HG--
extra : moz-landing-system : lando
2019-09-10 10:57:07 +00:00
Coroiu Cristina 9683a17a37 Backed out changeset d2867a062f45 (bug 1574480) for browser-chrome failures at browser/base/content/test/general/browser_offlineQuotaNotification.js on a CLOSED TREE 2019-09-05 18:38:42 +03:00