Commit Graph
2909 Commits
Author SHA1 Message Date
Jim Chen 0a0568bae4 Bug 1260243 - Add GeckoThread.waitOnGecko; r=snorp
GeckoThread.waitOnGecko blocks the current thread and waits for previous
events on the Gecko thread to finish executing before continuing. This
is implemented by synchronously running a dummy event on the Gecko
thread. This patch also lets us get rid of sendEventToGeckoSync in
GeckoAppShell.
2016-04-05 21:43:40 -04:00
Jim Chen a7ba74e1e0 Bug 1259653 - Respect the profile when starting GeckoService; r=snorp
In GeckoService, wait until we get an Intent before starting GeckoThread
using the profile information contained in the Intent.
2016-04-05 21:43:40 -04:00
Jim Chen 876e11475a Bug 1259653 - Support initializing GeckoThread with a specific profile; r=snorp
Add GeckoThread.initWithProfile that make it easy to target a particular
profile. The method succeeds when GeckoThread has not been initialized
or is already using the specified profile. It fails when the current
profile does not match the specified profile.
2016-04-05 21:43:40 -04:00
Jim Chen 7f7389f2d8 Bug 1259653 - Make sure GeckoThread handles custom profiles; r=snorp
Make sure GeckoThread adds the appropriate profile arguments even for
custom profiles.
2016-04-05 21:43:40 -04:00
Jim Chen e5f9823852 Bug 1259653 - Treat custom profiles differently in GeckoProfile; r=margaret
Make sure we treat profiles under a custom directory differently. To
simplify things, custom profiles must already exist, and we don't
attempt to cache instances of GeckoProfile containing custom profiles.

Custom profiles are an edge use case (must be passed in via Intent
arguments) so I think it's reasonable to have this behavior change.
2016-04-05 21:43:40 -04:00
Jim Chen 186a8f8447 Bug 1258554 - Only determine GeckoThread arguments when needed; r=snorp
Only determine GeckoThread arguments when GeckoThread has not been
started in GeckoApp. Otherwise, if GeckoThread has already started, we
don't need those arguments.
2016-04-05 21:43:40 -04:00
Jim Chen c0b2e62d32 Bug 1258554 - Don't touch GeckoApp from GeckoProfile; r=margaret
GeckoProfile.get() was reaching into GeckoApp to get and set the current
profile. I think now that GeckoThread is managing the profile, we don't
need that anymore. Also move the GuestSession check to getFromArgs, and
get rid of GeckoApp.getDefaultProfileName and
GeckoProfile.sIsUsingCustomProfile, which are redundant now.
2016-04-05 21:43:40 -04:00
Jim Chen 7870ffc589 Bug 1258554 - Remove GeckoApp.mProfile; r=margaret
GeckoApp should not be caching the current profile.
2016-04-05 21:43:40 -04:00
Jim Chen c551441781 Bug 1258554 - Let GeckoThread manage the active profile; r=snorp r=margaret
Because Gecko itself can only handle one profile per process, we should
let the GeckoThread singleton manage our GeckoProfile instance on the
Java side, instead of using GeckoApp.
2016-04-05 21:43:39 -04:00
Nick Alexander b362af506c No bug - Ensure Robocop can find GeckoProfile.getDB. r=me
MozReview-Commit-ID: 3KdDRXnsfHv
2016-04-05 16:10:52 -07:00
Margaret Leibovic 8f6f5eca73 Bug 1251749 - Use UI telemetry to tell if settings are enabled or not. r=sebastian
MozReview-Commit-ID: B9CkxWYSi4y
2016-03-31 16:28:22 -04:00
Margaret Leibovic ef3ea0638d Bug 1207719 - (Part 2) Change Switchboard to combine network requests for experiments and server configurations into a single network fetch. r=sebastian
MozReview-Commit-ID: c38pPvDrT8
2016-04-03 17:20:44 -04:00
Margaret Leibovic 080dec328e Bug 1259158 - Update tab queues prompt telemetry to use UI telemetry instead of histograms. r=sebastian r=mfinkle
MozReview-Commit-ID: 4aws9Rcy5W1
2016-04-01 10:59:03 -04:00
Margaret Leibovic 0999183f5f Bug 1256415 - Replace FENNEC_GECKOAPP_STARTUP_ACTION histogram with UI telemetry. r=mfinkle
MozReview-Commit-ID: ElmELmp7baV
2016-03-18 19:07:18 -04:00
Ryan VanderMeulen 2e86998705 Merge inbound to m-c. a=merge 2016-04-04 23:34:14 -04:00
Dinesh Polathula bb6c7aa6d1 Bug 1257217 - Remove unused method GeckoPreferences.broadcastPrefAction(). r=sebastian
MozReview-Commit-ID: FHJqGzyACiF
2016-04-04 13:59:52 +02:00
Randall Barker 60bcab7eab Bug 1257269 - Panning up in a scrollable element should not hide the toolbar r=kats,jchen 2016-04-01 16:07:29 -07:00
James Willcox c954a908ff Bug 1222098 - Devicemotion event timestamp should return values from Android sensor API and not Gecko. r:smaug 2016-04-04 12:22:59 -05:00
Eugen Sawin 5498e8feca Bug 1257304 - [1.3] Cache screen size and update only on orientation change. r=jchen 2016-04-04 14:59:14 +02:00
Mouaad 0df9bf4ca3 Bug 1255394 - Restrictions: Fix java package. r=sebastian
MozReview-Commit-ID: XzS7bSaXhW
2016-03-31 17:30:43 +02:00
Sebastian Kaspari 11e9150009 Bug 1244722 - TabQueueHelper.canDrawOverlays(): Implement workaround for Android bug. r=ahunt
Android's Settings.canDrawOverlays() returns true/false for one of the packages with the same
sharedUserId. There's no guarantee that this is actually the current package.

