Commit Graph
625 Commits
Author SHA1 Message Date
Jim Chen 96edcf64e6 Bug 1219016 - Don't use context class name to detect webapp process; r=mfinkle
The code in WebappsUpdateTimer.js tried to detect a webapp process by
using the context class name, which is extremely fragile. This patch
makes it detect the current Gecko profile instead.
2015-11-11 21:28:59 -05:00
Jim Chen efee2de291 Bug 1219016 - Use application context where appropriate; r=snorp
This patch makes code use the application context from GeckoAppShell
instead of the activity context. Enough changes are made to let headless
mode work.
2015-11-11 21:28:59 -05:00
Jim Chen a61dbca324 Bug 1219016 - Store application context in GeckoAppShell; r=snorp
This patch adds separate setter and getter for the application context
in GeckoAppShell. The existing getContext method is misused for both
application and activity context, so new methods are added to improve
consistency.
2015-11-11 21:28:59 -05:00
Allison Naaktgeboren 66da01e02c Bug 1222116 - add smsto:// support to fennec.r=mcomella 2015-11-09 18:22:06 -08:00
sgiles 51eff860f1 Bug 1174228 - Set up TYPE_APP for navigator.getDeviceStorage for B2GDroid r=dhylands 2015-11-06 05:55:40 +00:00
Michael Comella 98d00a508a Bug 1219950 - Remove special youtube intent handling code. r=rnewman
This code was originally added to request HTML5 video from Youtube under
certain conditions but Youtube serves HTML5 video by default and it is no
longer necessary.
2015-10-29 16:08:11 -07:00
James Willcox 17d1c2c52e Bug 1217942 - Use the fastest mode for VR-related sensor data on Android r=jchen 2015-10-27 12:43:50 -05:00
Reuben Morais 6b197b98a6 Bug 748391 - Implement markMessageRead on the Android backend. r=snorp 2015-10-13 01:08:51 -03:00
Carsten "Tomcat" Book b213b799cc merge mozilla-inbound to mozilla-central a=merge 2015-10-09 11:43:07 +02:00
Michael Comella ffd012de5e Bug 1173147 - Show prompt for GeckoAppShell.openUriExternal. r=sebastian 2015-09-18 17:21:07 -07:00
Wes Kocher 89932923b7 Backed out 5 changesets (bug 1173147) because bug 1201206 got backed out CLOSED TREE
Backed out changeset e0db94364c19 (bug 1173147)
Backed out changeset afd881fc08a2 (bug 1173147)
Backed out changeset 5a4df2457628 (bug 1173147)
Backed out changeset a43a907c02fe (bug 1173147)
Backed out changeset 494ff0d7f3bb (bug 1173147)
2015-10-08 12:37:17 -07:00
Michael Comella 035079e036 Bug 1173147 - Show prompt for GeckoAppShell.openUriExternal. r=sebastian 2015-09-18 17:21:07 -07:00
Reuben Morais b653b039b4 Bug 1197010 - Implement Android backend for createMessageCursor/createThreadCursor. r=snorp 2015-10-06 19:40:38 -03:00
Wes Kocher 943b98bde3 Backed out changeset 3f9ca060b8d0 (bug 1197010) for android build failures 2015-10-06 16:18:13 -07:00
Reuben Morais b663e80bd8 Bug 1197010 - Implement Android backend for createMessageCursor/createThreadCursor. r=snorp 2015-10-06 19:40:38 -03:00
Reuben Morais ddfbb8b0c5 Bug 1172740 - Implement Android HAL backend for alarms. r=snorp 2015-10-01 14:40:53 -03:00
James Willcox 751e8882c2 Bug 1182665 - Use a direct JNI call to determine screen size in nsScreenManagerAndroid r=jchen 2015-09-28 09:36:56 -05:00
Fabrice Desré 227145901a Bug 1204557 - Stop using base64 for native app icons in the application registry r=jchen 2015-09-24 11:53:05 -07:00
Jim Chen 615d73741d Bug 1209574 - Move GeckoEditable management to nsWindow; r=esawin
This patch removes the GeckoEditable code in GeckoAppShell, and make
nsWindow create a GeckoEditable for itself when opening a window.
Instead of calling GeckoAppShell, nsWindow can now call GeckoEditable
methods directly.
2015-10-08 15:25:49 -04:00
Jim Chen 89c212b5ad Bug 1209574 - Move InputConnectionHandler out of gfx package; r=esawin
InputConnectionHandler really doesn't belong in the gfx package, and
the code to call key event handlers really doesn't belong in LayerView.
This patch refactors things, so that InputConnectionHandler is renamed
to org.mozilla.gecko.InputConnectionListener, and the interface is now
used by GeckoView instead of by LayerView.
2015-10-08 15:25:49 -04:00
Mark Finkle e3ddd7eb79 Bug 1078432 - Use Android print service to enable cloud printing r=sebastian 2015-08-31 17:54:23 -04:00
Kartikaya Gupta 5740126bd6 Bug 1196914 - Don't scroll to focused input unless the IME went away and came back. r=rbarker 2015-08-21 08:52:11 -04:00
William Chen 8b4785e7f6 Bug 1131470 - Part 2: Update screen configuration HAL to report orientation angle. r=snorp,mwu 2015-08-18 14:55:15 -07:00
Jim Chen dfcf5a84c5 Bug 1192077 - Convert AndroidBridge JNIEnv calls; r=esawin 2015-08-13 00:53:39 -04:00
Jim Chen 3619ab253f Bug 1189995 - Move GeckoAppShell.pumpMessageLoop to GeckoThread; r=esawin
This method is used by Gecko to pump the Android message loop, and it's
also more suited to GeckoThread than GeckoAppShell.
2015-08-13 00:53:39 -04:00
Jim Chen bb1366b29c Bug 1189995 - Move GeckoAppShell.runGecko to GeckoThread; r=esawin
GeckoAppShell.runGecko really should be in GeckoThread because
GeckoThread already takes care of most of the preparation when running
Gecko. This patch merges runGecko into GeckoThread.run, but split the
argument-building code into its own method.
2015-08-13 00:53:39 -04:00
Jim Chen cea34e4151 Bug 1191083 - Rename and expand GeckoThread.LaunchState; r=snorp
GeckoThread.LaunchState now covers the entire GeckoThread lifetime and
not just launch, so it's renamed to GeckoThread.State. More utility
methods are added to check for the current state.
2015-08-13 00:53:38 -04:00
Mark Capella 7800d0949d Bug 1191872 - Move annotations to org.mozilla.gecko.annotation package, r=jchen 2015-08-10 19:19:51 -04:00
Mark Capella 68e521a7af Bug 1191161 - p3 - Rename / Shorten WrapElementForJNI to WrapForJNI, r=jchen 2015-08-07 02:09:08 -04:00
Mark Capella de4cb4a481 Bug 1191161 - p2 - Remove OptionalGeneratedParameter, which no longer has any meaning, r=jchen 2015-08-06 01:55:29 -04:00
Jim Chen e60222057c Bug 1186467 - Make NativeJSContainer and NativeJSObject extend JNIObject; r=snorp
JNIObject is the base class for any class that wish to use per-instance
native methods. It encapsulates the long native pointer that used to be
in NativeJSContainer.
2015-08-04 17:47:28 -04:00
Michael Comella e2723b95a2 Bug 1175532 - Only add CATEGORY_BROWSABLE to intent & android-app uris. r=margaret
This patch is originally from bug 1182328 and r+'d there.
2015-07-10 16:42:00 -07:00
Michael Comella 51997ff7c0 Bug 1175532 - Use Intent.parseUri for intent:// & android-app://. r=margaret
We now specify no flags to Intent.parseUri so it can accept and parse arbitrary
URIs.

