Commit Graph

635 Commits

Author SHA1 Message Date
Eugen Sawin
41e3646a3a Bug 1415929 - [1.0] Move Android app data directory out of setting to an environment variable. r=snorp 2017-11-09 21:37:24 +01:00
Michael Comella
4b81416ab1 Bug 1414995: Crash when publicsuffixlist could not be opened. r=nechen
MozReview-Commit-ID: 2agnVzKLkzd

--HG--
extra : rebase_source : 8f4b13154f74ac358fea2c2693f546a95b7f46ca
2017-11-06 16:12:15 -08:00
Randall Barker
7fe4594a76 Bug 1413362 - part 1: Add GeckoVRManager to support GVR WebVR implementation on Android r=jchen,snorp
MozReview-Commit-ID: C7XTF8N1W9a
2017-11-07 10:50:14 -08:00
Jim Chen
832cd8d996 Bug 1415074 - Fix unresponsiveness after restoring GeckoView states; r=jchen
Fix a bug where GeckoView becomes unresponsive to dispatched events
after restoring states, due to the native queue not being restored.
r=me for small, tested patch.

MozReview-Commit-ID: K1cVjjNaZK1

--HG--
extra : rebase_source : b1329c84d82f5bdc06767bf310ca87e52ff6ec9b
2017-11-07 01:53:11 -05:00
Jim Chen
0d7a6aa9de Bug 1413698 - 7. Rename GeckoView{Handler,Settings} to GeckoSession{..}; r=jchen
The old GeckoView was renamed to GeckoSession, so the old
GeckoViewHandler and GeckoViewSettings should be renamed to
GeckoSession.. as well. GeckoView JS files are left alone and may be
converted in a future bug. r=me for trivial patch.

MozReview-Commit-ID: BJTwugWboKf

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoViewHandler.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoSessionHandler.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoViewSettings.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoSessionSettings.java
extra : rebase_source : d6e55620b8588174bff801f3f7b436f67e9b3f32
2017-11-06 14:54:10 -05:00
Jim Chen
6a5d5a1ab2 Bug 1413698 - 5. Use GeckoSession where appropriate; r=snorp
Change places where we use GeckoView to use GeckoSession instead.

MozReview-Commit-ID: InT4i1MaoBe

--HG--
extra : rebase_source : 67f57d5b00818292b8d273665e60f81a11097eea
2017-11-06 14:54:09 -05:00
Jim Chen
af4d72a10d Bug 1413698 - 4. Add minimal GeckoView; r=snorp
With the old GeckoView renamed to GeckoSession, add a new minimal
implementation of GeckoView that manages View lifetime but delegates
most tasks to GeckoSession.

MozReview-Commit-ID: 9FFdLpTfPQY

--HG--
extra : rebase_source : 596866e9121265bf0529648926a71d1dfe3b2976
2017-11-06 14:54:09 -05:00
Jim Chen
8c452ff94b Bug 1413698 - 3. Recorganize GeckoViewSettings; r=snorp
* Move the chromeUri and screenId settings to GeckoViewSettings.

* Add a private data-dir setting that the debugger-socket-dir setting
  falls backs to. Set the data-dir setting inside `GeckoSession.openWindow`.

* Add optional init-only and values properties for settings.

* Use integer constants for display-mode setting.

MozReview-Commit-ID: HgJg0t0oade

--HG--
extra : rebase_source : 537689d93202e4201e879bae9e073ceb4489190b
2017-11-06 14:54:09 -05:00
Jim Chen
edb0428314 Bug 1413698 - 2. Move GeckoView to GeckoSession; r=snorp
Rename GeckoView to GeckoSession. Strip out parts of it that depended on
being a subclass of View. Also strip out parts of it that dealt with
switching EventDispatcher and NativeQueue, because now there's only one
copy of each for each GeckoSession.

MozReview-Commit-ID: J699twtpmTS

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoView.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoSession.java
extra : rebase_source : 60e045f6f1e6a70dcabc03f5a32cae5576c2edd8
2017-11-06 14:54:09 -05:00
Jim Chen
6fdb886eb4 Bug 1413698 - 1. Separate out attach() from open() in GeckoView.Window; r=snorp
Right now, `GeckoView.Window.open()` consists of opening a new Gecko
nsWindow and attaching it to the opening GeckoView. This patch separates
the attaching step into an `Window.attach()` function that was renamed
from `Window.reattach()`. Going forward, `Window.open()` and
`Window.close()` will correspond to opening and closing a session, which
`Window.attach()` will correspond to attaching a display to a session.