Instead of relying on Settings.canDrawOverlays() we just try to add and remove an invisible
view through WindowManger. If this succeeds then we obviously can draw overlays and if this
fails then we seem to not have the permission.

MozReview-Commit-ID: 1jdrQ7iV3ek
2016-03-30 12:58:27 +02:00
Carsten "Tomcat" Book 880449630e Merge mozilla-central to fx-team 2016-04-01 11:49:37 +02:00
Sebastian Kaspari 7207c806a3 Bug 1247788 - Add setting for "What's new?" notification. r=margaret
MozReview-Commit-ID: 3eewsc0ILDM
2016-03-31 12:43:13 +02:00
Sebastian Kaspari c22481dc68 Bug 1258971 - Preferences: Replace some checkboxes with switches. r=grisha
MozReview-Commit-ID: Fjam9Dn20sY
2016-03-31 14:13:10 +02:00
Chenxia Liu a01ae4c3c4 Bug 1220928 - Handle configuration changes. r=sebastian
MozReview-Commit-ID: E5MoWlcMCdj
2016-03-28 17:02:16 -07:00
Chenxia Liu a128fb0184 Bug 1220928 - Remove old History and Synced Tabs panel for uncustomized home panels. r=sebastian
MozReview-Commit-ID: G3hIeoiiNs5
2016-03-28 15:58:16 -07:00
Chenxia Liu 01e72de6a6 Bug 1220928 - Handle back button when in client's child view. r=sebastian
MozReview-Commit-ID: BDiyR5JCHQD
2016-03-28 12:04:03 -07:00
Chenxia Liu 971de3ac50 Bug 1220928 - Add client hiding/showing. r=sebastian
MozReview-Commit-ID: IvyrslMqTOT
2016-03-29 17:10:33 -07:00
Chenxia Liu 6efa625268 Bug 1220928 - Add context menu. r=sebastian
MozReview-Commit-ID: CQ01edJs3vP
2016-03-23 18:36:13 -07:00
Chenxia Liu 8d884210e4 Bug 1220928 - Add section headers. r=sebastian
MozReview-Commit-ID: ItbC1yEJY4D
2016-03-17 00:18:37 -07:00
Chenxia Liu b983069056 Bug 1220928 - Add empty state. r=sebastian
MozReview-Commit-ID: Ger04bA0aaC
2016-03-15 11:45:21 -07:00
Chenxia Liu cbee39a6c8 Bug 1220928 - Add dividers. r=sebastian
MozReview-Commit-ID: KYzvrB1YEsA
2016-03-09 17:49:08 -08:00
Chenxia Liu acc167f429 Bug 1220928 - Add footerbar button. r=sebastian
MozReview-Commit-ID: 6R0RWsSljji
2016-02-25 18:25:55 -08:00
Chenxia Liu 8e8fd61c88 Bug 1220928 - Add remote client children. r=sebastian
MozReview-Commit-ID: F5DYHrR5p99
2016-03-15 15:51:56 -07:00
Chenxia Liu e481d31910 Bug 1220928 - Open links for history. r=sebastian
MozReview-Commit-ID: KCXDHb3UEy9
2016-03-29 17:17:08 -07:00
Chenxia Liu ac4703cbce Bug 1220928 - Make static viewType to ItemType converter. r=sebastian
MozReview-Commit-ID: CIOxLFaQIIo
2016-02-24 16:13:18 -08:00
Chenxia Liu 4f9c5afd86 Bug 1220928 - Clients and history loading. r=sebastian
MozReview-Commit-ID: 1lCKVQH54C3
2016-02-24 14:27:55 -08:00
Chenxia Liu adb4650357 Bug 1220928 - Add RecyclerView boilerplate. r=sebastian
MozReview-Commit-ID: xaRLs8JxMs
2016-02-23 11:00:42 -08:00
Nick Alexander a619493435 Bug 1259507 - Add UI Telemetry probes for DOM Push API in Fennec. r=mfinkle
The probes in this patch are annotated with the extra "dom-push-api"
to distinguish from future Fennec-specific push messages.  These
probes allow to determine for each user the difference:

