Commit Graph

30412 Commits

Author SHA1 Message Date
Ricky Stewart
fe80718d67 Bug 1672023 - Remove excluded files from black.yml r=sylvestre,perftest-reviewers,geckoview-reviewers,agi
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052
2020-10-23 20:40:44 +00:00
Ricky Stewart
c0cea3b0fa Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Sean Feng
bf81634ec8 Bug 1518999 - Trick contentful detection in some geckoview tests r=snorp,geckoview-reviewers,agi
Some geckoview tests require gradient usage. Since background
images are async, these tests would wait for a contentful paint
to make sure the images are decoded before running the assertions.
This causes an issue because gradient-only backgrounds aren't
contentful anymore according to the latest spec.

We fix the tests by adding a transparent gif to the background
image list to trick the contentful detection.

Differential Revision: https://phabricator.services.mozilla.com/D88230
2020-10-23 19:46:30 +00:00
alwu
218ed21126 Bug 1670841 - part1 : revert the change from D89390. r=geckoview-reviewers,esawin
D89390 introduced a new mechanism which avoids tab with playing audio from being suspended when they are in background. However, it causes some unsatisfying regression such as bug 1670066 and bug 1670069.

In addition, according to what D89390 did, we change tab's docshell active state, which would also affect visibility event [1], and doing that would make tab always visible that would probably cause some bad effect. IIRC, some API like canvas would slow down its performance when it's in background in order to reduce the power consumption.

Therfore, reverting those change first and would use another way to fix the problem.

Differential Revision: https://phabricator.services.mozilla.com/D93444
2020-10-15 16:29:25 +00:00
Dorel Luca
1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Dorel Luca
26941cf2f5 Backed out changeset 94ec15429e21 (bug 1672023) for Backout conflicts with Bug 1654103. CLOSED TREE 2020-10-22 03:43:01 +03:00
Ricky Stewart
8b352f1843 Bug 1672023 - Remove excluded files from black.yml r=sylvestre,perftest-reviewers,geckoview-reviewers,agi
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052
2020-10-21 21:29:30 +00:00
Ricky Stewart
50762dacab Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Andreas Pehrson
c11959ec0e Bug 1597451 - Remove IterateWindowListeners altogether. r=jib,geckoview-reviewers,agi
GeckoView is seemingly the last user depending on MediaManager iterating over
a all iframes of a window when queried for its capture state.

It is fine however, since GeckoViewMedia already iterates over all windows in
MediaManagerService.activeMediaCaptureWindows, which includes all subframes that
are actively captured.

This patch removes IterateWindowListeners altogether, and the last callsite is
simplified.

Differential Revision: https://phabricator.services.mozilla.com/D93079
2020-10-19 09:56:56 +00:00
Razvan Maries
5e0d52e2cc Backed out 6 changesets (bug 1650118) as per Aaron's request. CLOSED TREE
Backed out changeset 4a7fc6398ad6 (bug 1650118)
Backed out changeset b9fa3dd9c05d (bug 1650118)
Backed out changeset 2cb9109dee0a (bug 1650118)
Backed out changeset a6ca38804021 (bug 1650118)
Backed out changeset 66b9527aecad (bug 1650118)
Backed out changeset 74fd3eb970a6 (bug 1650118)
2020-10-21 07:32:57 +03:00
Razvan Maries
f054f03f59 Backed out changeset c1095a37e17c (bug 1672285) for perma failures on test_bug526789.js. CLOSED TREE 2020-10-21 03:30:17 +03:00
Aaron Klotz
c0d4bbcc72 Bug 1672285: Set browser.tabs.remote.autostart = true in geckoview-prefs; r=geckoview-reviewers,agi
We used to do this as part of requesting multiprocess in runtime settings, but
now that e10s is default, we need to set it here.

Differential Revision: https://phabricator.services.mozilla.com/D94207
2020-10-20 22:30:09 +00:00
Agi Sferro
ea79b4ccc1 Bug 1672247 - Pass correct flags in ProgessTracker's listener. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D94171
2020-10-20 20:20:34 +00:00
Agi Sferro
07a1be1097 Bug 1646810 - Use DocumentChannel process switching. r=nika,owlish
Differential Revision: https://phabricator.services.mozilla.com/D93866
2020-10-20 16:14:33 +00:00
Agi Sferro
28911b048d Bug 1646810 - HistoryInParent workaround for SessionStateAggregator. r=esawin
This is a temporary workaround so that we can test Fission on GeckoView without
implementiong SessionStateAggregator, which needs to be moved to the parent
since Fission implies HistoryInParent.

Differential Revision: https://phabricator.services.mozilla.com/D93865
2020-10-20 16:14:36 +00:00
Agi Sferro
8f5674570f Bug 1646810 - Add processes tab4-tab49. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D93863
2020-10-19 18:29:02 +00:00
Agi Sferro
d6277732dc Bug 1672046 - Use correct URI from Event in GeckoViewProgress. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D94051
2020-10-19 21:03:13 +00:00
Aaron Klotz
ae7021338d Bug 1650118: Part 5 - Update GeckoView changelog; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D90934
2020-10-19 17:20:21 +00:00
Aaron Klotz
76f89ca028 Bug 1650118: Part 4 - Update api.txt; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D90933
2020-10-19 16:54:10 +00:00
Aaron Klotz
d9f179782b Bug 1650118: Part 3 - Update tests; r=geckoview-reviewers,agi,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D90932
2020-10-19 16:54:08 +00:00
Aaron Klotz
9291057e69 Bug 1650118: Part 2 - Update GVE; r=agi
Differential Revision: https://phabricator.services.mozilla.com/D90930
2020-10-19 16:53:57 +00:00
Aaron Klotz
1709d6e45f Bug 1650118: Part 1 - Remove non-e10s mode from GeckoView; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D90929
2020-10-19 17:08:28 +00:00
Agi Sferro
005c753e3f Bug 1665068 - Preserve layers for inactive GV windows. r=jnicol,snorp
Differential Revision: https://phabricator.services.mozilla.com/D93816
2020-10-19 18:28:49 +00:00
Agi Sferro
3e1940c90e Bug 1665068 - Set default clear color according to theme. r=snorp
This also makes it so we don't set a cover automatically anymore, this avoids a
flash when an app sets a session immediately after removing the old session (AC
does this).

Additionally, this also helps with a startup flash, when it's too early for
GeckoView to know whether the app's theme is light or dark.

Differential Revision: https://phabricator.services.mozilla.com/D93815
2020-10-19 18:29:15 +00:00
Agi Sferro
45bd733bd8 Bug 1665068 - Set a default background in SurfaceViewWrapper. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D93814
2020-10-19 18:29:23 +00:00
Agi Sferro
05a773c6fe Bug 1671578 - Overload Loader.equals.
Differential Revision: https://phabricator.services.mozilla.com/D93812
2020-10-19 17:09:25 +00:00
Cosmin Sabou
a2f526ddc3 Backed out changeset 55a5da81f312 (bug 1671578) for linting opt failures. 2020-10-19 20:21:13 +03:00
Agi Sferro
678f696c20 Bug 1671578 - Overload Loader.equals. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D93812
2020-10-19 15:46:56 +00:00
Agi Sferro
640b96f85b Bug 1671571 - Don't pass null headers in Loader. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D93811
2020-10-19 15:45:17 +00:00
Edgar Chen
83a3099eea Bug 1671849 - Move drag threshold setting to nsLookAndFeel; r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D93902
2020-10-19 15:16:49 +00:00
Dylan Roeh
c3b953817e Bug 1669577 - Add REPLACED_UNSAFE_CONTENT to LogEvent. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D93430
2020-10-15 13:54:46 +00:00
Eugen Sawin
b96c1aa35e Bug 1671137 - [2.0] Add Autofill crash test for the case of id='value'. r=geckoview-reviewers,agi
Depends on D93693