MozReview-Commit-ID: 94Un74pwizY

--HG--
extra : rebase_source : a7d9c6c3227de4b05e800d77a184f1deae9af5f8
2017-11-06 14:54:08 -05:00
Csoregi Natalia
c79466f107 (bug 1411688) Make --with-gradle handle single-locale repack r=snorp a=reland
--HG--
extra : amend_source : d435c08a762988804bfe23251b8b5f76702eca99
2017-11-06 15:23:47 +02:00
Csoregi Natalia
aaa47364af Backed out 5 changesets (bug 1411688) for failing Android single-locale repacks. r=backout a=backout
Backed out changeset 65d5d13b4ea0 (bug 1411688)
Backed out changeset 8ba514bd8ed6 (bug 1411688)
Backed out changeset 866854a996b8 (bug 1411688)
Backed out changeset 34f83aab44e6 (bug 1411688)
Backed out changeset 2e4e139bb5d7 (bug 1411688)
2017-11-06 12:18:50 +02:00
Nick Alexander
a090e4b296 Bug 1411688 - Part 0: Make --with-gradle handle single-locale repack ABIs. r=snorp
This agrees with
http://searchfox.org/mozilla-central/rev/423b2522c48e1d654e30ffc337164d677f934ec3/mobile/android/base/generate_build_config.py#95.
It should really come from the underlying binaries for repacks, but
right now we only repack ARM builds, so this will do.

MozReview-Commit-ID: 3UvrJDV1l9a

--HG--
extra : rebase_source : e57b49e32c80906bdb513850c370d64e5a140978
2017-11-02 09:38:47 -07:00
Sebastian Hengst
07b805d165 Backed out 5 changesets (bug 1411688) for flake8 linting failure at testing/mozharness/scripts/mobile_l10n.py. r=backout on a CLOSED TREE
Backed out changeset 8ddf3257a8db (bug 1411688)
Backed out changeset c313d76f2aa5 (bug 1411688)
Backed out changeset 3df83a3b7e9c (bug 1411688)
Backed out changeset 133417cefdab (bug 1411688)
Backed out changeset a8fd33d8a2af (bug 1411688)
2017-11-04 00:49:47 +01:00
Nick Alexander
e5ebccdd4f Bug 1411688 - Part 0: Make --with-gradle handle single-locale repack ABIs. r=snorp
This agrees with
http://searchfox.org/mozilla-central/rev/423b2522c48e1d654e30ffc337164d677f934ec3/mobile/android/base/generate_build_config.py#95.
It should really come from the underlying binaries for repacks, but
right now we only repack ARM builds, so this will do.

MozReview-Commit-ID: 3UvrJDV1l9a

--HG--
extra : rebase_source : 64afca521be49b0bfb4c4a677be24886c0e7f412
2017-11-02 09:38:47 -07:00
James Cheng
590d6b160c Bug 1396698 - Part1 - Remove the dispatchTo gecko main thread attribute. r=kikuo
MozReview-Commit-ID: 9Opa894ZQMQ

--HG--
extra : rebase_source : 78807da52b2b070a0488ef2c1f673b728172e59d
2017-11-03 13:40:46 +08:00
Sebastian Hengst
4ff29d14f8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GSDYk9wLOAM

--HG--
rename : browser/base/content/test/general/browser_bug561636.js => browser/modules/test/browser/formValidation/browser_form_validation.js
rename : browser/base/content/test/general/browser_bug595507.js => browser/modules/test/browser/formValidation/browser_validation_iframe.js
rename : browser/modules/test/browser/browser_bug1319078.js => browser/modules/test/browser/formValidation/browser_validation_invisible.js
2017-11-01 22:55:12 +01:00
Nick Alexander
c1a631a475 Bug 1413332 - Make geckoview's BuildConfig under --with-gradle include computed values. r=maliu,snorp
There's already a secret dependency where
mobile/android/base/Makefile.in (and generated AppConstants.java)
depends on $topobjdir/buildid.h, so this shouldn't be much worse than
what we have.

MozReview-Commit-ID: 2hkAGE9uT10

--HG--
extra : rebase_source : 090b7a5f2063a4e0cc20252703e6575e6716448a
2017-10-31 14:29:39 -07:00
Jim Chen
db34ad5809 Bug 1412872 - 8. Remove GeckoAppShell dependency in gecko-view; r=snorp
In the future, GeckoAppShell will only be part of the service process
library, and will not be part of the app process library. Therefore, we
should minimize GeckoAppShell usage in any GeckoView code that will
likely end up in the app process library.