{# sites subscribed to} - {# sites unsubscribed from}.

If we assume the same site is not subscribed to multiple times, this
is a good approximation to the total number of sites the user receives
push messages from.

To test manually:

0) Install Fennec and execute |adb shell setprop log.tag.Telemetry DEBUG|.

1) Subscribe to notifications on a site like serviceworke.rs.

Observe a UI Telemetry SAVE event, like:
D/Telemetry( 7109): SendUIEvent: event = save.1 method = service timestamp = 277456 extras = dom-push-api

2) Send a push notification using the sites' interface.

Observe a UI Telemetry PUSH_RECEIVED_MESSAGE event, like:
D/Telemetry( 7109): SendUIEvent: event = action.1 method = service timestamp = 361795 extras = dom-push-api

3) Unsubscribe to notifications by revoking permission using Site
Settings from the URL bar.

Observe a UI Telemetry PUSH_UNSUBSCRIBED_FROM_SITE event, like:
D/Telemetry( 7109): SendUIEvent: event = unsave.1 method = service timestamp = 393600 extras = dom-push-api

MozReview-Commit-ID: IOCwfXFnowA
2016-03-29 11:39:35 -07:00
Nick Alexander d85ee34db5 Bug 1258464 - Part 2: Remove GeckoView implementation built on Fennec's Tab/Tabs. r=snorp
This will be re-implemented without reference to Fennec's Tab/Tabs
data structures.

MozReview-Commit-ID: I12Dlb3ef58
2016-03-30 10:21:29 -07:00
Nick Alexander b9eee661af Bug 1258464 - Part 1: Remove vestigial GeckoView attrs and initialization. r=snorp
These have no consumer and deserve to be properly reworked.

MozReview-Commit-ID: KmjE44nmLXx
2016-03-30 10:21:29 -07:00
Nick Alexander 147e32d61a Bug 1258450 - Delegate Intent handling from GeckoAppShell to GeckoInterface. r=snorp,mcomella
MozReview-Commit-ID: HoHqZU0Ev5D
2016-03-30 10:21:29 -07:00
Nick Alexander 0a3cdcf4b5 Bug 1258450 - Automated (mostly) refactorings moving GeckoAppShell static methods into IntentHelper. r=snorp
MozReview-Commit-ID: JbfR3pVFxDK
2016-03-30 10:21:29 -07:00
Nick Alexander b0133d53dc Bug 1258450 - Route setAccessibilityEnabled through GeckoInterface. r=snorp,jchen
MozReview-Commit-ID: 9DXQ8mxtg2Q
2016-03-30 10:21:29 -07:00
Nick Alexander 271d249eda Bug 1258450 - Move references to SnackbarHelper out of GeckoAppShell. r=snorp,sebastian
The existing code assumes an Activity, not just a Context, but doesn't
statically guarantee it.  This patch is safe because it dynamically
type-checks, but it would be better to declare the member to be an
Activity.

MozReview-Commit-ID: 9AigV055I5j
2016-03-30 10:21:29 -07:00
Nick Alexander 5f3c8c9690 Bug 1258450 - Move GlobalHistory queries to GeckoInterface. r=snorp
GlobalHistory is Fennec-specific: it accesses the Fennec history data
store, and collects Telemetry.  This allows other consumers to
implement their own store as appropriate.

MozReview-Commit-ID: 75Uxc5k8V0O
2016-03-30 10:21:29 -07:00
Nick Alexander 8675d508a3 Bug 1258450 - Add GeckoInterface.createShortcut. r=snorp
This moves some Fennec-specific home-screen icon manipulations out of
GeckoAppShell.  A GeckoView interface can follow.

MozReview-Commit-ID: 7OhRAT9Agdh
2016-03-30 10:21:29 -07:00
Nick Alexander 3f19ee600a Bug 1258450 - Remove unused GeckoInterface.getPromptService(). r=snorp
MozReview-Commit-ID: 5Aq0TEVD1zD
2016-03-30 10:21:29 -07:00
Nick Alexander a2304de009 Bug 1258450 - Don't use resources in SwipeDismissListViewTouchListener. r=mcomella
This is just a small simplification to allow us to not depend on
org.mozilla.gecko.R.

MozReview-Commit-ID: TjSYwYyAMS
2016-03-30 10:21:29 -07:00
Eitan Isaacson c5059bee15 Bug 1248408 - Preserve text from previous a11y event if new event does not provide any. r=mfinkle
MozReview-Commit-ID: 3hIquiKLvl7
2016-03-31 13:46:14 -07:00