Commit Graph
2909 Commits
Author SHA1 Message Date
Phil Ringnalda 8d4672233a Backed out 2 changesets (bug 1287643) for xpcshell failures in test_notification_ack.js and friends
Backed out changeset 816516be0183 (bug 1287643)
Backed out changeset e72a4a5ae5ff (bug 1287643)
2016-08-16 21:28:51 -07:00
Jim Chen 7db9a1b7e6 Bug 1292323 - Update WrapForJNI usages; r=snorp
Replace old flags in WrapForJNI usages with new flags. The calledFrom
and dispatchTo flags are set based on whether the method is native or
non-native, and how the method is used.

Also fix testEventDipatcher to respect NativeJSObject's calledFrom =
"gekco" flag, by moving a test to Gecko thread.
2016-08-12 23:15:52 -04:00
Jim Chen d88b6c6fe2 Bug 1292323 - Clean up WrapForJNI and add calledFrom and dispatchTo attributes; r=snorp
WrapForJNI has some flags that are obsolete or confusing. Clean it up so
that there are fewer but more meaningful flags. Add a "calledFrom" flag
to indicate the intended calling thread and add a "dispatchTo" flag to
indicate where a method call may be automatically dispatched.
2016-08-12 23:15:52 -04:00
Jan Henning a1784ef6db Bug 1277800 - Part 2 - Clear the RecentTabsAdapter's "Tabs from last time" by listening to "Sanitize:Finished". r=liuche
The "Tabs from last time" section of the "Recently closed" folder is only read from sessionstore.bak when the adapter is created and subsequently never updated.

To prevent those tabs from lingering around after clearing history, the history panel initially directly called the RecentTabsAdapter. To handle this in a more generic manner, we now have the RecentTabsAdapter listen for "Sanitize:Finished" notifications instead.

MozReview-Commit-ID: AADXHd5iDo2
2016-06-09 20:08:26 +02:00
Jan Henning f785ee44e3 Bug 1277800 - Part 1 - Convert GeckoPreferences's "Sanitize:Finished" listener to a NativeEventListener. r=liuche
We can't register both GeckoEventListeners and NativeEventListeners for the same event - since GeckoEventListeners are deprecated anyway, we should simply convert GeckoPreferences's "Sanitize:Finished" listener to a NativeEventListener, so as not to cause conflicts with the RecentTabsAdapter.

MozReview-Commit-ID: Dh3iXPQIJPC
2016-07-29 20:50:06 +02:00
[email protected] 64e1c83000 Bug 1278840 - FF for Android offers no way to remove arbitrary sites from history apart from top sites or recent history. r=sebastian
MozReview-Commit-ID: 2QAnzQLBd9q
2016-08-10 08:56:06 -07:00
Saad Quadri 50f536ac23 Bug 1058438 - Migrate disabledHosts from sqlite storage to permission manager. r=MattN
MozReview-Commit-ID: BKlAmwzu3is
2016-08-09 10:14:51 -07:00
Andrzej Hunt 60d73d1493 Bug 1292903 - Add comment explaining getUrlFromAboutReader r=sebastian
MozReview-Commit-ID: EnbsJNl9N4n
2016-08-10 10:14:59 -07:00
Andrzej Hunt fe3e6bf141 Bug 1292903 - Use stripAboutReaderUrl in ToolbarDisplayLayout to avoid crashing on malformed about:reader URLs r=sebastian
MozReview-Commit-ID: Ab8IBeSbZ4R
2016-08-10 10:14:32 -07:00
Carsten "Tomcat" Book 3992048946 Merge mozilla-central to autoland 2016-08-09 15:49:48 +02:00
Carsten "Tomcat" Book aa76bed77a merge fx-team to mozilla-central a=merge 2016-08-09 15:43:44 +02:00
Alastor Wu 2ce1f472f3 Bug 1290029 - go back to the playing tab when double clicking the control interface. r=sebastian
MozReview-Commit-ID: JfXm7vBKqfW
2016-08-09 17:19:11 +08:00
Alastor Wu 887e10f8f8 Bug 1292585 - only update reference tab when tab starts playing. r=sebastian
MozReview-Commit-ID: 2HCWIIFWF96
2016-08-09 01:02:24 +08:00
dragoslav.mlakar b24f9f39ba Bug 1282289 - Avoid crash when using Android add-on/HelperApps. r=nalexander 2016-07-28 07:19:57 +02:00
Jim Chen 258723e13b Bug 1288838 - Follow-up to fix checkstyle error; r=me 2016-08-04 10:00:00 -04:00
Jim Chen d8776994ed Bug 1288838 - Add telemetry native methods to Android telemetry module; r=snorp
Add and use native method calls in Telemetry.java to replace the
telemetry events in GeckoEvent.
2016-08-04 09:16:04 -04:00
Jim Chen 80c1b393bc Bug 1288834 - Implement native request method in ZoomedView; r=snorp
Add a native method in ZoomedView to request zoomed view data. The
native method is implemented in the ThumbnailHelper class on the C++
side because it shares a lot of code with the thumbnailing code.
2016-08-04 09:15:17 -04:00
Jim Chen db003dc215 Bug 1283888 - Remove NOOP event from GeckoEvent; r=me
The NOOP event is only used in Prompt.java and it's not necessary to use
it there.
2016-08-04 09:15:16 -04:00
Nick Alexander dce7dd3520 Bug 1291811 - Move GeckoView Java sources into mobile/android/geckoview. r=sebastian
This is the first step only.  It moves Experiments out of util (just
for convenience) -- I would have liked to have moved WhatsNewReceiver
out of notifications as well, but it's referenced in
AndroidManifest.xml.in and I don't want to break that.