In particular, AndroidGamepadManager and Clipboard are made to accept
Context as arguments, instead of using
GeckoAppShell.getApplicationContext() for getting the Context.

MozReview-Commit-ID: G9SC815H5Ku
2017-11-01 14:54:04 -04:00
Jim Chen
e6d6cbb51a Bug 1412872 - 6. Remove default prompt delegate support; r=snorp
Remove support for a default prompt delegate in GeckoView. Instead, all
prompts without a known window will go to the active GeckoView if
available.

MozReview-Commit-ID: C62V6jtgDCl
2017-11-01 14:54:03 -04:00
Jim Chen
e8b3470987 Bug 1412872 - 5. Move GeckoAccessibility out of gecko-view; r=snorp
Move GeckoAccessibility out of gecko-view and into gecko-browser.
GeckoAccessibility as-is is currently only good for Fennec and is not
suitable for generic GeckoView use.

MozReview-Commit-ID: Fek8fLJNC6F

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAccessibility.java => mobile/android/base/java/org/mozilla/gecko/GeckoAccessibility.java
rename : mobile/android/geckoview/src/thirdparty/java/com/googlecode/eyesfree/braille/selfbraille/ISelfBrailleService.java => mobile/android/thirdparty/com/googlecode/eyesfree/braille/selfbraille/ISelfBrailleService.java
rename : mobile/android/geckoview/src/thirdparty/java/com/googlecode/eyesfree/braille/selfbraille/SelfBrailleClient.java => mobile/android/thirdparty/com/googlecode/eyesfree/braille/selfbraille/SelfBrailleClient.java
rename : mobile/android/geckoview/src/thirdparty/java/com/googlecode/eyesfree/braille/selfbraille/WriteData.java => mobile/android/thirdparty/com/googlecode/eyesfree/braille/selfbraille/WriteData.java
2017-11-01 14:54:03 -04:00
Jim Chen
7496680254 Bug 1412872 - 4. Handle negate scroll pref in native code; r=rbarker
Handle the negate_wheel_scroll pref in native code so we don't depend on
PrefsHelper in NativePanZoomController.

MozReview-Commit-ID: 14YCcrDlObz
2017-11-01 14:54:03 -04:00
Jim Chen
453375471c Bug 1412872 - 3. Remove native GeckoView loadUri call; r=snorp
Remove the native GeckoView loadUri call because it's Fennec-only.
Replace the call with a Fennec-only "Tab:OpenUri" event.

MozReview-Commit-ID: 7xZW9aceoPL
2017-11-01 14:54:03 -04:00
Jim Chen
08bc532bbe Bug 1412872 - 2. Implement Parcelable for GeckoViewSettings; r=snorp
Make GeckoViewSettings implement Parcelable so we can serialize it to
save settings.

MozReview-Commit-ID: HoxqbewtJko
2017-11-01 14:54:02 -04:00
Jim Chen
78a5bdee25 Bug 1412872 - 1. Implement Parcelable for GeckoBundle; r=snorp
Implement Parcelable interface for GeckoBundle so it can be marshalled
across processes over Bundle, AIDL, etc. Also, add a stub for a
`GeckoBundle.put` method that suggests alternatives to use.

MozReview-Commit-ID: IArNL7LYUPZ
2017-11-01 14:54:02 -04:00
Sebastian Hengst
f07fc93141 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4PW6ESqLL73
2017-10-30 23:52:23 +01:00
Jim Chen
d7ddb77f0b Bug 1406247 - 1. Don't ignore selection change when Gecko text change is more than expected; r=esawin
When a Gecko text change covers more than just our expected change on
the Java side, don't ignore the subsequent selection change notification
because the Gecko selection could have moved anywhere.

MozReview-Commit-ID: 8kvz7Ws9DMM
2017-10-30 12:42:30 -04:00
James Willcox
1ee57ae7a7 Bug 1395497 - Create SurfaceTexture in detached state, attach on first use r=jgilbert
MozReview-Commit-ID: HfkEUH9aiBo
2017-10-30 10:58:56 -05:00
Jamie Nicol
21b5b6db95 Bug 1092294 - Use SurfaceTextures for painted content on android (preffed off). r=nical,snorp
Add a new TextureClientData type, AndroidNativeWindowTextureData,
backed by a SurfaceTexture in single-buffer mode. It uses the
NativeWindow API, which provides producer-side access to the buffer.
This provides a DrawTarget which can be used to paint directly in to
the SurfaceTexture, which can then be composited using a SurfaceTextureHost.

