Commit Graph

1207 Commits

Author SHA1 Message Date
Noemi Erli
8bb8254a13 Merge inbound to mozilla-central. a=merge 2018-10-04 07:03:25 +03:00
Randall Barker
6e23a6c1c5 Bug 1495907 - Ensure MediaService self terminates when parent process dies r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D7548

--HG--
extra : moz-landing-system : lando
2018-10-03 14:43:43 +00:00
Daniel Varga
85e94da039 Merge mozilla-inbound to mozilla-central. a=merge 2018-10-03 08:04:21 +03:00
Daniel Varga
2e77181988 Merge mozilla-central to autoland. a=merge on a CLOSED TREE
--HG--
extra : rebase_source : 62429b85fcd6af71ca898dc36c3f0f4a2c4ee5ae
2018-10-03 00:49:53 +03:00
Jim Chen
713d1d9d23 Bug 1492308 - 5. Make various objects use the new disposal mechanism; r=snorp
Make LayerViewSupport, NPZCSupport, GeckoEditableSupport, and
SessionAccessibility use the new disposal mechanism to ensure the
disposal is performed safely.

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

--HG--
extra : moz-landing-system : lando
2018-10-02 19:59:40 +00:00
Jim Chen
d1b555666e Bug 1492308 - 3. Add test for tapping after content crash; r=snorp
Add a test for the crash scenario where PZC is used after content
crashes and restarts.

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

--HG--
extra : moz-landing-system : lando
2018-10-02 19:59:34 +00:00
Paul Roget
2d2d426693 Bug 1489933 - Make GeckoDisplay and PanZoomController constructors protected r=snorp 2018-10-02 10:44:44 -05:00
Jim Chen
05d8424e0f Bug 1495452 - Don't crash when there is no vibrate permission; r=me
Catch exceptions when we don't have the vibrate permission.
2018-10-01 15:09:47 -04:00
arthur.iakab
0fa921ab4c Backed out 2 changesets (bug 1492704)by request of jcristau for causing multiple nightly crashes a=backout CLOSED TREE
Backed out changeset a44a660a1580 (bug 1492704)
Backed out changeset bf4e7fd47d96 (bug 1492704)
2018-10-01 11:49:35 +03:00
arthur.iakab
f0410f8d4b Merge mozilla-central to mozilla-inbound 2018-09-29 01:00:35 +03:00
James Willcox
56452c6b19 Bug 1491094 - Don't require ACCESS_WIFI_STATE for GeckoView r=droeh
Fennec will continue to require this. While we're here, also make 'touchscreen' feature optional.

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