Differential Revision: https://phabricator.services.mozilla.com/D93856
2020-10-16 21:06:13 +00:00
Eugen Sawin
3eedce4842 Bug 1671137 - [1.1] Only retrieve the value from HTMLInputElement instances and ensure non-null strings. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D93693
2020-10-16 21:06:19 +00:00
Agi Sferro
c30d379838 Bug 1667471 - Add header filter to GeckoSession.loader. r=snorp,esawin
This allows apps to modify the header filtering behavior, and introduces a safe
default (CORS safelisted).

Deprecated `loadUri` methods still maintain the old behavior so that we don't
inadvertently introduce bugs in apps.

Differential Revision: https://phabricator.services.mozilla.com/D91983
2020-10-15 00:43:22 +00:00
Agi Sferro
be384731dd Bug 1667471 - Add builder-like replacement for loadUri. r=snorp,owlish
This introduces a new way of loading URIs in GeckoSession, using a builder-like
method `loader()` which deprecates the existing `loadUri`.

This change improves readability of long `loadUri` calls and allows us to add
more parameters without compromising usability.

It also fixes a bug where we were not short-circuiting the `onLoadRequest` call
in some cases.

Differential Revision: https://phabricator.services.mozilla.com/D91982
2020-10-15 00:43:21 +00:00
Razvan Maries
99ae18f920 Backed out 3 changesets (bug 1667471) for perma failures on NavigationDelegateTest. CLOSED TREE
Backed out changeset cfd11957a8a0 (bug 1667471)
Backed out changeset fdc015927934 (bug 1667471)
Backed out changeset ad8b66ec5171 (bug 1667471)
2020-10-15 01:53:02 +03:00
Agi Sferro
abe277429a Bug 1667471 - Add header filter to GeckoSession.loader. r=snorp,esawin
This allows apps to modify the header filtering behavior, and introduces a safe
default (CORS safelisted).

Deprecated `loadUri` methods still maintain the old behavior so that we don't
inadvertently introduce bugs in apps.

Differential Revision: https://phabricator.services.mozilla.com/D91983
2020-10-14 22:14:21 +00:00
Agi Sferro
7c3020d51d Bug 1667471 - Add builder-like replacement for loadUri. r=snorp,owlish
This introduces a new way of loading URIs in GeckoSession, using a builder-like
method `loader()` which deprecates the existing `loadUri`.

This change improves readability of long `loadUri` calls and allows us to add
more parameters without compromising usability.

It also fixes a bug where we were not short-circuiting the `onLoadRequest` call
in some cases.

Differential Revision: https://phabricator.services.mozilla.com/D91982
2020-10-14 22:14:18 +00:00
Razvan Maries
3a501e1025 Backed out 3 changesets (bug 1667471) for perma failures on NavigationDelegateTest. CLOSED TREE
Backed out changeset ab5779c59cca (bug 1667471)
Backed out changeset f7642b4cb27a (bug 1667471)
Backed out changeset 1453c6199311 (bug 1667471)
2020-10-15 00:02:42 +03:00
Agi Sferro
59d12591dd Bug 1667471 - Add header filter to GeckoSession.loader. r=snorp,esawin
This allows apps to modify the header filtering behavior, and introduces a safe
default (CORS safelisted).

Deprecated `loadUri` methods still maintain the old behavior so that we don't
inadvertently introduce bugs in apps.

Differential Revision: https://phabricator.services.mozilla.com/D91983
2020-10-14 19:54:42 +00:00
Agi Sferro
fde2db91f1 Bug 1667471 - Add builder-like replacement for loadUri. r=snorp,owlish
This introduces a new way of loading URIs in GeckoSession, using a builder-like
method `loader()` which deprecates the existing `loadUri`.

This change improves readability of long `loadUri` calls and allows us to add
more parameters without compromising usability.

It also fixes a bug where we were not short-circuiting the `onLoadRequest` call
in some cases.

Differential Revision: https://phabricator.services.mozilla.com/D91982
2020-10-14 19:54:39 +00:00
Agi Sferro
fb84d4b14d Bug 1671184 - Don't send GeckoView settings to child processes. r=snorp
Now that GeckoViewSettingChild is an actor, nobody listens to settings in the
child anymore.

Differential Revision: https://phabricator.services.mozilla.com/D93512
2020-10-14 17:26:02 +00:00
Dimi Lee
db4a017d8a Bug 1669731 - P2. Rename REPLACED_UNSAFE_CONTENT to REPLACED_TRACKING_CONTENT r=geckoview-reviewers,agi
unsafe content is for phishing sites, we should use tracking content instead.

Differential Revision: https://phabricator.services.mozilla.com/D93270
2020-10-14 09:16:48 +00:00
owlishDeveloper
532e1b8155 Bug 1665426 - Implement fetch flag for private browsing downloads in WebExecutor r=geckoview-reviewers,agi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D93044
2020-10-13 17:59:49 +00:00
Agi Sferro
e73521ae44 Bug 1670125 - Migrate GeckoViewPromptChild to Actor. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D93028
2020-10-13 17:59:22 +00:00
Agi Sferro
96d703076c Bug 1648155 - Migrate GeckoViewScrollChild to Actor. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D93017
2020-10-13 17:59:41 +00:00
Agi Sferro
702d3f2721 Bug 1667179 - Initialize OneCRL when GeckoView starts. r=snorp,jcj
Differential Revision: https://phabricator.services.mozilla.com/D93250
2020-10-13 16:57:32 +00:00
Emilio Cobos Álvarez
ff1f98dfc8 Bug 1602915 - Remove nsIBrowserDOMWindow.isTabContentWindow. r=mossop,marionette-reviewers,whimboo
This only works for non-e10s and it also seems superseded by the
mPendingClose as per the comment.

Differential Revision: https://phabricator.services.mozilla.com/D92003
2020-10-13 16:58:37 +00:00
Aaron Klotz
865e038207 Bug 1668376: Part 1 - Rename GeckoProcessManager::MarkAsDead to GeckoProcessManager::ShutdownProcess; r=geckoview-reviewers,necko-reviewers,agi,dragana
Since the semantics of `ContentParent::MarkAsDead` are significantly different
from `GeckoProcessManager::MarkAsDead`, let's rename the latter to better
reflect what it actually does.

Differential Revision: https://phabricator.services.mozilla.com/D92649
2020-10-06 20:25:02 +00:00
lonocvb
803b368879 Bug 1669158 - Fix the offset of nested iframe by considering the border and padding size. r=mats,geckoview-reviewers,TYLin,agi
Differential Revision: https://phabricator.services.mozilla.com/D92375
2020-10-13 05:02:26 +00:00
Hiroyuki Ikezoe
d012382469 Bug 1660357 - Do flushApzRepaints and wait for "apz-repaints-flushed" notification before running each test in PanZoomControllerTest.kt. r=agi,botond
What flushApzRepaints does is basically same as what promiseApzRepaintsFlushed
does in apz_test_utils.js, calling nsIDOMWindowUtils.flushApzRepaints and waiting
for "apz-repaints-flushed" in the target content document.

