Commit Graph

552 Commits

Author SHA1 Message Date
maliu
a2f6cf439f Bug 1360587 - Part 2. Remove bouncer apk build config; source; docs, r=nalexander
MozReview-Commit-ID: C1QJcr65yWu

--HG--
extra : rebase_source : 867d143416321adc4820d488991fb4575c767cf0
2017-10-25 22:51:44 +08:00
John Lin
e9ef326a0b Bug 1410771 - extend adaptive playback blacklist for some Samsung tablet. r=JamesCheng
MozReview-Commit-ID: 9X316WYjIS3

--HG--
extra : rebase_source : 41612526a90da44e08a4ac6fdf66f5db63532e61
2017-10-25 09:00:58 +08:00
Sebastian Hengst
026ae1698b merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IMyEmT3cofM
2017-10-22 23:50:42 +02:00
James Willcox
a156aa7132 Bug 1405124 - Set appropriate version code and string for GeckoView AAR r=nalexander
MozReview-Commit-ID: DZAxlp7zBHv
2017-10-21 13:18:16 -05:00
Jan Henning
3fe1971e3f Bug 1403653 - Part 1 - Refactor getDominantColor. r=nechen
We want to use the Palette library for getting a fallback accent colour for lightweight themes, however because of bug 1318667, we might have to continue using our own implementation of getDominantColor on x86 devices.

Therefore we move this into BitmapUtils, so we can have a central location from which to switch between our own and the Palette library implementation.

MozReview-Commit-ID: 52WsfZbW12x

--HG--
extra : rebase_source : b0eb60c25355d1a13418844b5684e4356225e8c3
2017-10-14 19:23:03 +02:00
Sebastian Hengst
b8673b6c5b Backed out changeset e40240828163 (bug 1403653) 2017-10-22 11:54:19 +02:00
Jan Henning
45de111d36 Bug 1403653 - Part 1 - Refactor getDominantColor. r=nechen
We want to use the Palette library for getting a fallback accent colour for lightweight themes, however because of bug 1318667, we might have to continue using our own implementation of getDominantColor on x86 devices.

Therefore we move this into BitmapUtils, so we can have a central location from which to switch between our own and the Palette library implementation.

MozReview-Commit-ID: 52WsfZbW12x

--HG--
extra : rebase_source : b7e66c027ef6c4a6aa01fcda6d17b6afb2e854a9
2017-10-14 19:23:03 +02:00
Jan Henning
92612c07e4 Bug 1404111 - Part 1 - Work around potential InputMethodManager bug when gaining focus. r=snorp
MozReview-Commit-ID: 2YnsMCZYckA

--HG--
extra : rebase_source : f4ae504a935b02dd39e4a154afdef41765a4db44
2017-10-17 22:20:59 +02:00
Jan Henning
702976abc0 Bug 1404111 - Part 0 - Fix Javadoc. r=JanH
MozReview-Commit-ID: 69yqr7ybioX

--HG--
extra : rebase_source : 4a0f94f4940332450e4361685fa98acd497af3bb
2017-10-17 22:07:20 +02:00
John Lin
aa6e1e2563 Bug 1408445 - handle exception when querying codec capabilities. r=esawin
MozReview-Commit-ID: 5Ee3eQqAgvG

--HG--
extra : rebase_source : 557ca633cab3dbe2b85d80da2e483303b8bc3c43
2017-10-15 14:54:46 +08:00
maliu
fc210a7334 Bug 1384312 - Support generating JNI wrappers under --with-gradle, r=nalexander
MozReview-Commit-ID: HECL60Ggeqn

--HG--
extra : rebase_source : 6b50e42602329db7f0fa5c4b3e89d2e44debaf33
extra : source : 9a3c4f7cd85e1007ed60708fe9c7b1cfff2afa23
2017-10-11 15:37:40 -07:00
Jan Henning
cb0745a3da Bug 1407835 - Don't keep BrowserApp unnecessarily alive through sScreenOrientationDelegate. r=nalexander
We need to clear the reference again if BrowserApp is possibly going to be destroyed.

At the moment there aren't any other activities using setScreenOrientationDelegate, but in preparation for that happening we unset BrowserApp as delegate already in onPause (instead of onDestroy) so we don't mistakenly assume that BrowserApp will remain the active ScreenOrientationDelegate all the time, even when it has been paused by some other activity.

MozReview-Commit-ID: 9q0MSzi78Vm

--HG--
extra : rebase_source : e5e1550d0d76fc21e36865489a3f3809f64468bf
2017-10-12 20:06:51 +02:00
Nevin Chen(:nechen)
5f644a7a7d Bug 1391342 - Keep toolbar hidding while showing keyboard in full screen. r=jchen,jwu,sebastian
MozReview-Commit-ID: 7GLvOB3TyuK

