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

31738 Коммитов

Автор SHA1 Сообщение Дата
Cathy Lu 6715c36d52 Bug 1815310 - Support persistent events for mobile tabs API r=extension-reviewers,robwu,amejiamarmol,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D172746
2023-03-28 21:25:05 +00:00
Calixte fefd92b8e9 Bug 1824610 - EMSification of pdf.js r=Standard8,pdfjs-reviewers,geckoview-reviewers,marco,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173674
2023-03-28 09:18:58 +00:00
Sandor Molnar fa2ae22888 Backed out 2 changesets (bug 1824473) for causing failures in browser/extensions/formautofill/test/<...>.js
Backed out changeset 01046e78078c (bug 1824473)
Backed out changeset 4203fbb8f229 (bug 1824473)
2023-03-27 22:44:33 +03:00
Stephanie Cunnane d31dfc03b2 Bug 1824473 - Update consumers of toolkit/components/formautofill to import ES modules directly. r=Standard8,geckoview-reviewers,credential-management-reviewers,sgalich,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173587
2023-03-27 18:12:17 +00:00
Makoto Kato cf3b888238 Bug 1820567 - Add more annotations for GeckoSessionSettings. r=geckoview-reviewers,calu,owlish
Add more annotations for GeckoSessionSettings API to reduce document
warning and etc.

Differential Revision: https://phabricator.services.mozilla.com/D171835
2023-03-27 12:31:12 +00:00
Butkovits Atila a720480444 Backed out changeset e45c47334c6c (bug 1815015) for causing failures at test_transformed_scrolling_repaints_3.html. CLOSED TREE 2023-03-23 22:17:42 +02:00
kycn cd41e64152 Bug 1815015 - Set the browser's activeness to false by default at the time of creation. r=geckoview-reviewers,jonalmeida
By means of setting the browser's initial activeness to false, a newly created background tab will
no longer have an active browsing context which reduces its cpu consumption while it is not selected.
The setTimeout callback is going to be throttled when the tab is created in the background by the
help of this fix.

Differential Revision: https://phabricator.services.mozilla.com/D173320
2023-03-23 19:13:40 +00:00
owlishDeveloper 6fc2f6d533 Bug 1806179 - Add tests for the cookie banner events API r=geckoview-reviewers,m_kato,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D172854
2023-03-23 17:05:27 +00:00
Olivia Hall deb5792960 Bug 1803600 - Android Geolocation High Accuracy Timeout r=geckoview-reviewers,m_kato
In Bug 1765835, some adjustments were made to improve high accuracy on
Android. One of those changes made Android to always pull a new location
and not use a “last known location” on high accuracy requests. It seems
on some devices, require a new location can lead to long timeouts.
This bug reverts that change back to the prior behavior.
(High location is still improved because part of the issue in the other
bug was a Gecko callback not occurring.)

Differential Revision: https://phabricator.services.mozilla.com/D173212
2023-03-23 13:06:18 +00:00
Makoto Kato 8eccde2927 Bug 1821004 - Add summary.java-heap memory report. r=geckoview-reviewers,owlish
Android's memory profiler can show current java-heap size. Android M+
can get this usages from API. So this fix adds this entry to
about:memory.

Differential Revision: https://phabricator.services.mozilla.com/D172211
2023-03-22 12:31:46 +00:00
Makoto Kato cda1a13b1c Bug 1819109 - Remove snav.enabled. r=masayuki,geckoview-reviewers,emilio,owlish
Although we have removed Spatial navigation by bug 1341737, we still touch
`snav.enabled`. Let's remove it.

Differential Revision: https://phabricator.services.mozilla.com/D172390
2023-03-22 02:40:53 +00:00
az 02a8ca6f31 Bug 1822932 - Add utility functions to distinguish between SW/HW codec support on Android r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D166239
2023-03-20 23:17:47 +00:00
Makoto Kato d0d41ac35f Bug 1822792 - Convert ModuleManager's resouces to ESM. r=geckoview-reviewers,extension-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D172781
2023-03-17 06:34:35 +00:00
Makoto Kato 1edefc131e Bug 1673068 - Get rid of nsILoadURIDelegate.loadURI. r=smaug,geckoview-reviewers,owlish
`nsILoadURIDelegate.loadURI` seems to be unused now.

Differential Revision: https://phabricator.services.mozilla.com/D172392
2023-03-17 01:41:50 +00:00
Ankit Anand b00dd8d6e0 Bug 1789218 - Dangerous Flag Constant Declaration in SelectionActionDelegate. r=m_kato,geckoview-reviewers
Changed flag constant declaration to use shift operator rather than
simple assignment as per the coding conventions.