Differential Revision: https://phabricator.services.mozilla.com/D93048
2020-10-13 01:40:55 +00:00
Hiroyuki Ikezoe
d3f5260e1d Bug 1660357 - Drop explicit setting dom.visualviewport.enabled pref. r=geckoview-reviewers,agi
It's been enabled by default.

Differential Revision: https://phabricator.services.mozilla.com/D93047
2020-10-09 15:04:36 +00:00
James Willcox
0db8042add Bug 1549418 - Hook up WebAuthn support for GeckoView r=geckoview-reviewers,jcj,agi
This mostly just refactors the stuff we had for Fennec.

We add a dependency on Google Play Services here, but care
is taken to ensure that things will fail gracefully if
Play Services are not present at runtime.

Differential Revision: https://phabricator.services.mozilla.com/D91446
2020-10-12 19:22:09 +00:00
James Willcox
209c1866c1 Bug 1549418 - Add GeckoRuntime.ActivityDelegate r=geckoview-reviewers,agi,esawin
This allows GeckoView to ask the embedding application to launch
other Activities on our behalf and collect the result. We need
this to invoke the FIDO authentication tools for WebAuthn.

Differential Revision: https://phabricator.services.mozilla.com/D91445
2020-10-12 19:22:03 +00:00
Jamie Nicol
ee3f8cefa1 Bug 1595794 - Disable VerticalClippingTest.verticalClippingSucceeds on webrender. r=geckoview-reviewers,agi
It is currently failing, as tracked in bug 1670267.

Differential Revision: https://phabricator.services.mozilla.com/D93095
2020-10-09 21:56:36 +00:00
Agi Sferro
52d04941c0 Bug 1667497 - Listen for MozAfterPaint on windowRoot. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D93027
2020-10-09 19:12:17 +00:00
Agi Sferro
617dccb3da Bug 1648157 - Add GVE setting to disable javascript. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D92489
2020-10-09 17:32:13 +00:00
Agi Sferro
ac2df3a623 Bug 1648157 - Add displayMode setting to GVE. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D92488
2020-10-09 17:32:11 +00:00
Agi Sferro
618c19cac7 Bug 1648157 - Reduce duplication in GVE settings. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D92487
2020-10-09 17:32:08 +00:00
Agi Sferro
fbf157e6ef Bug 1648157 - Reword TrackingProtection menu item in GVE. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D92486
2020-10-09 17:32:06 +00:00
Agi Sferro
41821739e4 Bug 1648157 - Migrate GeckoViewSettingsChild to Actor. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D92485
2020-10-09 17:32:04 +00:00
Agi Sferro
b855fa6877 Bug 1648157 - Enable debugging by default in GVE. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D92483
2020-10-09 17:31:52 +00:00
Sylvestre Ledru
cad53f4804 Bug 1588458 - Replace dxr links by searchfox in the code/test r=kats,sparky
Differential Revision: https://phabricator.services.mozilla.com/D92792
2020-10-08 14:02:40 +00:00
Sylvestre Ledru
9bce072e44 Bug 1588458 - Replace dxr by searchfox in the rst doc r=ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D49140
2020-10-08 08:13:15 +00:00
Mike Hommey
3a86574eae Bug 1669642 - Rename LLVMCONFIG to LLVM_CONFIG and derive it like we do for LLVM_OBJDUMP. r=firefox-build-system-reviewers,andi,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D92737
2020-10-07 22:36:49 +00:00
Andreas Pehrson
3f339deda4 Bug 1616729 - Show top window's document origin to users when requesting media device permissions. r=geckoview-reviewers,johannh,agi
This is similar to what we do on desktop.

Differential Revision: https://phabricator.services.mozilla.com/D92239
2020-10-07 21:42:22 +00:00
Andreas Pehrson
b63c589e27 Bug 1616729 - Use the top window's document origin for requesting camera permissions. r=geckoview-reviewers,johannh,agi
Differential Revision: https://phabricator.services.mozilla.com/D92238
2020-10-07 21:42:40 +00:00
Andreas Pehrson
68ab8f8c2d Bug 1616729 - Add geckoview-junit test for cross-origin subframe gUM request with allow/no-allow. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D92763
2020-10-07 19:18:39 +00:00
Gijs Kruitbosch
632a61a42f Bug 1668586 - stop messing with web progress listeners when changing remoteness, r=mattwoodrow,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D92514
2020-10-07 20:39:33 +00:00
Agi Sferro
7ebe27ddd5 Bug 1667811 - Fix typo in E10SUtils.redirectLoad. r=esawin,nika
Differential Revision: https://phabricator.services.mozilla.com/D92668
2020-10-06 20:45:00 +00:00
Eugen Sawin
4182c16fd3 Bug 1663039 - [2.0] Add GV test to verify autofillEnabled setting is respected. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D92245
2020-10-06 17:53:14 +00:00
Georg Koppen
ef16182aa2 Bug 1667948 - Don't break fat .aar creation if MOZ_ANDROID_FAT_AAR_ARCHITECTURES is set r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D92551
2020-10-06 16:13:36 +00:00
Brindusan Cristian
c992a99524 Backed out 2 changesets (bug 1549418) for causing android bpgo exceptions. CLOSED TREE
Backed out changeset b2c7cf464308 (bug 1549418)
Backed out changeset bb3cee345d37 (bug 1549418)
2020-10-03 13:35:35 +03:00
Tim Giles
a0ab1f9aba Bug 1134852 - Update password manager recipes from Remote Settings. r=sfoster,leplatrem,geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D89821
2020-10-02 19:45:03 +00:00
James Willcox
ac966a1df8 Bug 1549418 - Hook up WebAuthn support for GeckoView r=geckoview-reviewers,jcj,agi
This mostly just refactors the stuff we had for Fennec.

We add a dependency on Google Play Services here, but care
is taken to ensure that things will fail gracefully if
Play Services are not present at runtime.

Differential Revision: https://phabricator.services.mozilla.com/D91446
2020-10-02 15:43:41 +00:00
James Willcox
4312bd0da2 Bug 1549418 - Add GeckoRuntime.ActivityDelegate r=geckoview-reviewers,agi,esawin
This allows GeckoView to ask the embedding application to launch
other Activities on our behalf and collect the result. We need
this to invoke the FIDO authentication tools for WebAuthn.

Differential Revision: https://phabricator.services.mozilla.com/D91445
2020-10-02 15:43:39 +00:00
Daniel Le
657fbf74ca Bug 1667675 - Use sourceSets instead of JavaCompileProvider to generate sources.jar. r=agi
Documentation is lacking but apparently
`variant.javaCompileProvider.get().source` is always empty according to
da34aabdb6.

In that commit, `android.sourceSets.main.java.srcDirs` was the
replacement. However, I used
`variant.sourceSets.collect({ it.java.srcDirs }).flatten()` to be
consistent with an earlier usage in `build.gradle`.

Differential Revision: https://phabricator.services.mozilla.com/D91836
2020-10-01 00:12:00 +00:00
Eugen Sawin
4730cbf48f Bug 1647522 - [1.0] Dispatch onFullscreen without metadata when there is an existing media session. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D91476
2020-10-01 13:30:53 +00:00
Agi Sferro
ed076be423 Bug 1660241 - Add GeckoRuntimeSetting for SafeBrowsing provider. r=droeh,dimi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D91200
2020-09-30 19:54:47 +00:00
Agi Sferro
7c9a70d488 Bug 1660241 - Traverse children of arbitrary degree in RuntimeSettings. r=snorp
When collecting prefs from a RuntimeSettings we only consider children of the
instance. This change makes it so we traverse the whole tree, collecting
childrens of children, etc.

