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

26936 Коммитов

Автор SHA1 Сообщение Дата
Luca Greco 381c9f816c Bug 1489261 - Enable delayed background page startup on Android. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D5846

--HG--
extra : moz-landing-system : lando
2018-09-14 18:34:33 +00:00
Andreea Pavel 737bd284b4 Backed out changeset 52573727971b (bug 1449567) for braking android build bustages on a CLOSED TREE 2018-09-16 07:29:22 +03:00
Jim Chen 5055667930 Bug 1449567 - Don't reattach compositor for the same compositor object; r=snorp
If we're trying to detach and reattach the same compositor object for
whatever reason, we should skip it so we don't inadvertently end up not
attaching the object at all.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 16:25:26 +00:00
Hiroyuki Ikezoe d879a93c1d Bug 1478505 - Run test_mq_prefers_reduced_motion_dynamic.html on Android. r=jchen
To make the test work properly, there needs two functions.  One is just setting
a value for testing and sending the notificaiton for the value changes, the
other one is to reset the state for testing.

The test itself will be introduced in bug 1486971, especially in
https://phabricator.services.mozilla.com/D5004

Depends on D5503

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

--HG--
extra : moz-landing-system : lando
2018-09-15 10:05:37 +00:00
Hiroyuki Ikezoe 2948ca3af5 Bug 1478505 - Implement prefers-reduced-motion on Android. r=jchen
Depends on D5502

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

--HG--
extra : moz-landing-system : lando
2018-09-15 10:03:42 +00:00
Hiroyuki Ikezoe 670b9b1d28 Bug 1478505 - Rename GeckoInputDeviceListener to GeckoSystemStateListener. r=jchen
Because we are going to use it for prefers-reduced-motion media feature which
is tied to a system setting.

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

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoInputDeviceListener.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoSystemStateListener.java
rename : widget/android/GeckoInputDeviceListener.h => widget/android/GeckoSystemStateListener.h
extra : moz-landing-system : lando
2018-09-15 10:03:29 +00:00
Jim Chen f4ae63803a Bug 1490493 - 2. Add tests for GeckoView saving/restoring state; r=droeh
Add some tests for all scenarios that GeckoView encounters when it is
saving/restoring state.

Differential Revision: https://phabricator.services.mozilla.com/D5607
2018-09-14 14:47:25 -04:00
Jim Chen ba2897b9d9 Bug 1490493 - 1. Return early if same session is being restored; r=droeh
Restoring the same session that's already managed by the GeckoView
instance should be a no-op.

Differential Revision: https://phabricator.services.mozilla.com/D5606
2018-09-14 14:47:24 -04:00
Jim Chen 84e954756f Bug 1485810 - 2. Add GeckoViewAutoFill support in browser.js; r=petru
Make auto-fill work for the main Fennec activity by making calls to
GeckoViewAutoFill.

Differential Revision: https://phabricator.services.mozilla.com/D4804
2018-09-14 14:46:27 -04:00
Jim Chen c603332d5d Bug 1485810 - 1. Move auto-fill code to GeckoViewAutoFill.jsm; r=droeh
Move all auto-fill code to GeckoViewAutoFill.jsm, so they can be shared
between GeckoView and Fennec.

Differential Revision: https://phabricator.services.mozilla.com/D4803
2018-09-14 14:46:25 -04:00
Jan Henning 5f8503a563 Bug 1480854 - Use classic icons again on platforms prior to Oreo. r=jchen
We want to use the classic, non-adaptive icon again as our launcher icon on
Android versions prior to Oreo, as well as to continue using it in various
places within our app.

Unfortunately this means that we still have to provide duplicate resources for
those two purposes:
Because we don't want to use the adaptive icon internally, we can't use the same
resource directly for both internal usage and our launcher icon, because other-
wise on Oreo and above we'd receive the adaptive icon that way.
One possible workaround would have been to use the PNG files of our classic icon
directly as a drawable for internal useage and then create a differently named
XML bitmap for our launcher icon, which in turn would be overridden by the
adaptive icon on Oreo and above.
Unfortunately, modern usage demands that the launcher icon should be provided as
a mipmap resource, where XML bitmaps
- aren't officially supported
- unofficially work with some devices/launchers, but not all.