The set of files in GeckoView is slightly larger than what we really
want, but it's close to correct.  Future tickets will get things
compiling and trim the set of files down to size.  Hopefully we can
move notifications/, permissions/, and restrictions/ back to Fennec.

This is not technically required, but it's best to bulk move the files
up front and patch later, rather than jump through hoops to
distinguish the set of files in Gradle (and moz.build).

MozReview-Commit-ID: EWaAeswFoeG
2016-08-02 16:34:32 -07:00
Carsten "Tomcat" Book 4a8f4b4c7a merge mozilla-inbound to mozilla-central a=merge 2016-08-02 17:09:31 +02:00
Alastor Wu 4e6c1a58f2 Bug 1290510 - add nightly flag for media control. r=sebastian
MozReview-Commit-ID: EWEpERiy4WQ
2016-08-01 18:27:42 +08:00
Alastor Wu ec8ac47582 Bug 1288972 - set the visibility of the notification depend on tab's private mode. r=sebastian
MozReview-Commit-ID: 3GN3CBypngd
2016-08-01 16:38:37 +08:00
Tobias Markus 70d87815fc Bug 1289892 - Return gracefully if listFiles returns null. r=gkruglov 2016-07-29 03:01:36 +02:00
Carsten "Tomcat" Book bc6615c2f9 Merge mozilla-central to autoland 2016-07-30 16:49:41 +02:00
Carsten "Tomcat" Book 23747ec523 merge mozilla-inbound to mozilla-central a=merge 2016-07-30 16:20:57 +02:00
James Willcox c3412b379c Bug 1286133 - Use Android VideoView to play HLS r=sebastian,jchen 2016-07-29 17:02:35 -05:00
Broderick Stadden 587ef6788c Bug 1279301 - Move notification classes to notification folder. r=jonalmeida
Moved notification classes to notification folder.  Refactored uses which added
imports to some Gecko classes as well as the Notification classes.  Added getter
to GeckoAppShell for access to static NotificationClient. Changed paths in
AndroidManifest.xml.in to reflect changes.

MozReview-Commit-ID: 2CUJa0YsV1V
2016-07-27 13:57:22 -10:00
Sebastian Kaspari d65d050769 Bug 1220773 - Do not run our updater if app was installed from Google Play. r=ahunt,esawin
MozReview-Commit-ID: Bz4kErHzhen
2016-07-26 10:36:37 +02:00
Grigory Kruglov b473f8a4ef Bug 1277333 - Keep track of a reference to GeckoApplication to eliminate "no context NPE" crashes r=sebastian
MozReview-Commit-ID: 7jzOflrIcLZ
2016-07-26 10:40:57 -07:00
Jan Henning 3c7b553aa9 Bug 1288186 - Do the RecentTabsAdapter wait from a separate thread. r=jchen
When reading the previous session file, the RecentTabsAdapter waits for GeckoApp (initialisation runs on the main thread) to have actually moved the previous session file to its correct location (happens from the background thread). Hence we can't do the wait from either of those two threads, because we risk a deadlock otherwise if the RecentTabsAdapter happens to be initialised *before* GeckoApp.

MozReview-Commit-ID: 3GBeReP2iQW
2016-07-22 19:07:41 +02:00
Michael Comella e999f48e07 Bug 1289006 - Add code to assert potential crashing case never happens & tests. r=grisha
I expect the crashes occurred because one of the following:
  * the store already existed as a file
  * the store was a directory that did not have the appropriate permissions

In the telemetry code, none of the cases above should happen so I assert that
they never do.