Differential Revision: https://phabricator.services.mozilla.com/D91674
2020-09-30 19:57:28 +00:00
Sylvestre Ledru
31b3856da6 Bug 1667831 - doc: fix more pygments r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D91868
2020-09-30 07:03:41 +00:00
Aaron Klotz
45df22c22b Bug 1637351: Add onKill handler to GVE; r=geckoview-reviewers,agi
Since GVE is supposed to be an exemplar for using GV the Right Way (TM), we
add an `onKill` handler that checks whether the killed session is current, and
does not restore the session if it is in the background.

When switching sessions, we add a check to see whether the session was closed,
and reopen it if so.

Differential Revision: https://phabricator.services.mozilla.com/D91465
2020-09-30 00:15:57 +00:00
Sylvestre Ledru
6be67c14c4 Bug 1667831 - doc: refresh links as many pages moved in-tree r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D91619
2020-09-29 17:53:54 +00:00
Aaron Klotz
212a3b1adf Bug 1666639: Part 3 - Remove unused Parcel import from GVE's TabSession class; r=geckoview-reviewers,agi
Depends on D91764

Differential Revision: https://phabricator.services.mozilla.com/D91765
2020-09-29 16:22:07 +00:00
Aaron Klotz
9dbedb9ac2 Bug 1666639: Part 2 - Remove vestigial parceling code from gtest harness; r=geckoview-reviewers,agi
This code is no longer needed now that `GeckoSession`'s `Parcelable` support
and its tests have been removed.

Depends on D91763

Differential Revision: https://phabricator.services.mozilla.com/D91764
2020-09-29 16:21:37 +00:00
Aaron Klotz
8ed5fe6fab Bug 1666639: Part 1 - Remove vestigial GeckoSession.transferFrom and GeckoSession.transfer methods; r=geckoview-reviewers,agi
Since we removed `Parcelable` support from `GeckoSession`, these methods are
no longer used and may be removed.

Differential Revision: https://phabricator.services.mozilla.com/D91763
2020-09-29 16:21:19 +00:00
Nicolas Chevobbe
056b9542f2 Bug 1573779 - [devtools] Rename WorkerTargetActorList to WorkerDescriptorActorList. r=jdescottes.
This class is creating (and handling) WorkerDescriptorActor now, so we rename
it to make it explicit.

Differential Revision: https://phabricator.services.mozilla.com/D91557
2020-09-29 14:31:10 +00:00
Ricky Stewart
2bb808e369 Bug 1667896 - Remove MOZ_ANDROID_DISTRIBUTION_DIRECTORY r=nalexander
This config value is evidently a Fennec thing that isn't used anywhere any more.

Differential Revision: https://phabricator.services.mozilla.com/D91647
2020-09-29 01:51:13 +00:00
Dorel Luca
f826d52619 Backed out 3 changesets (bug 1573779, bug 1662734) for Geckoview failures. CLOSED TREE
Backed out changeset 0adff4f08b28 (bug 1662734)
Backed out changeset c6bb84f2a032 (bug 1573779)
Backed out changeset 0c605800aa6b (bug 1573779)
2020-09-29 12:59:39 +03:00
Nicolas Chevobbe
bda0dabd83 Bug 1573779 - [devtools] Rename WorkerTargetActorList to WorkerDescriptorActorList. r=jdescottes.
This class is creating (and handling) WorkerDescriptorActor now, so we rename
it to make it explicit.

Differential Revision: https://phabricator.services.mozilla.com/D91557
2020-09-29 01:54:32 +00:00
Dorel Luca
dfd9c0f72f Backed out changeset b195f27085be (bug 1637351) for causing perma Raptor failures on Android. CLOSED TREE 2020-09-29 09:49:47 +03:00
Agi Sferro
7229456ee2 Bug 1654598 - Use bundle instead of string list for headers. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D91454
2020-09-29 01:36:24 +00:00
Cosmin Sabou
7cc4032397 Backed out changeset 240be767db48 (bug 1654598) for eslint failure on GeckoViewNavigation.jsm. CLOSED TREE
DONTBUILD
2020-09-29 04:15:49 +03:00
Agi Sferro
e4866c41ee Bug 1654598 - Use bundle instead of string list for headers. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D91454
2020-09-25 16:37:45 +00:00
Aaron Klotz
be2f3c6746 Bug 1637351: Add onKill handler to GVE; r=geckoview-reviewers,agi
Since GVE is supposed to be an exemplar for using GV the Right Way (TM), we
add an `onKill` handler that checks whether the killed session is current, and
does not restore the session if it is in the background.

When switching sessions, we add a check to see whether the session was closed,
and reopen it if so.

Differential Revision: https://phabricator.services.mozilla.com/D91465
2020-09-28 20:27:29 +00:00
Bogdan Tara
bcbeffc44f Backed out changeset 860002a7a547 (bug 1660241) for ContentBlockingControllerTest.safeBrowsingSettings failures CLOSED TREE 2020-09-28 20:10:51 +03:00
Agi Sferro
0221eaea04 Bug 1660241 - Add GeckoRuntimeSetting for SafeBrowsing provider. r=droeh,dimi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D91200
2020-09-28 14:26:04 +00:00
owlishDeveloper
9660b2c08a Bug 1666013 - Use map with lower-case keys in WebMessage to make APIs easier to use r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D91168
2020-09-25 15:27:49 +00:00
owlishDeveloper
04b46a3c4c Bug 1666013 - Add convenience headers to download web response r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D90906
2020-09-25 15:27:42 +00:00
Eugen Sawin
bd8146fe35 Bug 1666609 - [2.0] Add Media Session onFullscreen test. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D91055
2020-09-25 14:17:37 +00:00
Eugen Sawin
0f6df7df2b Bug 1666609 - [1.0] Fix undefined function call in onFullscreen handling. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D91054
2020-09-25 14:17:29 +00:00
Dan Minor
234fe8f57a Bug 1665166 - Fix paths in build.gradle; r=snorp
Depends on D91323

Differential Revision: https://phabricator.services.mozilla.com/D91324
2020-09-24 19:53:33 +00:00
Eugen Sawin
60dbeb9ea2 Bug 1658937 - [3.2] Update changelog. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D90912
2020-09-24 21:21:17 +00:00
Eugen Sawin
65e9885457 Bug 1658937 - [2.4] Update tests to work with the WebIDL events. r=geckoview-reviewers,agi,alwu
Differential Revision: https://phabricator.services.mozilla.com/D89820
2020-09-24 21:21:09 +00:00
Eugen Sawin
7508b5bd23 Bug 1658937 - [1.5] Move media controls to WebIDL. r=geckoview-reviewers,agi,alwu
Differential Revision: https://phabricator.services.mozilla.com/D89819
2020-09-24 21:21:02 +00:00
Agi Sferro
b48d6cf03e Bug 1624410 - Add WebExtension.MetaData.temporary. r=esawin,snorp
This allows embedders to know when an extension is installed temporarily so
that they can allow it even if they would normally do it (e.g. for extensions
installed with web-ext).