Differential Revision: https://phabricator.services.mozilla.com/D172818
2023-03-17 01:41:08 +00:00
John Schanck f40aea4a99 Bug 1813982 - XPCOM interface to authenticator-rs. r=keeler,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D171269
2023-03-16 21:42:21 +00:00
Eitan Isaacson 07ecb9af4d Bug 1822205 - collectionItemInfo.rowIndex should be 0 based in Android. r=Jamie,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D172504
2023-03-15 22:09:32 +00:00
Eitan Isaacson f98e3aa593 Bug 1817592 - Do not match and ignore subtrees on list items in android nav. r=Jamie,geckoview-reviewers,m_kato
We did this to give more semantic information when swiping through
read-only list items. This doesn't work when there are actionable
children in the list item. Chrome never navigates by list items, so we
shouldn't bother to either.

Differential Revision: https://phabricator.services.mozilla.com/D172503
2023-03-15 22:09:31 +00:00
Nika Layzell 0acdb79a3f Bug 1810619 - Part 2: Get the content window from client.openWindow on geckoview, r=geckoview-reviewers,m_kato
While writing part 1 of this patch, I noticed that the geckoview code
for client.openWindow was returning the outer chrome window's
BrowsingContext rather than the BrowsingContext of the primary content
frame when opening a pop-up window. This meant that the native code
would fail to start navigating the pop-up window (as it would try to
navigate the chrome window which is not allowed).

It turns out the tests were still passing because the geckoview code was
actually starting the load itself, though with the wrong options and
properties. In this patch I remove that call to load a URI from the Java
code, and fix the code in ClientOpenWindowUtils to return the content
BrowsingContext instead of the chrome one.

Differential Revision: https://phabricator.services.mozilla.com/D171756
2023-03-15 21:57:04 +00:00
Nika Layzell d564908035 Bug 1810619 - Part 1: Be more precise in named lookup code, r=smaug,geckoview-reviewers,m_kato
This makes various changes to the named lookup/navigation code to make
them more precise, and avoid issues which could happen if a window is
closed while script is still executing.

This also should improve handling for inactive windows in some cases, by
more frequently working off of the WindowContext tree rather than the
BrowsingContext tree.

As part of these changes, some behaviour was changed around e.g. the
file URI exception to avoid the deprecated nsIPrincipal::GetURI method.
I don't believe the behaviour should have changed in a meaningful way.

Differential Revision: https://phabricator.services.mozilla.com/D171755
2023-03-15 21:57:03 +00:00
Olivia Hall 41785a703d Bug 1659818 - Android window.print Implemented for Nightly r=emilio,m_kato,geckoview-reviewers
This bug implements and opens window.print() for Android in Nightly.
Adds "GeckoView:DotPrintRequest" and "GeckoView:DotPrintFinish" events.
GeckoView:DotPrintRequest requests a PDF of the current window.print
page for Android to print. GeckoView:DotPrintFinish releases the static
browser clone created by window.print. PDF generation was additionally
adjusted to get the expected canonical browser context when printing
iframes.

Differential Revision: https://phabricator.services.mozilla.com/D171159
2023-03-15 21:23:12 +00:00
Mike Hommey 63bff39aa5 Bug 1820947 - Don't enable valgrind support in Android ASan builds. r=decoder
I think the flag was cargo-culted from the linux builds, but only worked
kind of accidentally: the Android NDK doesn't provide the valgrind
header, but as we weren't using a sysroot, we ended up picking the
system one, which kinda sorta works ok. Unfortunately, now that we are
switching to using a sysroot, the valgrind header can't be picked that
way anymore. I don't think this has an impact on ASan itself.

Differential Revision: https://phabricator.services.mozilla.com/D172507
2023-03-15 20:30:01 +00:00
Nika Layzell e61507c3a3 Bug 1818305 - Part 1: Add a streamStatus method to nsIOutputStream, r=necko-reviewers,geckoview-reviewers,jesup,emilio,m_kato,devtools-reviewers
This new method can be used to check if the nsIOutputStream has been
closed without having data available to write. It should avoid blocking
to discover this information.

Differential Revision: https://phabricator.services.mozilla.com/D170696
2023-03-15 19:52:33 +00:00
Makoto Kato 86ff1beda0 Bug 1817924 - Use Window manager coordinate for text selection menu on Android 11+. r=geckoview-reviewers,owlish
When using split window, the position of selection context menu is
strange position.

When on Android 11+, it has independent window manager per split
window, `onGetContentRect` of `ActionMode.Callback2` seems to use this
coordinates, instead of screen coordinate.