If the crashes did occur for these reasons, the user will unfortunately
continue to crash but at least we'll know where our assumptions are going wrong.

I originally intended to write a regression test for listFiles returning null
but it requires the application code to be modified in non-trivial ways (e.g.
accessor methods we might forget to use) so I decided against it.

MozReview-Commit-ID: 9V9H84ehbdO
2016-07-25 14:24:03 -07:00
Michael Comella 5de684d320 Bug 1289006 - Return gracefully if listFiles returns null in telemetry store. r=grisha
This changeset will correct the crash we're seeing in the bug.

The docs support that File.listFiles can return null.

MozReview-Commit-ID: FHYGErshhoP
2016-07-25 13:57:45 -07:00
Andrzej Hunt bff9c4dbc9 Bug 1288124 - Add basic/blank Activity Stream panel and show if flag is enabled r=jonalmeida,sebastian
MozReview-Commit-ID: JqbOywOFsoF
2016-07-21 11:31:57 -07:00
Carsten "Tomcat" Book 19af329f0e merge mozilla-inbound to mozilla-central a=merge 2016-07-25 15:50:41 +02:00
Carsten "Tomcat" Book 496d5f888a merge fx-team to mozilla-central a=merge 2016-07-25 15:49:05 +02:00
Makoto Kato f8b3f50f45 Bug 1094729 - Fix bustage. r=me
MozReview-Commit-ID: ExUWhdl6Z3Y
2016-07-25 16:32:24 +09:00
Sebastian Kaspari c9ad7c66ee Bug 1221646 - Report getInstallerPackageName() in telemetry. r=ahunt,liuche
MozReview-Commit-ID: EiPNDsVam0x
2016-07-20 11:58:35 +02:00
Sebastian Kaspari 58d9c33468 Bug 1284387 - Remove audio control notification after playing tab has been closed. r=ahunt
MozReview-Commit-ID: 9nrlKpcedzQ
2016-07-21 15:33:48 +02:00
Makoto Kato fe38bc42a3 Bug 1094729 - Part 2. Support floating candidate window for hardware keyboard on Android 5+. r=jchen
MozReview-Commit-ID: G148os7J9wO
2016-07-20 16:19:05 +09:00
Makoto Kato f4520f5567 Bug 1094729 - Part 1. Add utility function to convert Gecko's coords to Layer view coords. r=snorp
MozReview-Commit-ID: 7CzyHQkVVDz
2016-07-01 15:37:37 +09:00
Carsten "Tomcat" Book c0a2b46b9b merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Carsten "Tomcat" Book 3c6d6ab8d0 merge fx-team to mozilla-central a=merge 2016-07-22 11:56:37 +02:00
Andrzej Hunt f158e83543 Bug 1288256 - Post: add comments explaining HomePager specific methods in HomeScreen r=sebastian
MozReview-Commit-ID: 5hgTMzff6zq
2016-07-21 08:03:37 -07:00
Andrzej Hunt d2d88d9489 Bug 1288256 - Part 3: update BrowserApp to use HomeScreen interface instead of
HomePager r=sebastian

MozReview-Commit-ID: 7h6s6ewfSOu
2016-07-21 08:48:11 -07:00
Andrzej Hunt 172a448e0c Bug 1288256 - Part 2: extract HomePager interface into HomeScreen r=sebastian
This will permit us to plug in other HomeScreen implementations as needed.

MozReview-Commit-ID: Dvmyk1sdBT6
2016-07-21 08:48:23 -07:00
Andrzej Hunt 02099044fb Bug 1288256 - Part 1: update naming of "home pager container" to "home screen container" r=sebastian
This is to help keep the terminology more clear: this container will allow displaying any of our
home screen implementations, and not just the HomePager.

MozReview-Commit-ID: 4kqNipgvQ5I
2016-07-20 14:58:19 -07:00
Andrzej Hunt adc8b7db32 Bug 1288256 - Pre: remove unneeded imports r=me
MozReview-Commit-ID: 5q0FhQVPY8P
2016-07-20 14:58:35 -07:00
Carsten "Tomcat" Book b366a410a1 Backed out changeset 142caeafd119 (bug 1286663) 2016-07-21 08:18:23 +02:00
Carsten "Tomcat" Book 8cc058c83a Backed out changeset d8a07729a34c (bug 1286663) 2016-07-21 08:04:52 +02:00
Jim Chen d5a351d0e4 Bug 1286663 - Remove THUMBNAIL event from GeckoEvent; r=snorp
Remove the now-obsolete THUMBNAIL event from GeckoEvent, as well as its
implementations in nsAppShell and AndroidBridge.
2016-07-21 00:41:13 -04:00