Differential Revision: https://phabricator.services.mozilla.com/D91071
2020-09-23 18:35:05 +00:00
Bogdan Tara
98201431da Backed out 4 changesets (bug 1624410, bug 1658937) for gv-junit failures CLOSED TREE
Backed out changeset 48126ab6653f (bug 1624410)
Backed out changeset eef492b1405c (bug 1658937)
Backed out changeset d00dc8d2956c (bug 1658937)
Backed out changeset 525ef78d1586 (bug 1658937)
2020-09-23 21:04:19 +03:00
Agi Sferro
416eb4c6d4 Bug 1624410 - Add WebExtension.MetaData.temporary. r=esawin,snorp
This allows embedders to know when an extension is installed temporarily so
that they can allow it even if they would normally do it (e.g. for extensions
installed with web-ext).

Differential Revision: https://phabricator.services.mozilla.com/D91071
2020-09-23 17:40:16 +00:00
Eugen Sawin
d986af73f6 Bug 1658937 - [3.1] Update changelog. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D90912
2020-09-23 14:01:02 +00:00
Eugen Sawin
575e911d14 Bug 1658937 - [2.3] Update tests to work with the WebIDL events. r=geckoview-reviewers,agi,alwu
Differential Revision: https://phabricator.services.mozilla.com/D89820
2020-09-23 14:01:00 +00:00
Eugen Sawin
944c799928 Bug 1658937 - [1.4] Move media controls to WebIDL. r=geckoview-reviewers,agi,alwu
Differential Revision: https://phabricator.services.mozilla.com/D89819
2020-09-23 14:00:57 +00:00
Csoregi Natalia
9fefb5edac Backed out 3 changesets (bug 1658937) for bustage on missing MediaSessionNatives.h. CLOSED TREE
Backed out changeset 031b4f94e7f7 (bug 1658937)
Backed out changeset 8d6b4239dacb (bug 1658937)
Backed out changeset 9d9674f18f0c (bug 1658937)
2020-09-23 06:14:19 +03:00
Eugen Sawin
602ae8ee46 Bug 1658937 - [3.0] Update changelog. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D90912
2020-09-22 20:58:34 +00:00
Eugen Sawin
ee4433ddf8 Bug 1658937 - [2.2] Update tests to work with the WebIDL events. r=geckoview-reviewers,agi,alwu
Differential Revision: https://phabricator.services.mozilla.com/D89820
2020-09-22 20:58:27 +00:00
Eugen Sawin
9b361e576c Bug 1658937 - [1.3] Move media controls to WebIDL. r=geckoview-reviewers,agi,alwu
Differential Revision: https://phabricator.services.mozilla.com/D89819
2020-09-22 20:58:19 +00:00
Makoto Kato
4fa777dc84 Bug 1425291 - Part 5. Support autocalitalize attribute on GeckoView. r=geckoview-reviewers,snorp
`android.view.inputmethod.EditorInfo` has `inputType` feild that can control
capitalize of software keyboard. GeckoView should use it for autocapitalize
attribute support.

Differential Revision: https://phabricator.services.mozilla.com/D86678
2020-09-15 14:26:21 +00:00
Kris Maglione
43d01c93da Bug 1655866: Part 6 - Remove sync before unload prompt code. r=nika,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D88319
2020-09-21 22:41:06 +00:00
Kris Maglione
2d863e9e4c Bug 1655866: Part 1 - Add async version of beforeUnloadCheck prompt. r=geckoview-reviewers,Gijs,agi
Differential Revision: https://phabricator.services.mozilla.com/D88314
2020-09-21 22:40:42 +00:00
Aaron Klotz
1cb3208c3b Bug 1651705: Part 4 - Convert nsWindow to use NativeWeakPtr; r=geckoview-reviewers,agi
These conversions are pretty straight forward thanks to the type system.
Basically we take a `NativeWeakPtr`, call `Access()` on it, and if the
accessor is truthy, then we call whatever methods we need to call.

Creation of new pointers is done using `NativeWeakPtrHolder::Attach()` and
detaching of strong references is done by `NativeWeakPtr::Detach()`.

Differential Revision: https://phabricator.services.mozilla.com/D87363
2020-09-21 21:48:35 +00:00
Aaron Klotz
77d65fb576 Bug 1651705: Part 1 - Make JNIObject.mHandle volatile; r=geckoview-reviewers,snorp
Given the access patterns involved on the native side, I think it is safest
to ensure that this field is access atomically by the VM.

Differential Revision: https://phabricator.services.mozilla.com/D87360
2020-09-21 21:48:03 +00:00
Dylan Roeh
7cffabbe1d Bug 1663756 - Expose STATE_UNBLOCKED_UNSAFE_CONTENT in GV's content blocking API. r=esawin,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D90173
2020-09-21 18:41:42 +00:00
James Willcox
173058981b Bug 1553459 - Migrate to AndroidX r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D90711
2020-09-18 22:29:04 +00:00
Agi Sferro
490c700133 Bug 1664522 - Move ext_tabs_captureTab test to toolkit. r=robwu,snorp
Differential Revision: https://phabricator.services.mozilla.com/D90167
2020-09-17 18:04:20 +00:00
Agi Sferro
ffd9c2aa20 Bug 1664522 - Fix tabs.captureVisibleTab for mobile. r=robwu,zombie,snorp
There are two things wrong with captureVisibleTab on mobile:

    * ownerGlobal is not available on nativeTab, this patch uses
      this.browser.ownerGlobal instead.
    * ZoomManager is not available on mobile, this patch moves that code to
      browser/../ext-tabs.

Differential Revision: https://phabricator.services.mozilla.com/D90009
2020-09-16 22:08:33 +00:00
Agi Sferro
9ed0049345 Bug 1664522 - Implement tabs.captureTab on mobile. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D90165
2020-09-16 22:08:35 +00:00
owlishDeveloper
92a4256bac Bug 1650108 - Remove deprecated Parcelable support r=geckoview-reviewers,agi
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=6658ee401fd39bb137546937e29a8fa630bcd54a

I also removed `dumpHprof()` function as it was seemingly unused

Differential Revision: https://phabricator.services.mozilla.com/D90471
2020-09-17 02:13:22 +00:00
Dorel Luca
72ef712fd0 Backed out 10 changesets (bug 1518999) for GeckoView failures in PanZoomControllerTest.scroll. CLOSED TREE
Backed out changeset 7b5bdd071d05 (bug 1518999)
Backed out changeset 401e488734dd (bug 1518999)
Backed out changeset c13e51e17329 (bug 1518999)
Backed out changeset 2a2d67ba15b8 (bug 1518999)
Backed out changeset 3d4d84003227 (bug 1518999)
Backed out changeset 972731762965 (bug 1518999)
Backed out changeset f21b13582dad (bug 1518999)
Backed out changeset 13a4c749a802 (bug 1518999)
Backed out changeset 5a6cea5fd344 (bug 1518999)
Backed out changeset c3bb552e76a3 (bug 1518999)
2020-09-17 02:58:34 +03:00
Sean Feng
4f56232254 Bug 1518999 - Trick contentful detection in some geckoview tests r=snorp,geckoview-reviewers,agi
Some geckoview tests require gradient usage. Since background
images are async, these tests would wait for a contentful paint
to make sure the images are decoded before running the assertions.
This causes an issue because gradient-only backgrounds aren't
contentful anymore according to the latest spec.

We fix the tests by adding a transparent gif to the background
image list to trick the contentful detection.

