Commit Graph

24340 Commits

Author SHA1 Message Date
Karan Sapolia
3cb0a39af4 Bug 1553237 - Simplify nsISearchService.addEngineWithDetails to one signature. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D34709

--HG--
extra : moz-landing-system : lando
2019-06-13 20:35:23 +00:00
Petru Lingurar
efebb8836e Bug 1550291 - Ensure we save CRASHED status to be able to restore previous tabs; r=AndreiLazar
Default app behavior for when a crash occurs involves starting an Activity that
lets users submit a crash report and maybe provide additional info.
In the event of a crash we want to restore for the user all previous tabs, this
Activity being the component that saves the CRASHED status that will trigger
the restore process.

On Android Q, when a crash notification is posted but ignored by the user, upon
starting the app would not know it crashed and it would not try restoring tabs.
Executing the "save CRASHED status" logic whenever a crash occurs, irrespective
of if we'll show the Activity or just post a notification ensures users will
always have their previous tabs restored.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 13:26:57 +00:00
Eugen Sawin
81dd9a3a64 Bug 1559084 - [1.0] Fix wrong nsIClearDataService constant name for clearing push notifications. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D34859

--HG--
extra : moz-landing-system : lando
2019-06-13 11:17:20 +00:00
Peter Van der Beken
8b00dd9ff2 Bug 1490044 - Move all prefs used in WebIDL to StaticPrefs. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D33507

--HG--
extra : moz-landing-system : lando
2019-06-13 09:00:59 +00:00
Andrei Lazar
03013c9df0 Bug 1551458 Back button won't go back in history (Pixel 3 XL(Android 9)) r=VladBaicu
Created an exception in the key event suppression mechanism for the back button KEYCODE.

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

--HG--
extra : moz-landing-system : lando
2019-06-12 10:36:01 +00:00
Ehsan Akhgari
caea64f895 Bug 1557872 - Add a new JS module for manipulating the Content Blocking allow list; r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D34355

--HG--
extra : source : 832579daee7c9e328d220611ab8929a1a4cf150b
2019-06-11 22:28:31 +00:00
Dorel Luca
ddbbed33a8 Backed out changeset 832579daee7c (bug 1557872) for Browser-chrome failures in browser/components/contextualidentity/test/browser/browser_aboutURLs.js. CLOSED TREE 2019-06-12 10:06:21 +03:00
Ehsan Akhgari
19f96d0e2a Bug 1557872 - Add a new JS module for manipulating the Content Blocking allow list; r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D34355

--HG--
extra : moz-landing-system : lando
2019-06-11 22:28:31 +00:00
Boris Zbarsky
9de72a3ac6 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196

--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
Mihai Alexandru Michis
bbc8c51513 Backed out changeset 975fec3b327c (bug 1557872) for causing bc failures in browser_trackingUI_pbmode_exceptions.js CLOSED TREE 2019-06-11 19:43:07 +03:00
Ehsan Akhgari
2945c907d7 Bug 1557872 - Add a new JS module for manipulating the Content Blocking allow list; r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D34355

--HG--
extra : moz-landing-system : lando
2019-06-11 14:42:58 +00:00
Jonathan Kingston
3dd41f32a1 Bug 1557035 - Changing android hardcoded system principal session to fix tests. r=JanH
Differential Revision: https://phabricator.services.mozilla.com/D33930

--HG--
extra : moz-landing-system : lando
2019-06-07 15:42:29 +00:00
Cosmin Sabou
22bf0df6b7 Bug 1535423 - Fix Android bustages. r=bustage-fix
--HG--
extra : rebase_source : 890c775f4e8081440c04113665d4318678e17f98
2019-06-11 01:52:01 +03:00
Andreea Pavel
9ba5553f62 Bug 1535423 - Disable PromptDelegateTest for frequent failures. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D34348

--HG--
extra : moz-landing-system : lando
2019-06-10 22:15:38 +00:00
Agi Sferro
a641bc8da0 Bug 1554260 - Send WebExtension Page messages to GeckoSession. r=snorp
WebExtension pages introduce a case that was previously not possible: a script
with full WebExtension privileges that runs on a page with a GeckoSession
associated to it.

