Commit Graph
2909 Commits
Author SHA1 Message Date
Jim Chen bc5ab56b67 Bug 1305271 - 3. Use @JNITarget for Distribution.getDistributionDirectories; r=snorp
Distribution.getDistributionDirectories is currently annotated with
@WrapForJNI, but because it's used from JS through JNI.jsm, the
@JNITarget annotation is more appropriate.
2016-09-28 23:49:25 -04:00
Dylan Roeh fe71e50630 Bug 1305086 - Move code from GeckoApp.onDestroy() to BrowserApp.onDestroy() so that finishing a CustomTabsActivity doesn't kill the process. r=snorp 2016-09-28 15:44:26 -05:00
Grigory Kruglov 886aee8fa0 Bug 1304914 - Don't show "offline version" notifications on error pages r=ahunt
MozReview-Commit-ID: BE6GPLCAU3h
2016-09-26 13:53:52 -07:00
Dylan Roeh ee3bc44cb1 Bug 1303776 - Call closeTab on the active tab when finishing a CustomTabsActivity. r=snorp 2016-09-23 11:02:45 -05:00
James Willcox 5ad003924d Bug 1278581 - Show neterror page if you enter an unknown URI scheme into urlbar on Android r=sebastian 2016-09-29 08:27:54 -05:00
Andrzej Hunt 45f7811277 Bug 1304777 - Part 2: Fix panel removal migration to not discard DEFAULT flag if set r=sebastian
If the replacement panel was DEFAULT, then the migration should retain the DEFAULT flag.
By trying to ensure visibility of the default panel, we accidentally discarded the DEFAULT flag.
This patch provides a minimal fix for not discarding the default flag. It might be better
to rearchitect the whole method, but a minimal solution is preferred for now since this requires
uplifting to beta.

MozReview-Commit-ID: EkbDD7pipgJ
2016-09-26 13:16:03 -07:00
Andrzej Hunt 2076788030 Bug 1304777 - Part 1: Perform homeconfig cleanup to ensure default still exists r=sebastian
Bug 1251362 can result in there no default panel being set (this happens if the history
panel was the default panel before the panel migration). We can reuse the code from a previous
bug which sets history as the default panel if no other panel is set as default.

A second commit fixes the broken migration to ensure that history remains the default
homepanel, however this cleanup migration will help ensure existing clients get fixed.