--HG--
extra : rebase_source : bf854f0b831db1977ecc877c2564132530fd1965
2017-10-06 11:33:14 +08:00
Sebastian Hengst
f4b8906f72 Backed out changeset 1d2e66b2486d (bug 1391342) for crashing in testInputConnection. r=backout
--HG--
extra : rebase_source : 72efebfc8eff3644e4d255a072ba41255729c3f0
2017-10-11 10:31:36 +02:00
Nevin Chen(:nechen)
461c0cca48 Bug 1391342 - Keep toolbar hidding while showing keyboard in full screen. r=jchen,jwu,sebastian
MozReview-Commit-ID: 7GLvOB3TyuK

--HG--
extra : rebase_source : 61240f74b3487c972581c2255d606c504f6dd381
2017-10-06 11:33:14 +08:00
Sebastian Hengst
b834f0d177 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 7Ez95T2ivfR
2017-10-07 10:37:39 +02:00
John Lin
69fb7ed20e Bug 1403849 - p2: add JNI method for native code to query tunneled playback support. r=esawin
MozReview-Commit-ID: 29HgjCanjGP

--HG--
extra : rebase_source : a9e388883a1e561fbbb4a58f97957662b657028e
2017-09-29 18:04:20 +08:00
John Lin
84b53d828f Bug 1403849 - p1: introduce IPC method to query tunneled playback support. r=esawin
MozReview-Commit-ID: 3wiKC46ZjvY

--HG--
extra : rebase_source : 8d87656737c5ace1bb47b968e9a1cc958616afa1
2017-09-29 18:01:15 +08:00
Jim Chen
3b801bac89 Bug 1404144 - 3. Add flag to preload child process during main GeckoThread startup; r=snorp
We need to wait for GeckoThread to load the Gecko libs in the main
process before we can launch any child processes, so that the child
process doesn't try to extract libs, which can conflict with any
extraction going on in the main process.

MozReview-Commit-ID: 2gUd2R1TUBI

--HG--
extra : rebase_source : d48b9e2e744669a89f2b761cf6936f28948c17c3
2017-10-04 22:28:43 -04:00
Jim Chen
f281c874c0 Bug 1404144 - 2. Move start child process JNI call to GeckoProcessManager; r=rbarker
Avoid going through GeckoAppShell and move the start child process JNI
call directly to GeckoProcessManager.

MozReview-Commit-ID: KU62TiHVQJX

--HG--
extra : rebase_source : 0e8546da502257e1c59bc00b79f50c79a314f3e6
2017-10-04 22:28:43 -04:00
Jim Chen
ffe3e86076 Bug 1404144 - 1. Refactor child process code to support preloading; r=rbarker
Refactor the code in GeckoProcessManager and GeckoServiceChildProcess so
that, we can have a ChildConnection object that's bound but not started.
This way we can bind the connection to preload Gecko child process, but
hold off starting until told by Gecko main process.

Some code is simplified. For example, `IChildProcess.stop` is removed in
favor of killing the child process directly.

MozReview-Commit-ID: 4XgmTuT0IAs

--HG--
extra : rebase_source : 94fe748556c66f639d1f8e5bb26c28ea3ed950b3
2017-10-04 22:28:43 -04:00
Masayuki Nakano
9a85312d4a Bug 1404206 - Part 3: Make GeckoInputConnection handle "mozAwesomebar" inputmode value as "url". r=jchen, r=gijs
Although, Firefox for Android doesn't use urlbarBindings.xml for declaring its
awesome bar, for consistency with widget code for desktop OSes,
GeckoInputConnection should treat "mozAwesomebar" inputmode value as "url"
since Android doesn't have any special input type for "search" and we should
keep current behavior.

MozReview-Commit-ID: DpUnUx4E2Sp
2017-09-29 16:11:20 +09:00
Jim Chen
1e2e862aea Bug 1401737 - 2. Add GeckoAppShell.appendAppNotesToCrashReport; r=snorp
Add a way to append app notes to the crash report from Java, so we can
associate additional crash data with the crash.

MozReview-Commit-ID: 6I6pGOWb1sZ
2017-10-05 14:59:32 -04:00
Eugen Sawin
f2591d27c0 Bug 1316934 - [3.1] Add JNI for AudioManager properties. r=snorp 2017-10-02 17:56:17 +02:00
Jim Chen
e1cb3acc74 Bug 1384829 - 3. No longer ignore certain exceptions; r=esawin
Bug 817386 added code to ignore IndexOutOfBoundsException when using
GeckoEditable because the code wasn't mature enough back then, and there
were many race conditions. I think the situation is a lot better now, so
we can try removing that code and see if we still need it. We can always
add it back if we do.