Therefore, our only choice is to provide separate drawables for our internal
icon and our launcher icon, even if prior to Android O both will have the same
contents. We'll also get rid of the separate round icon again, since
- on Android O and above, both round and non-round icons were using the same
  adaptive icon anyway
- prior to Android O our normal icon is already round enough, but not round
  enough to pass the lint check

--HG--
extra : rebase_source : 6c06c903f4fed2ef4aee3c5a915e18c437c5b510
extra : amend_source : ab3eab8e4dc2523a336aef2a4d2889ab7dbc76b9
extra : intermediate-source : 56f9803240157892066fa5b1703b8fe50c28020d
extra : source : 6183adcbfc9d81ab0cb854a4734a98f10a897d6b
2018-09-08 18:30:30 +02:00
Narcis Beleuzu 3d1a1f1883 Backed out changeset 56f980324015 (bug 1480854) for lint bustage. CLOSED TREE 2018-09-14 19:22:52 +03:00
Jan Henning 2bcbde60fe Bug 1480854 - Use classic icons again on platforms prior to Oreo. r=jchen
We want to use the classic, non-adaptive icon again as our launcher icon on
Android versions prior to Oreo, as well as to continue using it in various
places within our app.

Unfortunately this means that we still have to provide duplicate resources for
those two purposes:
Because we don't want to use the adaptive icon internally, we can't use the same
resource directly for both internal usage and our launcher icon, because other-
wise on Oreo and above we'd receive the adaptive icon that way.
One possible workaround would have been to use the PNG files of our classic icon
directly as a drawable for internal useage and then create a differently named
XML bitmap for our launcher icon, which in turn would be overridden by the
adaptive icon on Oreo and above.
Unfortunately, modern usage demands that the launcher icon should be provided as
a mipmap resource, where XML bitmaps
- aren't officially supported
- unofficially work with some devices/launchers, but not all.

Therefore, our only choice is to provide separate drawables for our internal
icon and our launcher icon, even if prior to Android O both will have the same
contents. We'll also get rid of the separate round icon again, since
- on Android O and above, both round and non-round icon were using the same
  adaptive icon anyway
- prior to Android O our normal icon is already round enough (ignoring the
  Fennec icon for local developer builds)

--HG--
extra : source : 6183adcbfc9d81ab0cb854a4734a98f10a897d6b
extra : amend_source : dc14ea076aafd9d24fd5ee7aebcf71348812942c
2018-09-08 18:30:30 +02:00
Andrei Lazar 403853306a Bug 1480852 Crash in android.os.TransactionTooLargeException: data parcel size 1053364 bytes at android.os.BinderProxy.transactNative(Native Method) r=jchen
Added an extra check of bundle size due to some unexpected transactions sizes that exceed the limit.
The bundle gets lighter if the size exceeds the limit by removing the views' state as a last resort.

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

--HG--
extra : moz-landing-system : lando
2018-09-14 11:24:33 +00:00
Noemi Erli c2716211ca Merge inbound to mozilla-central. a=merge 2018-09-14 06:31:31 +03:00
Timothy Guan-tin Chien 052ca9c390 Bug 1487143 - Properly dispatch MozAutoplayMediaBlocked event to content, r=alwu
The MozAutoplayMediaBlocked event should have its target set to the video
element, not the document.

Also, MozNoControlsBlockedVideo event has to initialized from the CustomEvent
constructor of the right window for the XBL binding to access it. I don't know
when it stopped working.

Test is added to ensure the entire UI won't break.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 21:21:11 +00:00
Noemi Erli a548d10a8c Merge inbound to mozilla-central. a=merge 2018-09-14 01:01:37 +03:00
Jim Chen 9a76b4da63 Bug 1480834 - 6. Add Android x86-64 configs; r=nalexander
Add config files for building Android for x86-64.

Differential Revision: https://phabricator.services.mozilla.com/D5603
2018-09-13 12:09:26 -04:00
Luca Greco 78b36687ad Bug 1486766 - Add installTelemetryInfo to distro addons installed on Firefox for Android. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D5559

--HG--
extra : moz-landing-system : lando
2018-09-13 15:40:07 +00:00
James Willcox 27d4ed2a44 Bug 1490664 - Fix Fennec build sans MOZ_CRASHREPORTER r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D5694