MozReview-Commit-ID: EcUb2uUfOeJ
2016-09-26 13:12:16 -07:00
Sebastian Kaspari 1efface0d9 Bug 1303292 - Media notification: Use icons that have at least the target size. r=ahunt
MozReview-Commit-ID: 7pNfrFEtyUd
2016-09-23 13:36:27 +02:00
Sebastian Kaspari dabec0cf1a Bug 1289140 - LauncherActivity: Exclude from recents and filter flags. r=ahunt
MozReview-Commit-ID: 2brjUGbl7hx
2016-09-09 10:13:14 +02:00
george f170b0508e Bug 1324656 - Replaced FILL_PARENT with MATCH_PARENT in VideoPlayer.java. r=walkingice0204.
Changed VideoPlayer.java
Replaced FILL_PARENT with MATCH_PARENT on line 194
Fixes bug 1324656
2016-12-21 09:35:23 +05:30
Dylan Roeh f559d00720 Bug 1310195 - Set LayerView paint state to PAINT_BEFORE_FIRST in GeckoApp.initialize. r=jchen 2016-10-31 16:15:54 -05:00
Jim Chen 1a9c800b6b Bug 1291368 - 2. Move BitmapUtils.getLauncherIcon to GeckoApp; r=snorp
BitmapUtils.getLauncherIcon is only called by GeckoApp, and it has some
dependencies on Fennec resources. It makes sense to move it to GeckoApp
entirely.
2016-09-23 15:27:21 -04:00
Jim Chen 5778ccfbb3 Bug 1291368 - 1. Remove dependency on Fennec resources class in BitmapUtils; r=snorp
In BitmapUtils.getResources(), instead of using reflection on the Fennec
resources class to find a resource id, call Resources.getIdentifier and
pass in a package name. This eliminates the dependency on the Fennec
resources class, and potentially improves geckoview support for third
party consumers, because an application can now use the "drawable://"
URI to refer to its own resources.
2016-09-23 15:27:21 -04:00
Carsten "Tomcat" Book 564bff267b merge mozilla-inbound to mozilla-central a=merge 2016-09-23 12:05:53 +02:00
Jim Chen 74d6fcb5ba Bug 1304145 - 5. Implement NotificationListener in NotificationClient; r=nalexander
Provide Fennec's implementation of GeckoAppShell.NotificationListener in
NotificationClient. A lot of the code was removed in an earlier patch
from GeckoAppShell, so combined with this patch, we're essentially
moving code from GeckoAppShell to NotificationClient.
2016-09-22 16:38:19 -04:00
Jim Chen 6167f7c701 Bug 1304145 - 4. Use string names instead of integer IDs for notifications; r=nalexander
Use string names instead of integer IDs to identify notifications. The
integer IDs came from the hashes of the string names, so they are not
guaranteed to be unique. Because the names from Gecko are a combination
of the site origin and notification tag, there can be unintentional
collisions, or worse, a site can intentionally make its notification
collide with and replace another site's notification.
2016-09-22 16:38:19 -04:00
Jim Chen e8f36daaea Bug 1304145 - 3. Move GeckoService and notification package to Fennec; r=nalexander
GeckoService and the notification package have some interdependencies,
so if we want to move the notification package, we have to move
GeckoService also. With that said, it's good to move GeckoService in any
case, because it's a Fennec component just like GeckoApp.
2016-09-22 16:38:19 -04:00
Jim Chen 6f4df53375 Bug 1304145 - 2. Change GeckoAppShell's notification interface; r=nalexander
Instead of using NotificationClient directly from GeckoAppShell, add a
NotificationListener interface, which NotificationClient would
implement. This isolates NotificationClient (and the notification
package) from GeckoAppShell and lets us move the notification package to
Fennec. It also makes a cleaner interface for GeckoView consumers to
implement notification support.
2016-09-22 16:38:19 -04:00
Kilik Kuo 50996b8bd5 Bug 1302331 - [Part2] Make CryptoInfo as an argument for method CodecProxy.input. r=jchen,jolin
MozReview-Commit-ID: JeqNNixbRvv
2016-09-22 14:07:56 +08:00
Kilik Kuo aa30db33f4 Bug 1302331 - [Part1] Support MediaCodec.CryptoInfo in Sample class r=jchen,jolin
MozReview-Commit-ID: LT89uvRxm4z
2016-09-17 13:17:33 +08:00
Kartikaya Gupta 2a28a1ad62 Bug 1301593 - Block versions of the Galaxy Note 4 from using the dynamic toolbar as well. r=sebastian
MozReview-Commit-ID: KOlIwP8xLhy
2016-09-13 11:42:58 -04:00
Carsten "Tomcat" Book c9ac004310 Merge mozilla-central to fx-team 2016-09-21 12:08:57 +02:00
Carsten "Tomcat" Book ff5b25e2c0 merge mozilla-inbound to mozilla-central a=merge 2016-09-21 12:03:31 +02:00
James Cheng 3d2b635907 Bug 1297556 - Add telemetry to know how many crashes happens in decoding process. r=bsmedberg, r=jolin
MozReview-Commit-ID: 52hhddXOvL3
2016-09-19 15:47:55 +08:00
Nick Alexander 2342f1d500 Bug 1303468 - Part 2: Move Fennec- and Gradle-specific file back to base/. r=jchen
This is only there to silence the linter.

MozReview-Commit-ID: 8zEDsrbjyeo
2016-09-16 15:55:01 -07:00
Nick Alexander a983768045 Bug 1303468 - Part 1: Move more things into GeckoView. r=jchen
MozReview-Commit-ID: CEjyq0TFn6j
2016-09-16 15:53:39 -07:00
Jim Chen 10f0f77fda Bug 1303806 - 1. Move classes from geckoview to Fennec; r=nalexander
ANRReporter is a telemetry tool that belongs in Fennec code.

GeckoJavaSampler is a developer tool that belongs in Fennec code.

