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

29529 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 1a7371fd97 Bug 1346893 - Move the Geckoview UA sheet to layout/style. r=snorp
Make it a regular stylesheet.

This allows it to be cached in shared memory if possible, and will allow me to
stop adding the stylesheet based on a pref for bug 1618202.

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

--HG--
rename : mobile/android/themes/geckoview/content.css => layout/style/res/geckoview.css
extra : moz-landing-system : lando
2020-02-26 22:03:08 +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
Cosmin Sabou e1ae464b64 Backed out changeset 8c1c55d16e1a (bug 1346893) for bc failures on browser_all_files_referenced.js.
--HG--
rename : layout/style/res/geckoview.css => mobile/android/themes/geckoview/content.css
extra : histedit_source : e5159e67631172a933b02ac22c838991da589170
2020-02-26 21:25:09 +02:00
Dylan Roeh 20feb8ff78 Bug 1600704 - Hardcode support for intent URIs so that they always get passed to onLoadRequest. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D64395

--HG--
extra : moz-landing-system : lando
2020-02-26 16:36:43 +00:00
Emilio Cobos Álvarez 42b235642d Bug 1346893 - Move the Geckoview UA sheet to layout/style. r=snorp
Make it a regular stylesheet.

This allows it to be cached in shared memory if possible, and will allow me to
stop adding the stylesheet based on a pref for bug 1618202.

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

--HG--
rename : mobile/android/themes/geckoview/content.css => layout/style/res/geckoview.css
extra : moz-landing-system : lando
2020-02-26 15:46:58 +00:00
Emilio Cobos Álvarez 9f4ca6a71f Bug 1470709 - Stop using CSS variables from android UA stylesheets. r=snorp
Just inline them, they're not that many.

Using CSS variables is observable from content, which is not good. It also means
that we need an @import.

For bug 1618202, I plan to move this stylesheet to the global stylesheet cache.

This is so that I can add them based on prefs, but should also have memory
improvements (the stylesheet would be shared in memory across processes, see bug
1474793).

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

--HG--
extra : moz-landing-system : lando
2020-02-26 15:22:34 +00:00
Eitan Isaacson 65134687e8 Bug 1616337 - Move a11y focus to root when navigating prev from first web node. r=Jamie,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D63223

--HG--
extra : moz-landing-system : lando
2020-02-25 22:48:26 +00:00
Eitan Isaacson 8e38a4587c Bug 1616466 - Support expand/collapse android accessibility actions. r=Jamie,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D63290

--HG--
extra : moz-landing-system : lando
2020-02-25 22:37:00 +00:00
Mike Shal b1dbf109ed Bug 1606922 - Move MOZ_AUTOMATION_PACKAGE_TESTS from mozconfigs to taskcluster; r=tomprince,chmanchester
We don't need to package tests for builds that we don't actually run
tests from, but it is tricky to align this correctly by setting
MOZ_AUTOMATION_PACKAGE_TESTS=0 in relevant mozconfigs. Instead we can
set the environment variable in the task definition, and use a full
taskgraph verification check to ensure that the flag is only set on
builds that have tests.

The one tricky area is the win64-aarch64 builds, which have a workaround
by specifying the new skip-verify-test-packaging attribute.

In one case, win64-aarch64-shippable has tests that run against it, but
it copies those tests from a win64-aarch64-shippable-no-eme task, which
itself has no tests. Both of those tasks need to skip the verify check
as a result.