--HG--
extra : moz-landing-system : lando
2018-09-12 19:03:18 +00:00
Luca Greco 6056022481 Bug 1437864 - Implement userScripts API methods to allow an extension to inject custom APIs in the isolated userScripts sandboxes. r=zombie,mixedpuppy
MozReview-Commit-ID: 3GIFhnxMJVn

Depends on D4354

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

--HG--
extra : moz-landing-system : lando
2018-09-12 16:46:24 +00:00
Matt Brubeck 2e4fe088b6 Bug 1486552 - geckoview: Add GeckoRuntimeSettings.setLocale method. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D4794

--HG--
extra : rebase_source : e244ab1664cdd1053ab6b35a91c8fc9dd6cedec2
2018-08-31 11:33:29 -07:00
Noemi Erli e6319bab61 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-14 01:18:29 +03:00
Dylan Roeh b18b70dfcf Bug 1489257 - Backed out 3 changesets (bug 1441059, bug 1478171) for causing bug 1489257. r=me
Backed out changeset f7bd4f224f9a (bug 1441059)
Backed out changeset e66e6bd82e3f (bug 1441059)
Backed out changeset 94cfd6113ca7 (bug 1478171)
2018-09-13 12:27:23 -05:00
Bogdan Tara 766dc21298 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-09-12 06:28:42 +03:00
Bogdan Tara 3fc5bc9ad5 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-12 01:15:44 +03:00
Bogdan Tara 9c802a42f1 Backed out 4 changesets (bug 1437864, bug 1470466, bug 1437861) for Android xpcshell failures CLOSED TREE
Backed out changeset a6185abfc2f8 (bug 1470466)
Backed out changeset 82d60e34a977 (bug 1437864)
Backed out changeset 7634d9d14449 (bug 1437864)
Backed out changeset a92b6e069d7e (bug 1437861)
2018-09-12 00:57:00 +03:00
James Willcox 9c2f4d30ba Bug 1486778 - Move GeckoDisplay into org.mozilla.geckoview r=jchen,droeh
Summary:
This also moves GeckoDisplay-related things out of LayerSession
and into GeckoSession. Additionally, we try to make sure
GeckoSession has only one attached GeckoDisplay.

Reviewers: jchen, droeh

Tags: #secure-revision

Bug #: 1486778

Differential Revision: https://phabricator.services.mozilla.com/D4449
2018-09-11 12:04:10 -05:00
James Willcox e4cfe61ccc Bug 1482227 - Allow apps to specify product name in CrashReporter r=jchen
Reviewers: jchen

Tags: #secure-revision

Bug #: 1482227

Differential Revision: https://phabricator.services.mozilla.com/D4261
2018-09-11 12:04:10 -05:00
James Willcox f0ab771dcb Bug 1483329 - Hook up GeckoSessionTestRule and TestRunnerActivity to crash reporting r=jchen 2018-09-11 12:04:10 -05:00
James Willcox 6695ee9187 Bug 1483329 - Add tests for GeckoRuntime crash handling API r=jchen 2018-09-11 12:04:09 -05:00
James Willcox 500e2cea93 Bug 1483329 - Report content process crashes via GeckoRuntime r=jchen 2018-09-11 12:04:09 -05:00
James Willcox 61d0175eb4 Bug 1483329 - Hook up geckoview_example to new crash reporting API r=jchen 2018-09-11 12:04:09 -05:00
James Willcox 6155d9ce8a Bug 1483329 - Hook Fennec up to new crash handling API r=jchen 2018-09-11 12:04:08 -05:00
James Willcox 91381ffcaa Bug 1483329 - Add crash handling API to GeckoRuntime r=jchen,esawin 2018-09-11 12:04:08 -05:00
James Willcox 6d9557476c Bug 1483329 - Remove job id methods from GeckoRuntimeSettings r=jchen 2018-09-11 12:04:08 -05:00
James Willcox d267e7efee Bug 1483329 - Remove existing crash-related methods in GeckoRuntimeSettings r=jchen 2018-09-11 12:04:07 -05:00
James Willcox 0d1e816757 Bug 1485382 - Show Fennec crash reporter immediately from CrashReporterService r=jchen 2018-09-11 12:04:07 -05:00
arthur.iakab 9b05873885 Backed out changeset 16d2d6dc3cdf (bug 1489257)on request by droeh for causing geckowiev failures
--HG--
extra : rebase_source : 6a1e51a55ff18795c981518845735fe73bd78b6c
extra : amend_source : 3c5f4c8f15db8f361b41f29e632ff42563753639
2018-09-11 18:47:58 +03:00
Luca Greco fd88da28d9 Bug 1437864 - Implement userScripts API methods to allow an extension to inject custom APIs in the isolated userScripts sandboxes. r=zombie,mixedpuppy
MozReview-Commit-ID: 3GIFhnxMJVn