MozReview-Commit-ID: 4pirfaUuSNu

--HG--
extra : rebase_source : ed68d545bb5e40491720aeafe86221163c064449
2017-09-28 00:14:18 -04:00
Jim Chen
67f61c4e8a Bug 1384829 - 2. Add more user-friendly debugging output; r=esawin
Translate non-ASCII characters into hex instead of trying to print them
out.

MozReview-Commit-ID: 1aABRy6J1nm

--HG--
extra : rebase_source : f620d35e3cff12ab60e48568f33af65ad4f493c8
2017-09-28 00:14:18 -04:00
Jim Chen
107658fdda Bug 1384829 - 1. Always perform shadow text actions; r=esawin
We want to always perform actions on the shadow text side even if a
particular GeckoEditable instance is disconnected from Gecko, because
there could be other users of Editable that still expect the object to
perform valid actions.

MozReview-Commit-ID: 48OIEaPZqUE

--HG--
extra : rebase_source : 1ab86138c81061aeb7ea600497af5290581a9fbc
2017-09-28 00:14:18 -04:00
Eugen Sawin
8d6bc8fb3e Bug 1401002 - [3.1] Add GeckoView setting for application data directories. r=jchen 2017-09-26 23:08:25 +02:00
Eugen Sawin
3b7b1e8565 Bug 1401002 - [2.2] Enable GeckoView remote debugging. r=snorp,jchen 2017-09-26 23:08:25 +02:00
Dylan Roeh
bcebef542c Bug 1388750 - Checkstyle fix. r=me 2017-09-25 09:43:44 -05:00
Dylan Roeh
039c4964c8 Bug 1388750 - Add setActive() to GeckoView to make the DocShell active/inactive. r=snorp 2017-09-22 15:57:46 -05:00
Jim Chen
cc4705df59 Bug 1396951 - 6. Remove setLayerView/getLayerView; r=snorp
Remove `GeckoAppShell.setLayerView()/getLayerView()` now that it's no
longer used anywhere.

MozReview-Commit-ID: 6URNFhSs01P

--HG--
extra : rebase_source : bd76d75fe26f9c3d8782475767e5a48fcd2cb9eb
2017-09-22 14:35:23 -04:00
Jim Chen
4402031ae6 Bug 1396951 - 4. Pass in GeckoView instance when sending a11y event; r=snorp
Pass in a `GeckoView` instance when sending a11y events so we're not
dependent on `GeckoAppShell.getLayerView()`. However, there's likely
more work to be done to make a11y work for any GeckoView.

MozReview-Commit-ID: DBeDOX5c3qY

--HG--
extra : rebase_source : 49d9a06ec90543c49d03f298a7d78ea54bbe0a58
2017-09-22 14:35:23 -04:00
Jim Chen
a6188cfc76 Bug 1396951 - 3. Move GeckoAppShell.viewSizeChanged() to GeckoLayerClient; r=rbarker
Let `GeckoLayerClient` directly deal with scroll-to-input on resize,
instead of going through `GeckoAppShell` and relying on
`getLayerView()`. This is a necessary fix to let us remove
`getLayerView()`, and in a follow-up bug we should actually fix
scroll-to-input to work on any GeckoView.

MozReview-Commit-ID: 1xsHh2vg08M

--HG--
extra : rebase_source : 3061623d3ed0309fff42c6dc66d0246e1d3000a3
2017-09-22 14:35:23 -04:00
Jim Chen
d4b6b64543 Bug 1396951 - 2. Don't use getLayerView() in GeckoInputConnection; r=esawin
In GeckoInputConnection, use the current view available through
`getView()`, instead of using `GeckoAppShell.getLayerView()`.

MozReview-Commit-ID: Hc9AUz5SNEs

--HG--
extra : rebase_source : c42a81bb9b46f79e0a1b827d16ac7494579017e6
2017-09-22 14:35:22 -04:00
Jim Chen
2216a28dff Bug 1396951 - 1. Add and use HapticFeedbackDelegate; r=snorp
Instead of using `getLayerView()` to perform haptic feedback, this patch
adds a `HapticFeedbackDelegate`, which `GeckoApplication` implements to
call `performHapticFeedback()` on the active view. Also, use
HapticFeedbackDelegate elsewhere in the Fennec codebase where we want to
perform haptic feedback.

MozReview-Commit-ID: GAArA6yJFNF