This breaks the assumption that all messages from a privileged context don't
have a GeckoSession associated to it. We fix this by checking if we can find an
eventDispatcher for the given window.

This also fixes the test which had the same wrong assumption.

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

--HG--
extra : moz-landing-system : lando
2019-06-10 20:09:25 +00:00
Petru Lingurar
70755e0b8c Bug 1550291 - Android Q: Use the overlay permission or a foreground notification to start the crash handler; r=VladBaicu
Android Q doesn't allow starting Activities from background.
https://developer.android.com/preview/privacy/background-activity-starts

We can either piggy-back the SYSTEM_ALERT_WINDOW permission given by the user
for the Tab Queue functionality or use a foreground notification from where
users could start `CrashReporterActivity`.

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

--HG--
extra : moz-landing-system : lando
2019-06-10 15:52:58 +00:00
Petru Lingurar
c9f1eb41c0 Bug 1550291 - Add new "Crash handler" notification channel; r=JanH
Differential Revision: https://phabricator.services.mozilla.com/D33028

--HG--
extra : moz-landing-system : lando
2019-06-07 08:01:46 +00:00
Boris Zbarsky
5eb248348f Bug 1557847. Stop using [array] in nsIClipboard. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D34243

--HG--
extra : moz-landing-system : lando
2019-06-09 01:06:39 +00:00
Cosmin Sabou
fc860d4bca Bug 1555662 - Follow-up: change 'l10n-registry.js' to 'l10n-registry.manifest'. r=John-Galt,gandalf
--HG--
extra : amend_source : 48cb36ee88ba34cf1ce0d137fe06a31e13035e36
2019-06-09 00:34:53 +03:00
Nicklas Boman
f293246462 Bug 1519365 - Update object property names that get passed to loadURIOptions to match the names in loadURIOptions r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D31729

--HG--
extra : moz-landing-system : lando
2019-06-08 11:04:27 +00:00
Zibi Braniecki
b4932e4709 Bug 1555662 - Register L10nRegistry sources using categories. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D34227

--HG--
extra : moz-landing-system : lando
2019-06-08 04:37:31 +00:00
Andreea Pavel
ab7673faaa Backed out 2 changesets (bug 1555662) for multiple bc failures e.g browser_panelUINotifications_multiWindow.js on a CLOSED TREE
Backed out changeset 84c57f9dda5b (bug 1555662)
Backed out changeset ede8b931ee0d (bug 1555662)
2019-06-08 03:25:28 +03:00
Zibi Braniecki
6ca89e400f Bug 1555662 - Register L10nRegistry sources using categories. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D34227

--HG--
extra : moz-landing-system : lando
2019-06-07 20:11:00 +00:00
Alvina Waseem
e40d11acc6 Bug 1533575 - Simplified GeckoSession.MediaSource.Source constants. r=droeh,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D34010

--HG--
extra : moz-landing-system : lando
2019-06-07 18:33:34 +00:00
Csoregi Natalia
f54d8331b9 Merge autoland to mozilla-central. a=merge 2019-06-07 00:51:26 +03:00
Csoregi Natalia
db63d343f2 Backed out changeset d637ee5ceb51 (bug 1552145) as per request. a=backout 2019-06-07 00:45:43 +03:00
shindli
3caa33a7ea Merge inbound to mozilla-central. a=merge 2019-06-06 12:57:52 +03:00
Andrei Teslovan
4d74397909 Bug 1556382 - Reset error message for "Find in page" after dismiss; r=VladBaicu
Differential Revision: https://phabricator.services.mozilla.com/D33934

--HG--
extra : moz-landing-system : lando
2019-06-06 11:57:23 +00:00
Andrei Teslovan
fdbd67ec21 Bug 1270535 - Add "undo" action when bookmark is edited or removed; r=petru
Differential Revision: https://phabricator.services.mozilla.com/D32308

--HG--
extra : moz-landing-system : lando
2019-06-06 08:50:30 +00:00
Petru Lingurar
834812f141 Bug 1557203 - AndroidQ has final APIs. Update the feature29Plus check; r=VladBaicu
With Beta4 AndroidQ now ships with final APIs so the previous check we used,
VERSION.CODENAME now returns REL instead of Q.
But final APIs means AndroidQ will not share API level 28 with AndroidP anymore
so we can finally check for Build.VERSION.SDK_INT.

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