SwipeDismissListViewTouchListener is only used in FormAssistPopup, which
is no longer referenced in geckoview code.
2016-09-20 17:42:08 -04:00
James Willcox a604770e41 Bug 1301043 - Remove HLS player if you switch tabs in Fennec r=ahunt 2016-09-20 15:54:00 -05:00
James Cheng 87dba1163d Bug 1302336 - Rename ICodecManager into IMediaManager. r=jolin
MozReview-Commit-ID: JGIW3BfAwCI
2016-09-14 11:07:45 +08:00
Wes Kocher fa2daddb65 Merge m-c to inbound, a=merge 2016-09-16 14:35:12 -07:00
Jan Henning cbd3eebd40 Bug 1302424 - Check panelStateChangeListener isn't null before using it. r=Grisha
MozReview-Commit-ID: GogUQ4edJvU
2016-09-16 17:38:41 +02:00
Dylan Roeh 16491877d5 Bug 1300574 - Use the back button for navigation in custom tabs when possible. r=snorp 2016-09-16 09:21:09 -05:00
Eugen Sawin fde81e2767 Bug 1302189 - [4.1] Check for null when retrieving input streams from GeckoJarReader. r=kats 2016-09-15 15:14:09 +02:00
Jim Chen 71c4727c5e Bug 1258472 - 2. Move guest mode state management to GeckoProfile; r=nalexander
Because guest mode is intimately tied to the profile, it'd be hard to
keep guest mode out of geckoview code entirely, But we also don't want
any dependency on GuestSession from geckoview code, so this patch moves
the part of GuestSession that manages guest mode state to GeckoProfile.
2016-09-14 13:33:09 -04:00
Jim Chen 0efa8e0f16 Bug 1258472 - 1. Start first-run telemetry session outside of GeckoProfile; r=nalexander
Move the first-run telemetry session from GeckoProfile to BrowserApp, so
there is no longer any dependency on Telemetry from inside GeckoProfile.
2016-09-14 13:33:09 -04:00
Jim Chen 44870b81a5 Bug 1291384 - 2. Convert GeckoProfile.getDB calls to BrowserDB.from calls; r=nalexander
Mass convert GeckoProfile.getDB() calls to BrowserDB.from() calls,
whether using Context or GeckoProfile.
2016-09-14 12:46:50 -04:00
Jim Chen 63a4d33265 Bug 1291384 - 1. Take BrowserDB out of GeckoProfile; r=nalexander
Remove references to BrowserDB and its factory from GeckoProfile.
Instead of keeping the DB in mDB, GeckoProfile now keeps an arbitrary
object in mData. Using a data object lets us avoid needing another map
to map profiles to DBs. This feature could be very useful for GeckoView
consumers as well.

The new way to get a BrowserDB from a profile/context is through
BrowserDB.from(Context) or BrowserDB.from(GeckoProfile), which takes
care of creating a local DB if necessary and associating the DB with the
profile.
2016-09-14 12:46:50 -04:00
Jim Chen af696a1a37 Bug 1301515 - Remove FormAssistPopup dependency in geckoview; r=sebastian
Remove the input method change notification that GeckoInputConnection
sends to FormAssistPopup, so there's no dependency on FormAssistPopup
from inside GeckoInputConnection or GeckoInterface. Instead,
FormAssistPopup now actively queries the current input method, and
performs blocklisting based on that.
2016-09-14 12:43:36 -04:00
Jim Chen 3f18bef980 Bug 1291385 - 3. Don't send viewport flush message; r=snorp
We used to use it to sync viewport metrics between Gecko and Java, but I
don't think this is needed anymore.
2016-09-14 12:43:36 -04:00
Jim Chen d5ca3a5a91 Bug 1291385 - 2 .Move restrictions package from geckoview to Fennec; r=nalexander
The restrictions package really belongs in Fennec code rather than in
geckoview code. The move also eliminates some dependency errors because
the restrictions package references some classes in Fennec code.
2016-09-14 12:43:36 -04:00
Jim Chen 69399ae804 Bug 1291385 - 1. Remove geckoview dependency on certain GeckoApp constants; r=sebastian
Code in geckoview depends on several string constants in GeckoApp.
This patch moves PREFS_OOM_EXCEPTION and ACTION_ALERT_CALLBACK from
GeckoApp to GeckoAppShell, to reverse the dependency. Ideally, we'd want
those constants to not be used or used differently in geckoview code,
but this is a quick workaround for now. GeckoThread uses
GeckoApp.ACTION_HOMESCREEN_SHORTCUT, but that block of code is actually
obsolete, so this patch removes the code block and the dependency.
2016-09-14 12:43:36 -04:00
Jim Chen 5f31753209 Bug 1258470 - 3. Small optimizations in ThumbnailHelper; r=nalexander
This patch includes a small memory optimization of using ArrayList and
`volatile int` for storing the pending thumbnails list and pending
width, instead of using LinkedList and AtomicInteger, respectively.