This patch is originally from bug 1182328 and r+'d there.
2015-07-10 16:40:00 -07:00
Qiang Lu c95321bc51 Bug 1178069 - Check devices capability before enable use of vp8 hardware acceleration using android.media.MediaCodecList and android.media.MediaCodecInfo r=jrmuizel 2015-07-24 12:45:55 -07:00
Michael Comella 752619d94b Bug 1173200 - Open file uris w/ mimetype, all others without. r=wesj
Using my test page (https://people.mozilla.org/~mcomella/test/uri.html), I have
confirmed that the following schemes still work:
  * intent
  * android-app
  * custom schemes registered w/ Android (i.e. "mcomella")
  * tel
  * mailto

Additionally, I downloaded a PDF and successfully opened it via both the
notifications tray and about:downloads.

This gives me confidence that all links should work.
2015-07-13 16:30:42 -07:00
Michael Comella fb554119ca Bug 1182328 - Backed out changeset 2e02ac7f87ab. r=me
Did not mean to land this WIP patch.
2015-07-13 17:14:41 -07:00
Michael Comella 7278ba7f6f Bug 1182328 - Only add Browsable to apps with schemes that are not file. r=margaret 2015-07-09 17:28:37 -07:00
Robert O'Callahan a33364b916 Bug 1143575. Android's screenshotting code should invalidate the LayerManagerComposite to ensure composition will actually happen. r=nical
There is some ambiguity about whether ScheduleComposite will necessarily
trigger a composite all the way to nsWindow::DrawWindowUnderlay. Android
robocop tests assume it will, because they rely on DrawWindowOverlay
being called so they can take a screenshot and make progress,
but this is a very fragile assumption. They also rely on the entire
window being painted, which is also a fragile assumption.

This patch improves the situation by explicitly invalidating the current
window area when Android Java code needs to trigger a composite. This avoids
regressions from future patches in this series which make composition bail
out when there is nothing invalid.

The resulting setup is still a bit fragile for my taste but I'm not sure
what the ideal solution would be.
2015-06-12 03:20:04 +12:00
Michael Comella f248c99a9d Bug 1168662 - Return AppConstants.ANDROID_PACKAGE_NAME w/ EXTRA_APPLICATION_ID. r=margaret
This is more appropriate than our internal org.mozilla.gecko package name as it
provides the distinction across channels and has more public facing names than
gecko.
2015-06-17 10:12:30 -07:00
Sebastian Kaspari a90b240c63 Bug 1176018 - Do not set CATEGORY_BROWSABLE for Intents with file URI scheme. r=margaret 2015-06-29 18:38:40 +02:00
Richard Newman dc47ce50ac Bug 1031569 - Don't query for non-exported activities, don't crash if we fail to launch one. r=mfinkle
Tested youtube.com, send tab, sharing menu.
2015-06-15 18:56:06 -07:00
Michael Comella 1122dffe5a Bug 1168662 - Add EXTRA_APPLICATION_ID to all outgoing Intents. r=margaret 2015-06-12 16:30:20 -07:00
Michael Comella fd2c250814 Bug 1168662 - Modify all outgoing Intents with CATEGORY_BROWSABLE. r=margaret 2015-06-12 16:26:24 -07:00
Michael Comella ed3729097e Bug 1170884 - Replace "new Integer" with "Integer.valueOf". r=nalexander 2015-06-11 12:25:27 -07:00
Michael Comella 73c39b4789 Bug 1164114 - Open Intent URIs without a specific package set. r?margaret
The Android Activity chooser dialog will appear.
2015-06-08 16:17:35 -07:00
Michael Comella cc27e94e30 Bug 1168998 - Filter intent:// URIs. r?margaret 2015-06-08 13:56:17 -07:00
Youngsun Suh 9649e7d113 Bug 1170852 - Remove unused method, GeckoAppShell.decodeBase64 r=mcomella 2015-06-06 20:55:00 -07:00
Michael Comella 15eccb9974 Bug 851693 - Open Activity via Intent URI if it is installed. r=margaret 2015-05-07 16:32:37 -07:00
Nathan Toone 55b9d2c2a4 Bug 1161195 - Part 2: Rename variables. r=nalexander
Rename variables to be consistent with the name used in confvars.sh.
2015-05-05 20:11:15 -06:00
Jim Chen 13969fb4ad Bug 1157908 - Optimize pumpMessageLoop call to use less JNI; r=snorp 2015-04-27 20:52:52 -04:00