Due to API restrictions it is not possible to read from a NativeWindow
while the corresponding SurfaceTexture has ownership of the
buffer. TiledContentClient now handles that by painting the additional
region that it cannot copy from the front buffer, if required.

MozReview-Commit-ID: 1NZq6MQqwFq

--HG--
extra : rebase_source : 9d1db721d4892f3df033d43127489a85421e8863
2017-10-28 11:59:58 +01:00
James Cheng
004b993f6b Bug 1412736 - Extend the blacklist of disabling adaptive playback feature for Galaxy S4 SCH-R970 model. r=jolin
MozReview-Commit-ID: LfwcrdWtrDC

--HG--
extra : rebase_source : af2dcfc90cd60ff87b9aee70066ef455d3a1c6ae
2017-10-30 10:57:50 +08:00
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
Noemi Erli
8d8df3ddfe Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-10 12:43:53 +02:00
James Cheng
cdeb44cbd6 Bug 1416089 - Remove MEDIA_DECODING_PROCESS_CRASH telemetry. r=jolin
MozReview-Commit-ID: Dqqmk6yUXPo

--HG--
extra : rebase_source : 2c06d5600318ea6f77a0ee43462197109a532354
2017-11-10 14:01:56 +08:00
Eugen Sawin
afb511b28b Bug 1415690 - [1.0] Resolve canonical data path to avoid permission issues. r=snorp 2017-11-09 15:57:55 +01: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
Jan Henning
8530a2979b Bug 1271998 - Part 3 - Scroll the URL to focus the origin for overlength URLs. r=jwu
If the domain is long enough that it doesn't fully fit within the URL bar, we scroll it such that the end of the domain aligns with the right side of the URL bar, taking any possible fadingEdge effect into account. That way, we always try to show as much of the most important part of the origin as possible.

Chrome uses a similar approach, although their URL bar neither fades nor allows scrolling.

MozReview-Commit-ID: Ep4H4kO4MRH

--HG--
extra : rebase_source : 2ef619e8e756627e8ff55ef394f483ce12505ddd
2017-08-24 22:09:56 +02:00
Randall Barker
f5a3960f5a Bug 1396233 - Add toolbar offset to screen location of a11y event so Android can draw the target box in the correct location r=esawin
MozReview-Commit-ID: 9MN0G7VHGOQ
2017-09-07 15:10:03 -07:00
Kilik Kuo
dddc8978fe Bug 1396268 - Seek operation should not be performed after GeckoHlsPlayer.release is called! r=JamesCheng
MozReview-Commit-ID: 15lXw9hgKdh

--HG--
extra : rebase_source : 0567ca5e9aba9fb8df0191be2eaed717ce0e19f8
2017-09-07 17:00:32 +08:00
Jan Henning
fe27b4a96d Bug 1396292 - Part 1 - Provide facilities to explicitly run permissions check callbacks on the background thread. r=sebastian
The permissions check itself is synchronous, but if we then decide to prompt the user to acquire the permission, we have to do so asynchronously and eventually continue execution on the UI thread as a result. Therefore we need to provide a counterpart of onUIThread() for operations that want their callback to stay off the UI thread in all situations.

MozReview-Commit-ID: AOCX1v69R1J

--HG--
extra : rebase_source : ed0bab9f3ae3198bf2af90eabc86fd5ddd95b3a0
2017-09-02 21:22:30 +02:00
Jan Henning
573a12d384 Bug 1396292 - Part 0 - Clean up imports. r=JanH
MozReview-Commit-ID: 12CjJ2zZ2Qr

--HG--
extra : rebase_source : d216e689ed667e43e200101985bffd45d74fefc8
2017-09-02 21:44:55 +02:00
Jim Chen
f0ca31be3a Bug 1378410 - 1. Support BuildFlag annotation for generated bindings; r=snorp
Add a BuildFlag annotation, which when specified for classes, will wrap
generated code in `#ifdef` or `#ifndef` blocks. This functionality is
used for conditionally excluding generated code when NIghtly becomes
Beta, without the need to regenerate bindings.

MozReview-Commit-ID: L2NFM8CHKqF