--HG--
extra : rebase_source : 683520b1b314ff0376a6fc843415a8485650e80b
2017-09-22 14:35:22 -04:00
Sebastian Hengst
79326d87c8 Backed out changeset 5e5ce5633017 (bug 1396951) for frequently failing robocop's testSettingsPages. r=backout a=backout
MozReview-Commit-ID: AGZMQKL3eft
2017-09-22 11:49:14 +02:00
Sebastian Hengst
f08b285a28 Backed out changeset 71134284dc36 (bug 1396951)
MozReview-Commit-ID: 1hsJHf7XvbM
2017-09-22 11:48:41 +02:00
Sebastian Hengst
8ac65ca47e Backed out changeset 155c1005c388 (bug 1396951)
MozReview-Commit-ID: Egbc73sWnEB
2017-09-22 11:48:36 +02:00
Sebastian Hengst
7bd9fdc344 Backed out changeset e9bc6e08091b (bug 1396951)
MozReview-Commit-ID: 1vPPNL6uovN
2017-09-22 11:48:30 +02:00
Sebastian Hengst
ee050c207e Backed out changeset 0a367a71ca43 (bug 1396951)
MozReview-Commit-ID: 3UwRalvlkEE
2017-09-22 11:48:19 +02:00
Jim Chen
9a9951f4be Bug 1396951 - 6. Remove setLayerView/getLayerView; r=snorp
Remove `GeckoAppShell.setLayerView()/getLayerView()` now that it's no
longer used anywhere.

MozReview-Commit-ID: 6URNFhSs01P

--HG--
extra : rebase_source : 202177e049d969efba04290b228dd67a15ebe3f4
2017-09-21 17:36:07 -04:00
Jim Chen
4440c1fbc9 Bug 1396951 - 4. Pass in GeckoView instance when sending a11y event; r=snorp
Pass in a `GeckoView` instance when sending a11y events so we're not
dependent on `GeckoAppShell.getLayerView()`. However, there's likely
more work to be done to make a11y work for any GeckoView.

MozReview-Commit-ID: DBeDOX5c3qY

--HG--
extra : rebase_source : 0c6c76d326b755671d2d29109823ceaf1aa627ba
2017-09-21 17:36:07 -04:00
Jim Chen
e552b01260 Bug 1396951 - 3. Move GeckoAppShell.viewSizeChanged() to GeckoLayerClient; r=rbarker
Let `GeckoLayerClient` directly deal with scroll-to-input on resize,
instead of going through `GeckoAppShell` and relying on
`getLayerView()`. This is a necessary fix to let us remove
`getLayerView()`, and in a follow-up bug we should actually fix
scroll-to-input to work on any GeckoView.

MozReview-Commit-ID: 1xsHh2vg08M

--HG--
extra : rebase_source : c09c906cbdaf2b3bea96ecfcec1f25bdef4fa31d
2017-09-21 17:36:07 -04:00
Jim Chen
59b8506da3 Bug 1396951 - 2. Don't use getLayerView() in GeckoInputConnection; r=esawin
In GeckoInputConnection, use the current view available through
`getView()`, instead of using `GeckoAppShell.getLayerView()`.

MozReview-Commit-ID: Hc9AUz5SNEs

--HG--
extra : rebase_source : 3e55c4ac8749b75e6f5bc50a2b706f7f4ad264e8
2017-09-21 17:36:02 -04:00
Jim Chen
d96a907c4c Bug 1396951 - 1. Add and use HapticFeedbackDelegate; r=snorp
Instead of using `getLayerView()` to perform haptic feedback, this patch
adds a `HapticFeedbackDelegate`, which `GeckoApplication` implements to
call `performHapticFeedback()` on the active view. Also, use
HapticFeedbackDelegate elsewhere in the Fennec codebase where we want to
perform haptic feedback.

MozReview-Commit-ID: GAArA6yJFNF

--HG--
extra : rebase_source : c9ac6e28584ca2b6c6fb707444cca8dc08abe649
2017-09-21 17:36:02 -04:00
James Willcox
216f3c6511 Bug 1400878 - Don't show keyboard on Android unless the user caused it r=jchen
MozReview-Commit-ID: KURh08X4Q4U
2017-09-20 14:48:00 -05:00
Eugen Sawin
0530ab8695 Bug 1401313 - [1.0] Change display mode key value type to integer. r=snorp 2017-09-19 22:21:07 +02:00
Dylan Roeh
7cbedb9bf9 Bug 1400059 - Fix trailing whitespace r=me 2017-09-15 11:13:48 -05:00
Dylan Roeh
65afe5f455 Bug 1400059 - Replace strings in ProgressListener.SecurityInformation with ints. r=snorp 2017-09-15 09:00:26 -05:00