--HG--
extra : moz-landing-system : lando
2018-09-28 18:34:57 +00:00
Jim Chen
77a328fb39 Bug 1494739 - Remove GV vibrate permission; r=me
Rmove the VIBRATE permission. GV actually doesn't support the vibration
API at the moment, so the permission is unused anyways.
2018-09-28 13:48:27 -04:00
Eugen Sawin
b45169b5aa Bug 1486061 - [1.1] Add GeckoView safe browsing tests. r=snorp 2018-09-27 23:52:49 +02:00
Jim Chen
19435e0b46 Bug 1492704 - 2. Don't update node during auto-fill focus event; r=droeh
Don't update the focused node in the node cache during auto-fill focus
events, because we don't necessarily know if the focused node should be
in the node cahce (e.g. the focused node could be from another window
than the one we're handling currently).

Differential Revision: https://phabricator.services.mozilla.com/D6758
2018-09-27 10:59:50 -04:00
Eitan Isaacson
bd709136b4 Bug 1493269 - Recycle all created nodes at cleanup in AccessibilityTest. r=jchen
--HG--
extra : rebase_source : 454ef0e213a5a3a29d58e18953e159674dee5bfa
2018-09-26 16:27:00 +03:00
Dylan Roeh
542742751e Bug 1481296 - Add a popup blocking API to PromptDelegate. r=jchen,snorp 2018-09-07 13:39:57 -05:00
James Willcox
77228a10da Bug 1486596 - Add tests to ensure GeckoSession can be collected by the GC r=jchen 2018-10-03 13:02:46 -05:00
James Willcox
9eadd7710b Bug 1486596 - Hold a WeakRef to EventDispatcher from native code r=jchen 2018-10-03 13:02:46 -05:00
James Willcox
5d448438a6 Bug 1486596 - Hold a WeakReference to GeckoSession from GeckoEditable r=jchen
This is necessary because the GC root for GeckoEditable is a native
reference, preventing the GC from recognizing that the only reference
to the GeckoEditable is the owning GeckoSession and doing normal
cycle collector stuff. We break the cycle ourselves by using a
WeakReference to hold the GeckoSession within GeckoEditable.
2018-10-03 13:02:46 -05:00
James Willcox
923748371f Bug 1486596 - Hold a WeakRef to LayerSession::Compositor from nsWindow r=jchen 2018-10-03 13:02:45 -05:00
James Willcox
010a4a02a5 Bug 1486596 - Hold a WeakRef to PanZoomController from nsWindow r=jchen 2018-10-03 13:02:45 -05:00
James Willcox
0c0e2e5af3 Bug 1486596 - Ensure GeckoSession.Window is owned by a single GeckoSession r=jchen
Reviewers: jchen

Tags: #secure-revision

Bug #: 1486596

Differential Revision: https://phabricator.services.mozilla.com/D4617
2018-10-03 13:02:45 -05:00
James Willcox
a3d10ccfa5 Bug 1486596 - Implement finalizer for GeckoSession.Window r=jchen 2018-10-03 13:02:44 -05:00
Paul Rouget
430679ad1e Bug 1492771 - Make GeckoSession non-final r=snorp 2018-09-26 08:08:27 -05:00
Eitan Isaacson
0206ea9620 Bug 1479034 - Make GeckoView's SessionAccessibility a JNIObject associated with a nsWindow. r=jchen 2018-09-21 16:03:35 -07:00
Zibi Braniecki
83ea94f5ba Bug 1491394 - Update callsites to use new mozILocaleService API. r=jfkthame
Depends on D5924

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

--HG--
extra : moz-landing-system : lando
2018-09-21 15:30:37 +00:00
Gabriele Svelto
adeb3e767c Bug 1492815 - Do not send the StackTraces field in crash reports r=jchen
This patch prevents Fennec/GeckoView crash reporters from sending the large,
useless StackTraces field when submitting a report. I've also taken the
liberty of removing an obsolete crash annotate that was being added to
Fennec's reports.

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

--HG--
extra : moz-landing-system : lando
2018-09-20 15:25:31 +00:00
Jim Chen
9d365405a5 Bug 1475325 - 2. Add tests for hiding selection action in different cases; r=jchen
Add some tests for hiding selection action during navigation, blurring,
or clearing delegate.
2018-09-18 15:20:03 -04:00
Jim Chen
1499711f6e Bug 1442176 - 2. Add pinned-to-screen flag in GeckoSession; r=snorp r=droeh
Add a flag for whether the session should be pinned to the screen. The
app would check the flag and prevent scrolling of the session when it's
pinned.

Differential Revision: https://phabricator.services.mozilla.com/D5190
2018-09-17 17:47:21 -04:00
Jim Chen
e87c3096e6 Bug 1442176 - 1. Remove current pin-on-caret-drag code; r=snorp
Remove the current code that pins the toolbar on caret drag, which only
works for Fennec.

Differential Revision: https://phabricator.services.mozilla.com/D5189
2018-09-17 17:47:21 -04:00
Jim Chen
f5ce114ffa Bug 1475325 - Hide selection action in some scenarios; r=droeh
Hide the selection action toolbar when the session is unfocused, or when
changing the selection action delegate.

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

--HG--
extra : moz-landing-system : lando
2018-09-17 23:15:17 +00:00
Jim Chen
fe39a234fe 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-17 17:29:30 +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
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
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
Hiroyuki Ikezoe
b2160ed2cf Bug 1035774 - Support dynamic input device changes for Android. r=jchen
Though we can't write automation tests for this, I have confirmed that the input
device added/removed are properly notified to 'browser.xul'. Unfortunately the
notifications don't reach to conent documents because of bug 1478212, but I've
also confirmed they did reach to content documents with replacing
MediaFeatureValuesChanged with MediaFeatureValuesChangedAllDocuments in
nsPresContext::RefreshSystemMetrics().

Differential Revision: https://phabricator.services.mozilla.com/D3303
2018-08-14 16:38:03 +09:00
Hiroyuki Ikezoe
2b678040eb Bug 1035774 - Introduce functions to get the capabilities for the primary pointer and for all available pointers on Android. r=jchen
There is no API that we can tell which input device is the primary pointer
device on Android, so we assume that the first pointer-type input device
in the list of InputDevice.getDevice is the primary one.

Test results on L-01F (a variant of LG-G2):
 - Normal boot
   The touchscreen is the primary device
   - Plugged a mouse
      The touchscreen is the primary device

 - Boot with a plugged mouse
   The mouse is the primary device
   - Plugged off the mouse
      The touchscreen is now the primary device
   - Plugged the mouse again
      The touchscreen is the primary device

Classification in getPointerCapablities refered to chrome impelementation [1].
In addition to the classification, we add SOURCE_JOYSTICK as a 'COARSE' and
'HOVER_CAPABLE' device.

[1] d4c8983688/ui/android/java/src/org/chromium/ui/base/TouchDevice.java (72)

Differential Revision: https://phabricator.services.mozilla.com/D3302
2018-08-14 16:38:03 +09: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