In another case, the win64-aarch64-eme task is an artifact build that
grabs test packages from the win64-aarch64 build. Since the win64-aarch64
build doesn't have tests, it needs to skip the verify check.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 20:13:12 +00:00
Noemi Erli bc6b9e410b Backed out changeset d76f4c4a4fb6 (bug 1604212) for causing lint failure and bustages in WebExecutorTest.kt CLOSED TREE 2020-02-25 20:12:07 +02:00
Andreea Pavel ed684420f3 Backed out changeset bc9bf388d476 (bug 1606922) for failing gecko decision task on a CLOSED TREE 2020-02-25 19:54:53 +02:00
Mike Shal 0bff663e83 Bug 1606922 - Move MOZ_AUTOMATION_PACKAGE_TESTS from mozconfigs to taskcluster; r=tomprince,chmanchester
We don't need to package tests for builds that we don't actually run
tests from, but it is tricky to align this correctly by setting
MOZ_AUTOMATION_PACKAGE_TESTS=0 in relevant mozconfigs. Instead we can
set the environment variable in the task definition, and use a full
taskgraph verification check to ensure that the flag is only set on
builds that have tests.

The one tricky area is the win64-aarch64 builds, which have a workaround
by specifying the new skip-verify-test-packaging attribute.

In one case, win64-aarch64-shippable has tests that run against it, but
it copies those tests from a win64-aarch64-shippable-no-eme task, which
itself has no tests. Both of those tasks need to skip the verify check
as a result.

In another case, the win64-aarch64-eme task is an artifact build that
grabs test packages from the win64-aarch64 build. Since the win64-aarch64
build doesn't have tests, it needs to skip the verify check.

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

--HG--
extra : moz-landing-system : lando
2020-02-24 19:08:23 +00:00
Andrea Marchesini 782454dd06 Bug 1604212 - Enable sameSite=lax by default, r=Ehsan,ahal
Differential Revision: https://phabricator.services.mozilla.com/D63081

--HG--
extra : moz-landing-system : lando
2020-02-25 17:46:19 +00:00
Brendan Dahl 8fee24d297 Bug 1617750 - Lazy load hidden window for GeckoView. r=geckoview-reviewers,snorp
GeckoView doesn't need the hidden window loaded eagerly on startup. This
shaves off around ~100ms timing from XRE_main to DOMContentLoaded of
geckoview.xhtml.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 14:34:54 +00:00
Jan-Ivar Bruaroey 19d42636a8 Bug 1616661 - Show raw device name to users in the gum prompt. r=achronop,snorp,johannh
Differential Revision: https://phabricator.services.mozilla.com/D63552

--HG--
extra : moz-landing-system : lando
2020-02-24 17:09:13 +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 b5b0ad2465 Bug 1617324 - Always return true in non-e10s mode for shoudlLoadURI. r=aklotz
In Bug 1617324 we started receiving calls for in-process windows for
WebBrowserChrome, which means we now have to handle the non-e10s case too. In
non-e10s there's only one process, so shouldLoadURI should always return true.

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

--HG--
extra : moz-landing-system : lando
2020-02-23 19:06:36 +00:00
Agi Sferro 809eeb54a4 Bug 1617279 - Read list of extensions at startup in GVE. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D63720

--HG--
extra : moz-landing-system : lando
2020-02-21 23:55:50 +00:00
Aaron Klotz 31b1a910ac Bug 1616563: Split ChildConnection.getPid() into fallible and invallible variants; r=geckoview-reviewers,snorp
Based on crash report data, somehow we are reaching a state where we complete
a `GeckoResult` with a pid of 0.

This patch makes `ChildConnection.getPid()` infallible; it either returns a
valid pid or it throws an exception.

The fallible variant, `ChildConnection.getPidFallible()`, is useful for logging
or other scenarios where an invalid pid is okay.

Note that this patch likely does not conclusively eliminiate all crashes
surrounding invalid pids during child process creation; I have reason to believe
that once this patch lands we will likely see some crashes due to `getPid()`
exceptions out in the wild, but at least this patch will make those crash dumps
more actionable.

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

--HG--
extra : moz-landing-system : lando
2020-02-21 23:04:00 +00:00
Mike Hommey 18a46ac5bf Bug 1617207 - Enable LTO on Android PGO builds. r=chmanchester
Turns out we have one more copy of the PGO-initializing mozconfig code for
Android, and that one was not enabling LTO.

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

--HG--
extra : moz-landing-system : lando
2020-02-21 22:22:28 +00:00
Aaron Klotz 4301e2d177 Bug 1617245: Move Service definitions to GeckoChildProcessServices class; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D63698