--HG--
extra : moz-landing-system : lando
2019-06-06 11:56:02 +00:00
arthur.iakab
94d096ca36 Merge mozilla-central to mozilla-inbound 2019-06-06 01:06:38 +03:00
Alessio Placitelli
77991a7553 Bug 1547331 - Don't initialize legacy telemetry in GeckoView. r=chutten,kmag
This changes the registration code so that categories are
still registered in the manifest (and thus not registered
in GeckoView), but the component is still always shipped.

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

--HG--
extra : moz-landing-system : lando
2019-06-05 11:03:57 +00:00
Mihai Alexandru Michis
c70fbfe90e Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-06-05 18:56:22 +03:00
Mihai Alexandru Michis
d07d090c31 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-06-05 12:59:10 +03:00
Chris Pearce
0ebe8e14ac Bug 1552145 - Change HLS seek to seek before seek target and drop frames until next keyframe. r=jya
The Java ExoPlayer that we use for HLS support on Android does an accurate
seek, that is, it seeks to the frame at the seek target. This may not be a
keyframe, which we can start decoding at. So change the HLS seek to seek 2
seconds behind the seek target, and drop all frames up to the next keyframe.
This means that after a seek the HLSDemuxer will output a keyframe, and
hopefully (but we can't guarantee of course) it will lie behind the actual seek
target.

We also need to purge the GeckoHlsVideoRenderer's queue of frames which it
is holding onto in order to determine their durations, otherwise after a seek,
we'll get output from this queue of frames. That is, after a seek we would still
get a few frames from the old playback position.

This seek case is particularly problematic as we aggressively shutdown decoders
when the media is paused, including right after the load reaches
loadedmetadata, and we need to seek in order to recover from going dormant.

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

--HG--
extra : moz-landing-system : lando
2019-06-04 22:20:49 +00:00
Makoto Kato
fc2204cf13 Bug 1556617 - Remove old mozilla.widget.* prefs from GV. r=geckoview-reviewers,esawin
`mozilla.widget.*` was used by old Fennec (Maemo/GTK2). But Android widget doesn't reference this.

### `mozilla.widget.disable-native-theme`

This preference is unused on Android widget. This is for GTK and Windows.  Reftests on Android are disabled by `layout/reftests/reftest.list`.

### `mozilla.widget.force-24bpp`

This is unused on Android. This is GTK only.

### `mozilla.widget.use-buffer-pixmap`

No one uses this preference.

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

--HG--
extra : moz-landing-system : lando
2019-06-04 14:50:27 +00:00
Will Hawkins
c5c101d201 Bug 894567: Use MemoryInfo.totalMem to get the device's total memory rather than parse /proc/meminfo. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D33549

--HG--
extra : moz-landing-system : lando
2019-06-04 19:41:06 +00:00
Gurzau Raul
e64337e9ea Bug 1556667 - disabled testSessionFilePreservation on Android 4.3 r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D33627

--HG--
extra : moz-landing-system : lando
2019-06-04 15:35:18 +00:00
Gurzau Raul
7f5536bfd0 Backed out changeset 05f1a2a0ad69 (bug 1508939) for having the wrong bug number.
--HG--
extra : rebase_source : be531ad6f9b4a545faaf5a69b4d6b92f6028ece0
2019-06-04 18:25:04 +03:00
Gurzau Raul
64e224ad30 Bug 1508939 - disabled testSessionFilePreservation on Android 4.3 r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D33627

--HG--
extra : moz-landing-system : lando
2019-06-04 15:09:06 +00:00
Emily Toop
19e416d731 Bug 1500645 - Add tabs to GeckoViewExample. r=geckoview-reviewers,droeh
This gives the ability to open multiple tabs in GeckoViewExample and switch between them. It was decided to use a single `GeckoView` and use a session manager to hold the open sessions and switch the session attached to the `GeckoView` when switching between tabs. This was a more lightweight solution than trying to maintain several `GeckoView`s each with their own session.

1. Create concept of `TabSession` that tracks `GeckoSession`s and ties them with a specific URL and title.
2. Create `TabSessionManager` that takes responsibility for opening, closing and tracking sessions.
3. Update `GeckoViewActivity` to use the session manager to set the current session on the displaying `GeckoView`.
4. Add menu items for opening and closing new tabs.
5. Create new toolbar layout to include a tabs button for displaying open sessions and allowing the user to switch between them.

Possible follow up bug: add long press menu to links on web pages to allow them to be opened in new tabs.

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

--HG--
extra : moz-landing-system : lando
2019-06-04 14:05:50 +00:00
Daniel Varga
501dbfaa80 Bug 1532404 - Disable org.mozilla.geckoview.test.MediaElementTest.webmPlayMediaFromScript on pgo and debug for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D33128

--HG--
extra : moz-landing-system : lando
2019-06-04 13:24:33 +00:00
Cosmin Sabou
6f5f3a3079 Bug 1538430 - Disable org.mozilla.geckoview.test.RuntimeSettingsTest.automaticFontSize on Android pgo for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D33398

--HG--
extra : moz-landing-system : lando
2019-06-04 12:50:10 +00:00
John Lin
ea470ed33a Bug 1555691 - handle NPE during remote codec shutdown. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D33539

--HG--
extra : moz-landing-system : lando
2019-06-03 21:16:56 +00:00
Emilio Cobos Álvarez
b6728cedb7 Bug 1553769 - Have a single way of requesting window focus and switching to a tab. r=NeilDeakin,snorp
Right now there's some duplicated code with the focus manager and the
DOMWindowFocus event.

Android didn't handle the new framefocusrequested event, so the test-cases in
bug 416771 still didn't work there.

I think using the focus manager codepath everywhere is preferable. I confirmed
manually that the stuff that sent DOMWindowFocus events still works as expected
with this patch (i.e., switching to the right tab when you click on a
notification, etc.).

This fixes it so that it works in Fennec, and it sends the focus events right in
GeckoView Example (i.e., we get here[1] properly).

The snippet that Snorp provided on IRC to implement the "bring activity to
front" stuff (`startActivity(getIntent())`) didn't actually work for me, but I
confirmed that the right message is sent when the focus is requested, and that
we get there.

[1]: https://searchfox.org/mozilla-central/rev/952521e6164ddffa3f34bc8cfa5a81afc5b859c4/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java#503

Depends on D32353

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

--HG--
extra : moz-landing-system : lando
2019-06-03 19:42:28 +00:00
J.C. Jones
2b5a2efa96 Bug 1555425 - Enable Web Authentication in all Fennec Android channels r=cpeterson,KevinJacobs
Disable for Geckoview, but enable for Fennec.

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

--HG--
extra : moz-landing-system : lando
2019-06-03 17:51:57 +00:00
Csoregi Natalia
dd2213799a Bug 1554117 - Disabled org.mozilla.geckoview.test.MediaElementTest.oggPlayMediaFromScript for frequent failures. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D33414

--HG--
extra : moz-landing-system : lando
2019-06-02 01:26:28 +00:00
ksenia
301f85da17 Bug 1544359 - Fixed report site issue extension: added marfeel and mobify support, fixed labels being passed to the server r=twisniewski,Gijs
Fixed report site issue: added marfeel and mobify support, fixed labels being passed to the server

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

--HG--
rename : browser/extensions/report-site-issue/test/browser/fastclick2.html => browser/extensions/report-site-issue/test/browser/fastclick.html
rename : browser/extensions/report-site-issue/test/browser/fastclick1.html => browser/extensions/report-site-issue/test/browser/frameworks.html
extra : moz-landing-system : lando
2019-06-01 19:13:26 +00:00
Bogdan Tara
df8e17d093 Backed out changeset f34d86c242ae (bug 1554117) for MediaElementTest.kt related bustages CLOSED TREE 2019-06-01 20:13:51 +03:00
Cosmin Sabou
5c96fae7db Bug 1554117 - Disable org.mozilla.geckoview.test.MediaElementTest.oggPlayMediaFromScript on Android debug && pgo for frequent failures. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D33397

--HG--
extra : moz-landing-system : lando
2019-06-01 09:03:38 +00:00