So we should consider this situation.

Also, our CI has no Android 11+ and no way to set split window, so I
cannot add unit test for it.

Differential Revision: https://phabricator.services.mozilla.com/D170472
2023-03-14 09:00:13 +00:00
Cristian Tuns 2af0d81d29 Backed out 2 changesets (bug 1810619) for causing wd failures in dom_content_loaded.py CLOSED TREE
Backed out changeset 81d6ef111d4f (bug 1810619)
Backed out changeset 637be53c4d27 (bug 1810619)
2023-03-09 01:22:56 -05:00
Nika Layzell 6cef75877a Bug 1810619 - Part 2: Get the content window from client.openWindow on geckoview, r=geckoview-reviewers,m_kato
While writing part 1 of this patch, I noticed that the geckoview code
for client.openWindow was returning the outer chrome window's
BrowsingContext rather than the BrowsingContext of the primary content
frame when opening a pop-up window. This meant that the native code
would fail to start navigating the pop-up window (as it would try to
navigate the chrome window which is not allowed).

It turns out the tests were still passing because the geckoview code was
actually starting the load itself, though with the wrong options and
properties. In this patch I remove that call to load a URI from the Java
code, and fix the code in ClientOpenWindowUtils to return the content
BrowsingContext instead of the chrome one.

Depends on D171755

Differential Revision: https://phabricator.services.mozilla.com/D171756
2023-03-08 21:09:21 +00:00
Nika Layzell eece505eef Bug 1810619 - Part 1: Be more precise in named lookup code, r=smaug,geckoview-reviewers,m_kato
This makes various changes to the named lookup/navigation code to make
them more precise, and avoid issues which could happen if a window is
closed while script is still executing.

This also should improve handling for inactive windows in some cases, by
more frequently working off of the WindowContext tree rather than the
BrowsingContext tree.

As part of these changes, some behaviour was changed around e.g. the
file URI exception to avoid the deprecated nsIPrincipal::GetURI method.
I don't believe the behaviour should have changed in a meaningful way.

Differential Revision: https://phabricator.services.mozilla.com/D171755
2023-03-08 21:09:20 +00:00
Olivia Hall f960ebd985 Bug 1812692 - TextInputDelegateTest Timeouts r=m_kato,geckoview-reviewers
Reducing the number of characters in the TextInputDelegateTest content
large test prevents timeouts from occurring when using UIAutomator.
UIAutomator tests will be reactivated in bug 1659818.

Differential Revision: https://phabricator.services.mozilla.com/D171899
2023-03-08 14:10:43 +00:00
John Lin f893685c3c Bug 1778393 - allow 10-bit video on Android. r=azebrowski,geckoview-reviewers,m_kato
Depends on D164723

Differential Revision: https://phabricator.services.mozilla.com/D164724
2023-03-07 22:16:51 +00:00
John Lin e4e830571f Bug 1778393 - show HW decoder profile/level support info. r=azebrowski,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D164723
2023-03-07 22:16:50 +00:00
Makoto Kato bab57b5d5c Bug 1815830 - Remove deprecated Autofill.Node.getDimensions. r=geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D171302
2023-03-03 10:48:39 +00:00
Luca Greco b14d9e44e8 Bug 1815688 - Fix typo and add explicit descriptions to GeckoView mochitest test_ext_tabs_insertCSS.html. r=willdurand,geckoview-reviewers,m_kato
Depends on D166461

Differential Revision: https://phabricator.services.mozilla.com/D169199
2023-03-02 12:17:05 +00:00
Mark Banner 6044092bf9 Bug 1819597 - Convert security to ES modules. r=keeler,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D171333
2023-03-02 07:54:35 +00:00
Makoto Kato 8eaf133428 Bug 1819494 - Add functional test for GeckoSessionSettings.setDisplayMode. r=geckoview-reviewers,owlish
There is no tests for display mode with web content. So we should add
it.

Differential Revision: https://phabricator.services.mozilla.com/D171298
2023-03-02 04:22:56 +00:00
Makoto Kato 263e20dd87 Bug 1527022 - Pass AccessibilityTest on Android 11 or early. r=eeejay,geckoview-reviewers,owlish
When getting virtual ID of a11y tree, we use internal method via
reflection. But `AccessibilityNodeInfo.getChildId` is hidden now.

As workaround, since `mChildNodeIds` is still `@UnsupportedAppUsage`,
we can use it to get child node id.

This has another fix. Clipboard access requires foreground on Android 10+.
So we have to set window foucs when using clipboard.