--HG--
extra : moz-landing-system : lando
2020-02-21 21:37:24 +00:00
Aaron Klotz 7c29f2f386 Bug 1617244: Make IXPCOMEventTarget and XPCOMEventTarget implement Executor; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D63696

--HG--
extra : moz-landing-system : lando
2020-02-21 21:39:08 +00:00
Mike Shal c8abdd68c2 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D63438

--HG--
extra : moz-landing-system : lando
2020-02-21 00:05:17 +00:00
Eitan Isaacson 1e2369f4ca Bug 1615562 - Don't move accessible focus if caret is collapsed or not on focusable. r=Jamie
If a keyboard-focused accessible is removed, the caret jumps to its
nearest ancestor. To avoid arbitrary accessibility focus moves, ignore
caret events that have no selection and are not focusable items.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 21:49:20 +00:00
John Lin 827ee06469 Bug 1613871 - cancel background task when releasing DRM object. r=snorp
The provision request is executed in background through AsyncTask and will
post the result once finished. However, when the DRM object is released
before onPostExecute() is called, there will be NPE. Use AsyncTask.cancel()
to avoid that.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:30:15 +00:00
Agi Sferro 45e67578d0 Bug 1614894 - Remove autoplayDefault. r=snorp,esawin,droeh
The pref does not make a lot more sense now that we check autoplay on every
session.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:07:58 +00:00
Agi Sferro f8c4745805 Bug 1616339 - Improve window.open support in GVE. r=snorp
This patch: makes the URL bar consistent with the location displayed and
actually switches to a the new tab when content code calls window.open or
tabs.create.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:33:17 +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
Agi Sferro 519b20f8e1 Bug 1613237 - Open window in main process when opener is present. r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D62818

--HG--
extra : moz-landing-system : lando
2020-02-20 19:07:39 +00:00
Agi Sferro 907a5549e7 Bug 1613237 - Call nsIWebBrowserChrome3 for main process pages. r=kmag,esawin
nsContentTreeOwner uses XULBrowserWindow (which is Desktop-only) to get the
current WebBrowserChrome instance.

This patch adds a lookup for the WebBrowserChrome actor to make sure that the
correct instance is queried on all platforms.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:29:08 +00:00
Agi Sferro b1c5704faa Bug 1614295 - Provide a way for apps to know when an extension is installed. r=snorp,ochameau,esawin
This patch adds a `onExtensionListUpdated` method to `DebuggerDelegate` which
is called whenever devtools install a new extension.

This method provides an opportunity for apps to refresh the list of installed
extensions and sets appropriate delegates so that the new extension is
correctly recognized.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:25:31 +00:00
Csoregi Natalia 6360b24e80 Backed out 2 changesets (bug 1616630) for Android bustage. CLOSED TREE
Backed out changeset 15016546c954 (bug 1616630)
Backed out changeset dcb7dc51633b (bug 1616630)
2020-02-20 21:24:11 +02:00
Mike Shal 39492660f4 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Depends on D63437

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

--HG--
extra : moz-landing-system : lando
2020-02-20 16:21:55 +00:00
John Elliot V d062cab989 Bug 1610402 - static prefs for view_source.{wrap_long_lines,syntax_highlight,tab_size} r=emilio
***
Bug 1610402 - Use static prefs for view_source.{wrap_long_lines,syntax_highlight,tab_size} r=emilio

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

--HG--
extra : moz-landing-system : lando
2020-02-20 15:31:37 +00:00
Tom Prince 4396de38b8 Bug 1527313: [mozharness] Checkout l10n-central next to mozilla-central; r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D62410