Differential Revision: https://phabricator.services.mozilla.com/D88230
2020-09-14 15:12:58 +00:00
Dorel Luca
36eb42a5a8 Backed out 3 changesets (bug 1664522) for Mochitest failures in extensions/test/mochitest/test_ext_tabs_captureTab.html. CLOSED TREE
Backed out changeset 30b8a0e3514b (bug 1664522)
Backed out changeset 04b61d3d734a (bug 1664522)
Backed out changeset c951834c99c7 (bug 1664522)
2020-09-17 00:26:59 +03:00
Dorel Luca
cef5008fd7 Backed out 4 changesets (bug 1665162, bug 1664522, bug 1620324) for XPCshell failures and build bustages. CLOSED TREE
Backed out changeset a31efbcf3ff5 (bug 1664522)
Backed out changeset c985209d3ced (bug 1665162)
Backed out changeset ea2f00c4049e (bug 1620324)
Backed out changeset 2ee894a67a93 (bug 1620324)
2020-09-17 00:55:33 +03:00
Dorel Luca
70bfa5c776 Backed out 3 changesets (bug 1664522) for Mochitest failures in extensions/test/mochitest/test_ext_tabs_captureTab.html. CLOSED TREE
Backed out changeset 30b8a0e3514b (bug 1664522)
Backed out changeset 04b61d3d734a (bug 1664522)
Backed out changeset c951834c99c7 (bug 1664522)
2020-09-17 00:26:59 +03:00
Agi Sferro
f9bb44fe18 Bug 1664522 - Move ext_tabs_captureTab test to toolkit. r=robwu,snorp
Differential Revision: https://phabricator.services.mozilla.com/D90167
2020-09-16 20:11:35 +00:00
Agi Sferro
8647758548 Bug 1664522 - Fix tabs.captureVisibleTab for mobile. r=robwu,zombie,snorp
There are two things wrong with captureVisibleTab on mobile:

    * ownerGlobal is not available on nativeTab, this patch uses
      this.browser.ownerGlobal instead.
    * ZoomManager is not available on mobile, this patch moves that code to
      browser/../ext-tabs.

Differential Revision: https://phabricator.services.mozilla.com/D90009
2020-09-16 20:12:00 +00:00
Agi Sferro
5e3d005f59 Bug 1664522 - Implement tabs.captureTab on mobile. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D90165
2020-09-16 20:12:28 +00:00
John Lin
40829db9bc Bug 1655915 - p2: correctly obtain/dispose samples. r=geckoview-reviewers,agi
All samples must be obtained and disposed to make sure they are
recycled instead of leaked.

Differential Revision: https://phabricator.services.mozilla.com/D89531
2020-09-16 17:08:48 +00:00
John Lin
a79f02d04e Bug 1655915 - p1: properly release surface. r=snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D89530
2020-09-16 16:59:49 +00:00
Paul Adenot
6abe53e8ff Bug 1662805 - Don't freeze a tab when it's playing back audio. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D89390
2020-09-15 09:00:05 +00:00
Mark Banner
02ae3b9de6 Bug 863474 - Centralise OpenSearch install failure prompts into SearchUIUtils. r=daleharvey,flod,geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D89879
2020-09-14 11:08:43 +00:00
Cristina Coroiu
d85babf17b Backed out 5 changesets (bug 1662805) for multiple failures, e.g. bc failures at dom/media/mediacontrol/tests/browser_media_control_non_eligible_media.js on a CLOSED TREE
Backed out changeset 820eb655de3d (bug 1662805)
Backed out changeset 23c90dd335b1 (bug 1662805)
Backed out changeset eff66444dc68 (bug 1662805)
Backed out changeset caeffea29d80 (bug 1662805)
Backed out changeset 2f8f9799d1f3 (bug 1662805)
2020-09-14 14:44:34 +03:00
Paul Adenot
be337d71ed Bug 1662805 - Don't freeze a tab when it's playing back audio. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D89390
2020-09-14 09:40:18 +00:00
Agi Sferro
4eec0c20b2 Bug 1648154 - Move GeckoViewProgressChild to actor. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D89508
2020-09-12 02:39:36 +00:00
Agi Sferro
1b4b4b4de7 Bug 1648154 - Use GeckoViewActorParent for existing actors. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D89507
2020-09-12 02:39:34 +00:00
Agi Sferro
f98d1aa2d2 Bug 1648154 - Forward child actor messages to the relevant module. r=esawin
This patch tightens the coupling between the parent module and the child
actors.

Each parent module will receive messages from the corresponding child actors
whenever the parent actor does not define a message handler.

The parent actor also has the option to handle some messages and delegate the
rest by calling `super.receiveMessage`.

The idea is that every message that can be handled within the browsingContext
should be handled in the parent actor, while everything that needs context
across browsing contexts (e.g. page navigation listeners) should be handled in
the parent module.

Differential Revision: https://phabricator.services.mozilla.com/D89506
2020-09-12 02:39:32 +00:00
Agi Sferro
68bde3475c Bug 1659073 - Implement confirmRepost on Mobile. r=owlish,snorp
Differential Revision: https://phabricator.services.mozilla.com/D89658
2020-09-10 22:28:17 +00:00
Tomislav Jovanovic
c99e9821ef Bug 1636508 - Add options to select captureTab area and scale r=robwu,geckoview-reviewers,agi
Also fix test for HiDPI monitors, and refactor it to remove duplicate code for captureVisibleTab.

Differential Revision: https://phabricator.services.mozilla.com/D89128
2020-09-10 19:38:17 +00:00
Agi Sferro
9ba4e16ce3 Bug 1661480 - Restore scrolling position in new session. r=droeh
When restoring state into a new session, the actor gets recreated after
navigating away from `about:blank` so we have to query for it again to get the
right instance.

Differential Revision: https://phabricator.services.mozilla.com/D89475
2020-09-09 05:48:14 +00:00
Agi Sferro
89ab9ce336 Bug 1661480 - Handle subsessions displays too. r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D89474
2020-09-09 05:48:16 +00:00
Nicholas Nethercote
ddf02dcac6 Bug 1426269 - Filter full-line comments and empty lines from prefs files. r=glandium,geckoview-reviewers,snorp
For a local build on my Linux64 box, this reduces greprefs.js from 174,906
bytes to 103,221 bytes, and firefox.js from 112,100 bytes to 68,656 bytes.

Depends on D88242

Differential Revision: https://phabricator.services.mozilla.com/D88243
2020-09-08 07:10:54 +00:00
Eugen Sawin
2da29523bc Bug 1662508 - [6.0] Update GVE to Image API. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D89019
2020-09-08 15:59:36 +00:00
Eugen Sawin
87b0972c30 Bug 1662508 - [5.0] Update changelog. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D89018
2020-09-08 15:59:34 +00:00
Eugen Sawin
614422dede Bug 1662508 - [4.0] Update WebExtension Action tests to Image API. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D89017
2020-09-08 15:59:32 +00:00
Eugen Sawin
3d0830c785 Bug 1662508 - [3.0] Use Image API in WebExtension. r=geckoview-reviewers,agi,owlish
Differential Revision: https://phabricator.services.mozilla.com/D89016
2020-09-08 15:59:30 +00:00
Eugen Sawin
f670bd7a5c Bug 1662508 - [2.0] Add media session artwork smoke tests. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D89015
2020-09-08 15:59:28 +00:00
Eugen Sawin
22b2bc2103 Bug 1662508 - [1.1] Add Media Session artwork support. r=geckoview-reviewers,snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D89014
2020-09-08 15:59:25 +00:00
Agi Sferro
758f4524b7 Bug 1660130 - Use ensureBuiltIn in our docs. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D87672
2020-09-02 22:17:59 +00:00
Agi Sferro
b7a706d5a4 Bug 1661299 - Read web-app manifest on top-level frames only. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D89087
2020-09-02 22:17:30 +00:00
owlishDeveloper
9bc69387a9 Bug 1662590 - Migrate GVE to new onExternalResponse endpoint. Fix IOUtils to not create buffer 2x larger than needed r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D89074
2020-09-02 19:51:28 +00:00
James Willcox
b8fb1213a4 Bug 1662528 - Make ContentDelegate.onCloseRequest() work again r=geckoview-reviewers,agi
This also adds a test.