--HG--
extra : rebase_source : 6ebc82d11fd1aa4aeb57a46262e678480d23de83
2017-09-01 14:02:29 -04:00
John Lin
0418d058b1 Bug 1394693 - return more appropriate screen orientation types. r=esawin
Allow sensor to change which direction the screen is facing when using 'portrait' or 'landscape' to lock screen orientation.

MozReview-Commit-ID: 4Fqfv4bNuKD

--HG--
extra : rebase_source : 6aed9dc06b151a9bb954a0b088dbd53b8fc52154
2017-08-29 13:43:57 +08:00
Kartikaya Gupta
249641a628 Bug 1394510 - Fix GeckoLayerClient touch generation code. r=botond
MozReview-Commit-ID: I8QlHFM2ew9

--HG--
extra : rebase_source : 8b8c849658d0721fbd32bef2a29dc6b3af98b7d9
2017-08-29 20:44:21 -04:00
Wes Kocher
de530c1ea6 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 5c1Pgm4aVKe
2017-08-29 16:17:50 -07:00
Randall Barker
8271c28e3e Bug 1394526 - Ensure mouse events have the toolbar offset removed on Android r=esawin
MozReview-Commit-ID: DK8p9lOBVaS
2017-08-29 11:51:08 -07:00
Sebastian Hengst
2a9cc8e3be merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BQuBmVtsdki
2017-08-29 20:30:41 +02:00
Jim Chen
324acfa7c1 Bug 1394497 - Use null as profile in GeckoView.preload; r=snorp
We should use null as the profile in GeckoView.preload. We will call
GeckoProfile.initFromArgs later on in GeckoThread.getProfile, when the
profile is actually needed.

MozReview-Commit-ID: JJzIVEiuZPn
2017-08-29 00:06:35 -04:00
Jim Chen
5a2bfe4f0f Bug 1387889 - Don't pass along metastate of synthesized keys; r=esawin
Some key events synthesized from strings can have modifier metastates.
For example, from the sharp S character, we synthesize an S key with Alt
metastate. However, we don't actually want to pass the Alt metastate to
Gecko because the Alt meta key is not actually pressed in this case.

MozReview-Commit-ID: 5XYheyAgqdn
2017-08-29 00:06:30 -04:00
Jan Henning
bf6a3ea142 Bug 1385695 - Propagate "app" debug/release build type to dependencies. r=sebastian
Even when building the "app" module in debug mode, by default Gradle still chooses to build all dependencies in release mode, which means that all of our own source files that reside in such a library (geckoview, respectively thirdparty) will e.g. be missing debug info for local variables.

MozReview-Commit-ID: owZr9yKtYI

--HG--
extra : rebase_source : ae09795ebe70bf4213cd3d145efa355712c702a0
2017-07-30 13:55:11 +02:00
Alastor Wu
c599481d78 Bug 1373888 - part7 : modify platform wakelocks. r=cpearce,snorp,spohl
* OSX
Make the lock of the type kIOPMAssertionTypeNoDisplaySleep and kIOPMAssertionTypeNoIdleSleep
as a singleton. Won't need to require an extra lock.

* Windows
Add |mRequireForDisplay| to ensure the "audio-playing" won't overwrite the previous
display requirement.

* Android
Add "audio-playing" and "video-playing", and make sure the audio-lock won't be cancel
when receiving "WakeLockDelegate.STATE_LOCKED_BACKGROUND".

MozReview-Commit-ID: 97oNX7H2qij

--HG--
extra : rebase_source : 24fa8b267ad97d668fa55462d1f61ef5c92b632f
2017-08-29 15:28:23 +08:00
Jing-wei Wu
5b56b9035b Bug 1391160 - Remember SYSTEM_UI_FLAG_LIGHT_STATUS_BAR when show/hide fullscreen. r=nechen,sebastian,walkingice
Keep the value of SYSTEM_UI_FLAG_LIGHT_STATUS_BAR in window system ui status when show/hide fullscreen.

MozReview-Commit-ID: LHjEQKAPxYn

--HG--
extra : rebase_source : b9762440ed8837d3fb62e796e7587a3d9e76ae1d
2017-08-28 15:37:59 +08:00
Michael Comella
b610d13c01 Bug 1390203: Add NetworkUtils.isWifi. r=sebastian
It doesn't appear we simply check for a wifi connection type anywhere so the
existing code shouldn't need to be updated.

MozReview-Commit-ID: 7MqIbdB7uRI

--HG--
extra : rebase_source : 4a42a080b37104fb49f1f1cfbec884edbab52ba2
2017-08-22 17:27:19 -07:00