--HG--
extra : moz-landing-system : lando
2020-02-19 22:20:11 +00:00
John Lin d618ed7700 Bug 1304268 - permanently record MEDIA_DECODING_PROCESS_CRASH telemetry data. r=bryce
This data was recorded for releases 52-57 when the remote decoding process
mechanism was developed. Enable it again to monitor the data and see if
stagefright still crashes in recent Android versions. If it's no longer the
case, we might deprecate out-of-process decoder and save some IPC overhead.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 22:13:10 +00:00
Mike Hommey f69ac41eca Bug 1530057 - Disable LTO for non-PGO Android builds. r=froydnj
LTO was enabled on Android back when the normal Android builds were the
ones we shipped. But now we have separate builds for what is shipped,
*and* they do PGO+LTO.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 22:03:18 +00:00
Eitan Isaacson 5f6ff669bf Bug 1616146 - Cache accessibility focus boundaries in java. r=Jamie
This allows `performAction` to immediately return false if a boundary is
reached and allow TalkBack to navigate past the web view.

Change viewport cache listener to reorder since it should catch all tree
mutations in the document.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 21:09:06 +00:00
Mike Shal d8e4653d19 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 13:22:46 +00:00
Noemi Erli c534f17571 Backed out changeset fa5ee85e20a5 (bug 1603673) for causing lint failure in GeckoRuntimeSettings.java CLOSED TREE 2020-02-18 08:39:30 +02:00
Marcos Cáceres ccfa51c524 Bug 1603673 - Signal that we support web manifest processing in Fenix r=snorp
When enabled, `link.relList.supports("manifest")` will return `true`.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 03:43:48 +00:00
shindli ba0dcaf78d Backed out changeset 061d47c2c5c7 (bug 1603673) for mozlint failure in /builds/worker/checkouts/gecko/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java CLOSED TREE 2020-02-18 05:39:05 +02:00
Marcos Cáceres b5521fbef4 Bug 1603673 - Signal that we support web manifest processing in Fenix r=snorp
When enabled, `link.relList.supports("manifest")` will return `true`.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 03:11:12 +00:00
Alexandre Poirot 9073e966ec Bug 1614791 - Rename DebuggerServer to DevToolsServer. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D61363

--HG--
rename : devtools/server/debugger-server.js => devtools/server/devtools-server.js
extra : moz-landing-system : lando
2020-02-17 10:28:24 +00:00
Masayuki Nakano 351bd16f96 Bug 1615532 - Make line style in TextRangeStyle an enum class and sync it with GeckoEditable.IME_RANGE_LINE_* r=m_kato
At bug 1614208, the line style value mapping was changed, but
`GeckoEditable.IME_RANGE_LINE_*` are not updated.

This patch makes the style in `TextRangeStyle` an enum class for making it
type safer, and updates `GeckoEditable.IME_RANGE_LINE_*`, and finally, adds
`FYI` comments in `TextRangeStyle` to make developers realize it requires
manual update.

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

--HG--
extra : moz-landing-system : lando
2020-02-17 07:53:46 +00:00
Bogdan Tara 171ffe820f Backed out changeset 5f9d18ac0296 (bug 1612278) for TextInputDelegateTest related failures CLOSED TREE 2020-02-17 05:37:24 +02:00
Makoto Kato 221b84b167 Bug 1612278 - Re-enable TextInputDelegateTest#inputConnection. r=geckoview-reviewers,snorp
`inputConnection` works again even if x86_64 emulator with e10s.

But the following tests still have timing issue and are sometimes failure.
So this is still turned off.

- `inputConnection_bug1133802`
- `inputConnection_setSelection`

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

--HG--
extra : moz-landing-system : lando
2020-02-06 16:46:42 +00:00
Hiroyuki Ikezoe 6504d023af Bug 1611579 - Create a Promise to get a window.resize event before calling setVerticalClipping. r=geckoview-reviewers,snorp
So that the test can receive the expected event triggered by the
setVerticalClipping.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 22:44:18 +00:00
Eugen Sawin 2e3cc0765a Bug 1615372 - [1.0] Remove the useContentProcessHint runtime setting. r=geckoview-reviewers,snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D62785

--HG--
extra : moz-landing-system : lando
2020-02-14 16:54:18 +00:00