Differential Revision: https://phabricator.services.mozilla.com/D89026
2020-09-02 20:02:52 +00:00
Mihai Alexandru Michis
202f4a23fc Backed out changeset 2f0f44bd9758 (Bug 1662528) for causing failures in browsers/the-window-object/*
CLOSED TREE
2020-09-02 21:22:13 +03:00
Agi Sferro
a70a754e72 Bug 1662327 - Use pagetitlechanged instead of DOMTitleChanged. r=esawin,droeh
Differential Revision: https://phabricator.services.mozilla.com/D89086
2020-09-02 15:31:54 +00:00
Mark Banner
b0311dd767 Bug 1619926 - Remove legacy search configuration code from the search service. r=daleharvey,geckoview-reviewers,agi
Depends on D87894

Differential Revision: https://phabricator.services.mozilla.com/D88017
2020-09-01 18:08:29 +00:00
James Willcox
6fbeb84e24 Bug 1662528 - Make ContentDelegate.onCloseRequest() work again r=geckoview-reviewers,agi
This also adds a test.

Differential Revision: https://phabricator.services.mozilla.com/D89026
2020-09-02 01:53:20 +00:00
James Willcox
ccc2a9571f Bug 1660546 - Ensure Surface is released when closing GeckoSession r=geckoview-reviewers,aklotz
Without this, the asynchronous nature of compositor shutdown causes
races if the Android surface is immediately reused with another
GeckoSession instance.

Differential Revision: https://phabricator.services.mozilla.com/D89025
2020-09-01 18:52:28 +00:00
Butkovits Atila
7b340f9684 Backed out 15 changesets (bug 1612824, bug 1661234, bug 1619926, bug 1612380, bug 1559530, bug 1642990) for Xpc failures. CLOSED TREE
Backed out changeset 426d017d7e46 (bug 1642990)
Backed out changeset 84ab4021d403 (bug 1559530)
Backed out changeset 82a8305543e5 (bug 1559530)
Backed out changeset 38832c1185b8 (bug 1559530)
Backed out changeset f16918c10a6b (bug 1661234)
Backed out changeset 3a13258fbd51 (bug 1661234)
Backed out changeset abf8d8b24845 (bug 1612824)
Backed out changeset 7dfeb065a385 (bug 1619926)
Backed out changeset bc9d3e210fe7 (bug 1619926)
Backed out changeset 786164c461ae (bug 1619926)
Backed out changeset d89793e9d17d (bug 1619926)
Backed out changeset d665885bc912 (bug 1619926)
Backed out changeset 9260b6620943 (bug 1619926)
Backed out changeset af69a4896f2f (bug 1619926)
Backed out changeset b9cd6b7047b9 (bug 1612380)
2020-09-01 21:03:23 +03:00
Butkovits Atila
925221149f Backed out 7 changesets (bug 1651705) as requested by Aklotz. CLOSED TREE
Backed out changeset 60730e8394ae (bug 1651705)
Backed out changeset c441ae751191 (bug 1651705)
Backed out changeset c289f06ceba2 (bug 1651705)
Backed out changeset d4491ef94b3e (bug 1651705)
Backed out changeset 1cca90ffab83 (bug 1651705)
Backed out changeset 9b1ce53e6472 (bug 1651705)
Backed out changeset a31251ba4566 (bug 1651705)
2020-09-01 20:39:15 +03:00
Aaron Klotz
d9c7fd9289 Bug 1651705: Part 1 - Make JNIObject.mHandle volatile; r=geckoview-reviewers,snorp
Given the access patterns involved on the native side, I think it is safest
to ensure that this field is access atomically by the VM.

Differential Revision: https://phabricator.services.mozilla.com/D87360
2020-09-01 14:33:52 +00:00
Mark Banner
3ac411544c Bug 1619926 - Remove legacy search configuration code from the search service. r=daleharvey,geckoview-reviewers,agi
Depends on D87894

Differential Revision: https://phabricator.services.mozilla.com/D88017
2020-09-01 12:51:08 +00:00
Eugen Sawin
f29561d8af Bug 1658456 - [3.0] Move ImageDecoder to gecko.util. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D87644
2020-09-01 12:16:22 +00:00
Eugen Sawin
f2026a8876 Bug 1658456 - [2.2] Add tests for ImageResource. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D86645
2020-09-01 12:16:15 +00:00
Eugen Sawin
029a08a2f8 Bug 1658456 - [1.3] Add Image and ImageResource utilities. r=geckoview-reviewers,agi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D86644
2020-09-01 12:16:07 +00:00
Olli Pettay
b163d0ab51 Bug 1661812 - Consider to use longer timeout for slow script warning if there isn't any important user input pending r=mccr8,geckoview-reviewers,snorp
The patch converts the relevant prefs to use StaticPrefList and let's content JS in child processes to run longer if there
aren't mousedown/ups or keyevents or such. mousemove or wheel aren't considered as important events.

Differential Revision: https://phabricator.services.mozilla.com/D88668
2020-09-01 07:21:26 +00:00
Narcis Beleuzu
7a6bc811fb Backed out changeset 39ee74362843 (bug 1643448) for failures on test_presentation_sender_on_terminate_request.html. CLOSED TREE 2020-09-01 00:37:23 +03:00
owlishDeveloper
fd371ef45e Bug 1654722 - Add backend support for new OnExternalResponse API in GV r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D86617
2020-08-31 17:30:57 +00:00
owlishDeveloper
8c96af737f Bug 1654722 - Change OnExternalResponse API to enable downloads in one request in GV r=geckoview-reviewers,snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D86616
2020-08-31 17:30:50 +00:00
amedyne
636d2fceb9 Bug 1643448 Add ACCESS_WIFI_STATE permission to TestRunnerActivity. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D88852
2020-08-31 14:17:16 +00:00
Agi Sferro
672892c504 Bug 1661480 - Restore scrolling position and form data. r=droeh
When migrating RestoreState to actors we didn't consider that the child actor
gets recreated at every navigation, as its lifetime is tied to the inner
window.

This means that restoring state in one step is not possible, as restoring the
history will trigger a navigation from `about:blank` to the restored page.

To achieve this, we split restoring in two steps and we keep the state on the
parent actor instead of the child.

We move the restoring logic to a newly added GeckoViewContent parent actor,
which is more readibly accessible from both geckoview.js and
GeckoViewContent.jsm.

Differential Revision: https://phabricator.services.mozilla.com/D88637
2020-08-28 20:19:44 +00:00
Narcis Beleuzu
3361c24c23 Backed out 7 changesets (bug 1651705) for mochitest failures on test_resizers_resizing_elements.html . CLOSED TREE
Backed out changeset 7fd32a3fb6e7 (bug 1651705)
Backed out changeset de4edbcb15c1 (bug 1651705)
Backed out changeset 531e71369f68 (bug 1651705)
Backed out changeset 84590e96de88 (bug 1651705)
Backed out changeset 7d9d2d44b2ee (bug 1651705)
Backed out changeset 9ffca762753c (bug 1651705)
Backed out changeset 2d79f4348b36 (bug 1651705)
2020-08-28 23:06:39 +03:00
Aaron Klotz
fd8538d823 Bug 1651705: Part 1 - Make JNIObject.mHandle volatile; r=geckoview-reviewers,snorp
Given the access patterns involved on the native side, I think it is safest
to ensure that this field is access atomically by the VM.

Differential Revision: https://phabricator.services.mozilla.com/D87360
2020-08-27 20:13:56 +00:00
Nick Alexander
d36eacb26b Bug 1661406 - Allow artifact builds without an NDK when working around Android-Gradle plugin bug substituting GeckoView. r=agi,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D88501
2020-08-28 16:51:52 +00:00
Cosmin Sabou
2a9db10f24 Backed out 7 changesets (bug 1518999) for causing browsertime failures. CLOSED TREE
Backed out changeset d93cb254eef5 (bug 1518999)
Backed out changeset a9715e73e862 (bug 1518999)
Backed out changeset e28081d16e3c (bug 1518999)
Backed out changeset c9d88f3f1f5b (bug 1518999)
Backed out changeset 9836adcc4e83 (bug 1518999)
Backed out changeset 9f01755d327f (bug 1518999)
Backed out changeset ef494065b8e2 (bug 1518999)
2020-08-28 06:27:11 +03:00
Sean Feng
fb465be325 Bug 1518999 - Trick contentful detection in some geckoview tests r=snorp,geckoview-reviewers,agi
Some geckoview tests require gradient usage. Since background
images are async, these tests would wait for a contentful paint
to make sure the images are decoded before running the assertions.
This causes an issue because gradient-only backgrounds aren't
contentful anymore according to the latest spec.

We fix the tests by adding a transparent gif to the background
image list to trick the contentful detection.

Differential Revision: https://phabricator.services.mozilla.com/D88230
2020-08-27 14:49:57 +00:00
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
Nick Alexander
22467b70a7 Bug 1661158 - Include hash of JVM inputs when working around Android-Gradle plugin bug substituting GeckoView. r=agi,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D88220
2020-08-26 14:43:45 +00:00
James Willcox
4b79e3e88e Bug 1661105 - Don't use onTouchEventForResult() inside onTouchEvent() in GeckoView r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D88180
2020-08-25 20:43:31 +00:00
Agi Sferro
26fc2c0843 Bug 1649494 - Don't assume a notification has a URL. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D88165
2020-08-25 17:49:31 +00:00
Emilio Cobos Álvarez
044b3c4332 Bug 1636728 - Centralize printing entry points in nsGlobalWindowOuter, and move cloning out of nsPrintJob. r=jwatt,geckoview-reviewers,smaug,agi
This centralizes our print and preview setup in nsGlobalWindowOuter so
that we never re-clone a clone, and so that we reuse the window.open()
codepath to create the browsing context to clone into.

For window.print, for both old print dialog / silent printing and new
print preview UI, we now create a hidden browser (as in with visibility:
collapse, which takes no space but still gets a layout box).

 * In the modern UI case, this browser is swapped with the actual print
   preview clone, and the UI takes care of removing the browser.

 * In the print dialog / silent printing case, the printing code calls
   window.close() from nsDocumentViewer::OnDonePrinting().

 * We don't need to care about the old print preview UI for this case
   because it can't be open from window.print().

We need to fall back to an actual window when there's no
nsIBrowserDOMWindow around for WPT print tests and the like, which don't
have one. That seems fine, we could special-case this code path more if
needed but it doesn't seem worth it.

Differential Revision: https://phabricator.services.mozilla.com/D87063
2020-08-25 17:45:12 +00:00
Tomislav Jovanovic
ccc7783ad3 Bug 1636508 - Make tabs.captureTab compatible with Fission r=mattwoodrow,robwu,geckoview-reviewers,agi
Also fix WindowGlobalParent.drawSnapshot() to render the currently visible
viewport when called with a null rect, and clarify the webidl comment.

Differential Revision: https://phabricator.services.mozilla.com/D87971
2020-08-25 11:30:52 +00:00
Ricky Stewart
f5328d27ba Bug 1659756 - Move MOZ_USE_NATIVE_POPUP_WINDOWS from old-configure to Python configure r=geckoview-reviewers,mhentges,agi,froydnj,glandium
Differential Revision: https://phabricator.services.mozilla.com/D87462
2020-08-21 22:48:09 +00:00
Nick Alexander
851257343a Bug 1626336 - Remove MOZ_GECKOVIEW_JAR. r=agi,geckoview-reviewers
While we're here we remove some Gradle Fennec-isms that are no longer
needed.

Differential Revision: https://phabricator.services.mozilla.com/D87334
2020-08-24 18:13:49 +00:00
James Willcox
02dffea93c Bug 1660357 - Disable PanZoomControllerTest.touchEventForResult for intermittents r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D88045
2020-08-24 17:07:32 +00:00
Nick Alexander
84b295af03 Bug 1627796 - Work around Android-Gradle plugin bug causing startup crash when substituting GeckoView. r=agi,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D87551
2020-08-24 17:13:54 +00:00
James Willcox
d8817b722b Bug 1633322 - Consider content handling for onTouchEventForResult r=geckoview-reviewers,botond,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D86384
2020-08-20 20:40:51 +00:00
Agi Sferro
fcb9b12423 Bug 1634504 - Remove deprecated registerWebExtension. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D87512
2020-08-20 01:15:00 +00:00
Bogdan Tara
6d322bffe4 Backed out 5 changesets (bug 1633322, bug 1634504) for touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset 3f866663b0aa (bug 1634504)
Backed out changeset 953d128f4c51 (bug 1633322)
Backed out changeset 84454fa520be (bug 1633322)
Backed out changeset 1aa6be497177 (bug 1633322)
Backed out changeset 9be548b05e86 (bug 1633322)
2020-08-20 03:01:02 +03:00
Agi Sferro
b5e6b3f840 Bug 1634504 - Remove deprecated registerWebExtension. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D87512
2020-08-19 22:59:22 +00:00
James Willcox
1ea4dc253d Bug 1633322 - Consider content handling for onTouchEventForResult r=geckoview-reviewers,botond,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D86384
2020-08-19 21:31:46 +00:00
Agi Sferro
52adf9f9c4 Bug 1659553 - Define charset in all mobile html tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D87340
2020-08-19 16:20:23 +00:00
Jamie Nicol
456abf2772 Bug 1647797 - Add geckoview-junit tests for onPaintStatusReset. r=agi,geckoview-reviewers
Add test paintStatusReset() to ContentDelegateTest, which asserts that
onPaintStatusReset() is called after GeckoSession.setActive(false).

Add test capturePixelsSessionDeactivatedActivated() to ScreenshotTest, which
asserts that capturePixels() is successful if called when the session is
deactivated then reactivated, after waiting for the onPaintStatusReset() and
onFirstContentfulPaint() callbacks.

Differential Revision: https://phabricator.services.mozilla.com/D87463
2020-08-19 15:25:26 +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
Emilio Cobos Álvarez
f04cda9679 Bug 1602410 - Make window.print() work with tab-modal printing. r=nika,geckoview-reviewers,agi
Do this by spinning the event loop until we've done the clone for
preview as appropriate.

This should be much less risky than finishing the previous patches
which would still be nice, but realistically landing them for 81 is not
going to happen.

This just returns without doing nothing in a couple cases, like when
there's already another modal dialog or such. That seems acceptable to
me, it's not clear what better way to do would be.

Differential Revision: https://phabricator.services.mozilla.com/D87484
2020-08-19 09:27:18 +00:00