The patch also fixes a possible race condition due to calling
processNextThumbnail outside of a lock. Now it must be called inside a
lock and its name is changed to reflect that.
2016-09-14 12:43:36 -04:00
Jim Chen 5063b8a9c4 Bug 1258470 - 2. Move thumbnail code out of BitmapUtils; r=nalexander
Move the "thumbnail:" handler out of BitmapUtils and into
ThumbnailHelper and PromptListItem.

The patch adds two overloads of the getAndProcessThumbnailFor method in
ThumbnailHelper, which handle the tasks of getting a thumbnail for a
specific tab and calling a given BitmapLoader.

Because only PromptListItem makes use of the "thumbnail:" convention,
the actual handling of "thumbnail:" is moved to PromptListItem, which
calls ThumbnailHelper to get the thumbnail.
2016-09-14 12:43:36 -04:00
Jim Chen 44c72cf571 Bug 1258470 - 1. Remove RTL and ZoomConstraints variables from gfx; r=rbarker
We no longer send viewport metadata, so we don't actually make use of
the RTL and ZoomConstraints variables we keep in Java. There is a single
usage of an RTL flag in ImmutableViewportMetrics.offsetViewportByAndClamp,
but I think the two branches are equivalent, so the RTL flag is not needed
there either.
2016-09-14 12:43:35 -04:00
Jan Henning 36f3c877bd Bug 1300647 - Part 1 - Don't bother reloading a zombified tab if we're about to exit the app. r=ahunt
When pressing the back button reaches the beginning of session history for a tab opened from an external app, we both close the tab and send Firefox into background. Closing the tab leads to some other tab getting selected instead - if that other tab was zombified, this means that we'll then start restoring it.

This behaviour is
- visibly distracting, as that other tab will be visible for a split second while it starts reloading before Firefox finally disappears into the background
- wasteful of resources - while restoring a zombified tab is usually done from cache, at the very least we'll waste some CPU cycles reloading a tab even though we're in background

Therefore, in this situation the UI now alerts the session store that it needn't bother restoring that other tab if it's in a zombie state. Instead, we'll restore it the next time Firefox comes into foreground - if the tab is still selected by then.

MozReview-Commit-ID: 3FcjCZrJ0Ds
2016-09-13 20:46:03 +02:00
Grigory Kruglov 63cabdf2f1 Bug 1300222 - Trigger heads-up notification mode for incoming tabs r=ahunt
MozReview-Commit-ID: JvEeWIizQVK
2016-09-09 16:51:40 -07:00
Jan Henning 83dfc3e999 Bug 1277978 - Part 5 - Once we can access the panelStateChangeListener, use it to retrieve the cached tabs count when initialising the HistoryAdapter. r=liuche
While passing the cached tabs count to the HistoryAdapter in its constructor greatly simplifies getting the cached count into the adapter before the RecyclerView initialises, this relies on the History panel having the panelStateChangeListener available before the HistoryAdapter is created in onCreate().

MozReview-Commit-ID: 64IbAe6SaEq
2016-08-29 20:51:21 +02:00
Jan Henning 2d97a6f53e Bug 1277978 - Part 4 - Actually cache the recent tabs count when it updates. r=liuche
MozReview-Commit-ID: JUsM3qdxhIr
2016-09-10 13:51:35 +02:00
Jan Henning c241e2862e Bug 1277978 - Part 3 - Allow the RecentTabsAdapter to indicate whether the tab count is reliable. r=liuche
After we've set the cached tabs count to display within the history adapter, we don't want to revise that number downwards as long as the RecentTabsAdapter hasn't yet checked all of its data sources.

MozReview-Commit-ID: BMpiaEb3kGQ
2016-08-20 17:49:34 +02:00
Jan Henning 786582848c Bug 1277978 - Part 2 - Allow saving a cached recent tabs count in BrowserApp. r=liuche
Getting the total number of recently closed tabs involves waiting for Gecko to actually send the closed tabs to the Java UI. This means that (unless there are some "Tabs from last time" present) when showing the history panel we always start out with the Recently closed folder hidden and then unhide (and animate) it once we've finally received the closed tabs.

Because this is visually distracting, we should cache the closed tabs count somewhere, so we can decide on the smart folder visibility as soon as the CombinedHistoryAdapter initialises.

MozReview-Commit-ID: 8uYCbM7eiSt
2016-08-29 20:03:12 +02:00