Also, `AccessibilityTest` won't work on Android 12 since more methods
seem to be hidden from Android 12.
(by `@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R)`).

Differential Revision: https://phabricator.services.mozilla.com/D170550
2023-03-02 03:15:43 +00:00
Gijs Kruitbosch b02604d95a Bug 1819728 - make E10sUtils.getRemoteURIObject easier to use when passing a subset of options, r=nika,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D170923
2023-03-01 21:29:53 +00:00
Makoto Kato 051c921a72 Bug 1813573 - Part 2. Restart vsync when refresh rate is changed. r=geckoview-reviewers,owlish
When refresh rate is changed, `DisplayListener` is called. So we restart vsync
when refresh rate may be changed.

Differential Revision: https://phabricator.services.mozilla.com/D168666
2023-03-01 03:12:32 +00:00
Hiroyuki Ikezoe 9d1e021d6b Bug 1762255 - Convert MobileViewport intrinric size to app units and use it in the comparison. r=botond,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D169288
2023-02-28 02:54:05 +00:00
owlishDeveloper a2d875255c Bug 1806740 - Add API to expose hasRuleForBrowsingContext r=geckoview-reviewers,amejiamarmol,calu
Differential Revision: https://phabricator.services.mozilla.com/D167890
2023-02-28 00:00:06 +00:00
Calixte 7e593130e6 Bug 1810106 - Enable pdf.js by default in GeckoView r=marco,geckoview-reviewers,ohall,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D171088
2023-02-27 17:49:55 +00:00
Iulian Moraru cccc83c1cd Backed out changeset 7a0e9a32199b (bug 1806740) for causing gv-junit failures. CLOSED TREE 2023-02-27 20:47:05 +02:00
owlishDeveloper 3bb59795be Bug 1806740 - Add API to expose hasRuleForBrowsingContext r=geckoview-reviewers,amejiamarmol,calu
Differential Revision: https://phabricator.services.mozilla.com/D167890
2023-02-27 17:25:10 +00:00
Mathew Hodson 9e8aaaf74e Bug 1818579 - Move Storage API pref to StaticPrefList.yaml on Android. r=geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D170843
2023-02-27 12:34:27 +00:00
Makoto Kato aa3ccd258b Bug 1618885 - Remove unused is_fennec. r=jmaher,geckoview-reviewers,extension-reviewers,credential-management-reviewers,sgalich,robwu,calu
is_fennec is unused now, let's remove it.

Differential Revision: https://phabricator.services.mozilla.com/D170849
2023-02-27 01:44:18 +00:00
Cristian Tuns 3e4ccaf3f0 Backed out changeset e3c8167a7df6 (bug 1806740) for causing gv-junit-nofis failures in GeckoSessionTestRuleTest#checkCookieBannerRuleForSession CLOSED TREE 2023-02-24 15:54:31 -05:00
owlishDeveloper 87659a6ea2 Bug 1806740 - Add API to expose hasRuleForBrowsingContext r=geckoview-reviewers,amejiamarmol,calu
Differential Revision: https://phabricator.services.mozilla.com/D167890
2023-02-24 19:13:41 +00:00
Hiroyuki Ikezoe 98ea9b2281 Bug 1663444 - Expand the clip rect for async zoom container including the dynamic toolbar area. r=geckoview-reviewers,owlish,botond
Differential Revision: https://phabricator.services.mozilla.com/D168638
2023-02-23 00:05:09 +00:00
Roger Yang 6f6189d4d0 Bug 1809269 - Add bypass load URI delegate in load flags. r=jonalmeida,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D169865
2023-02-22 21:10:53 +00:00
Arturo Mejia 7e62be4d03 Bug 1801615 - Remove GeckoSession.SelectionActionDelegate.Selection.clientRect r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D170259
2023-02-22 01:39:28 +00:00
Emilio Cobos Álvarez 627efca14c Bug 1817381 - Remove DOMWindowUtils.fullZoom. r=jfkthame,layout-reviewers,extension-reviewers,rpl,geckoview-reviewers,m_kato
Callers just want the actual full zoom, not the one including the OS
text-scale.

Android doesn't have OS zoom to begin with, so this can't change
behavior, but the desktop caller passes the usual full zoom here[1], so
we're making the behavior match.

[1]: https://searchfox.org/mozilla-central/rev/9de332d5c8faac58dc1232b8a6383ce6cb1400f4/browser/components/extensions/parent/ext-tabs.js#1011

Depends on D170196

Differential Revision: https://phabricator.services.mozilla.com/D170197
2023-02-21 17:24:00 +00:00