Depends on D4354

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

--HG--
extra : moz-landing-system : lando
2018-09-11 10:09:50 +00:00
Dennis Schubert 1ad62746a4 Bug 1452783 - Enable Report Site Issue menu button for Beta users. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D5287

--HG--
extra : moz-landing-system : lando
2018-09-11 16:44:27 +00:00
Nicholas Nethercote 7f2bb554d6 Bug 1490158 Remove On{Length,Index}Changed from nsISHistoryListener. r=nika
They're never used.

--HG--
extra : rebase_source : 94f94e4d198917aa5e1d9322e9ba195f641e6e45
2018-09-07 10:27:05 +10:00
Dylan Roeh 2cf215fea4 Bug 1489257 - Backed out 3 changesets (bug 1441059, bug 1478171) for causing bug 1489257. r=me
Backed out changeset f7bd4f224f9a (bug 1441059)
Backed out changeset e66e6bd82e3f (bug 1441059)
Backed out changeset 94cfd6113ca7 (bug 1478171)
2018-09-10 16:15:31 -05:00
Dipen Patel aeed887ff8 Bug 1468222 Consolidate nsISSLStatus info nsITransportSecurityInfo r=Gijs,snorp,jcj,mcmanus,sfraser,keeler,baku,ato
Move all fields of nsISSLStatus to nsITransportSecurityProvider
Remove nsISSLStatus interface and definition
Update all code and test references to nsISSLStatus
Maintain ability to read in older version of serialized nsISSLStatus.  This
is verified with psm_DeserializeCert gtest.

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

--HG--
extra : moz-landing-system : lando
2018-09-11 00:07:30 +00:00
Jim Chen 4801fffa0d Bug 1489569 - 2. Don't blur window on temporary focus loss; r=droeh
When the window temporarily loses focus (e.g. due to auto-fill popups),
don't call setFocus(false). Otherwise, we can end up disrupting user
interaction (e.g. causing the auto-fill popup to flicker). Only call
setFocus(false) when we are reasonably sure the focus loss is not
temporary.

Differential Revision: https://phabricator.services.mozilla.com/D5329
2018-09-10 12:42:35 -04:00
Jim Chen b5db081f11 Bug 1489569 - 1. Avoid unnecessary setActive calls; r=droeh
To avoid unnecessary setActive calls, only call it when we have a
display and when the display acquires or releases a surface. In other
cases, we can delay the setActive call until later.

Differential Revision: https://phabricator.services.mozilla.com/D5328
2018-09-10 12:42:34 -04:00
Daniel Varga 9e7995b3c3 Merge mozilla-inbound to mozilla-central. a=merge 2018-09-10 19:14:55 +03:00
Ehsan Akhgari 9fcc4e5b9a Bug 1489812 - Part 2: Remove @mozilla.org/editor-utils;1; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D5374
2018-09-10 08:42:27 -04:00
Nicholas Nethercote 951d44ded0 Bug 1490158 - Minimize cancelability in nsISHistoryListener. r=nika
nsISHistoryListener can cancel several operations, but the functionality is
only ever used for OnHistoryReload(). So this patch removes it for the other
operations.

--HG--
extra : rebase_source : 433422e9160f7d645570baaaff4779c4bcc3ec04
2018-09-06 16:51:58 +10:00
Johan Lorenzo 779bece5e7 Bug 1489132 - Ensure geckoview build numbers are always MAJOR.MINOR.BUILDID r=sebastian,jchen
Ensure geckoview build numbers are always MAJOR.MINOR.BUILDID

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

--HG--
extra : moz-landing-system : lando
2018-09-10 09:39:44 +00:00