Commit Graph
2909 Commits
Author SHA1 Message Date
Nevin Chen b3aa59745a Bug 1351556 - Collect information on the number of users using PWA. r=sebastian
MozReview-Commit-ID: CyVFQUtd5Aw
2017-04-06 17:29:53 +08:00
Julian_Chu 2feb1cc854 Bug 1348718 - Remove useless method r=sebastian
No need to export text primary color anymore.

MozReview-Commit-ID: 3SgJMviTcB5
2017-04-07 14:23:34 +08:00
Julian_Chu 3dcdc83629 Bug 1348718 - Build option menu button in same way r=sebastian
There might be up to 2 Always-show-as-action button in ActionBar.
One for menu-options, one for 3rd-party app action-button, if any.

According to our design spec, the two buttons appearance should be
similiar, therefore now we create them by same method.

MozReview-Commit-ID: GPVteQR3hxr
2017-04-07 13:03:57 +08:00
Julian_Chu b42913f30e Bug 1348718 - Use cross icon as close button r=sebastian
Move this change to ActionBarPresenter. Use cross icon as close button
to match design spec.

MozReview-Commit-ID: JgUcKp7p7Bc
2017-04-05 18:54:22 +08:00
nechen aa8e0ccbf9 Bug 1293713 - Make new tab action respect HomePage preference. r=mkaply,sebastian
MozReview-Commit-ID: 9N7tLrr20nv
2017-03-13 16:13:18 +08:00
Dale Harvey 4689c7c209 Bug 1353714 - Only setTaskDescription on supported android. r=janh 2017-04-07 16:43:12 +01:00
Carsten "Tomcat" Book 0175d8a0b6 Merge mozilla-central to mozilla-inbound 2017-04-07 15:33:03 +02:00
Wes Kocher 5ae8393d54 Merge m-c to inbound a=merge 2017-04-06 15:30:43 -07:00
Tom Klein c91d7f17d7 Bug 1350718 - Post: Name the special value -1 used to indicate a new tab should be appended. r=maliu
MozReview-Commit-ID: 7r8cHItW4wG
2017-04-06 11:27:42 -05:00
Tom Klein 0eb8a7cadd Bug 1350718 - 2. Remove the add animation for the TabsLayout list. r=maliu
Based on what I'm seeing, if you call scrollToPosition and that causes you to
"scroll into view" (remember, scrollToPosition doesn't actually scroll, it just
redraws the new position) one or more positions, then RecyclerView runs the add
animation on all those views "scrolled onto screen", which, for the list view's
slide-in-from-the-right add animation, looks silly (I think).  [Caveat:
RecyclerView sometimes keeps one offscreen view ready to go, which doesn't seem
to get the add animation.]

In non open-tab-from-another-app-with-the-tabs-tray-already-open operations this
was never an issue because either those animations are hidden by the panel being
animated into view when the panel opens and we scroll to the selected position
[at least that's my guess], or we only scroll by at most one, as in the case of
a tab close or undo close.  But in the
open-a-tab-and-scroll-to-it-while-the-tabs-tray-is-already-open case that we can
get with opening a tab from another app, the add animation runs for however many
tabs "need to be added" between the current position and the new tab; sometimes
the animation still gets hidden if the new tabs get added quickly enough when
fennec reloads [again, my guess], but on my device I always see the animations
if I open a tab in tab queue and then reopen Fennec by hand, whereas on an
emulator I see the animations in additional external-app-open cases as well.

MozReview-Commit-ID: J3x0bBLPNyz
2017-03-30 23:16:19 -05:00
Tom Klein e3324c3945 Bug 1350718 - 1. Scroll to a tab added to the tabs tray by an external app. r=maliu
If another app opens a link in Fennec, and Fennec restores itself in a state
where the tabs tray is already open, we need to scroll to the newly added tab
since it gets added offscreen (not to mention the scroll position restored when
we open is unconstrained (it's whatever the user left it at before they switched
apps)).

This introduces one small change in behavior:
1) Use a gridded tabs tray;
2) Fill more tabs than will fit in the tray;
3) Put more than one tab on the last row;
4) Scroll so that the last row is partially, but not fully, hidden;
5) Close the last tab and then undo the close.
In that case we now scroll the last row fully into view, whereas previously we
maintained the old (partially hidden) scroll position.  (If you undo close any
tab other than the last on the final row then you still get the old behavior.)

Note that this fixes the case where the other app adds a *new* tab in Fennec
with the tabs tray open; it's (currently) also possible to open a link in an
already existing tab with the tabs tray open - that's bug 1353226.

MozReview-Commit-ID: BazXFwT0B8v
2017-03-28 11:29:52 -05:00
Julian_Chu 9cba8db23d Bug 1351605 - update action bar when restoring r=sebastian
If the activity is restoring, onTabChanged might not be called.
To update title from existing Tab data in onResume.

MozReview-Commit-ID: 3LqQ6HDh7Dc
2017-04-06 17:02:17 +08:00
Julian_Chu eb1089bbfa Bug 1351605 - Get rid of color variable in activity r=sebastian
Now we can get toolbar color from intent directly, and the intent will
be stored in `onSavedInstanceState`. Let's get rid of the local
variable.

MozReview-Commit-ID: OsqwgFJctH
2017-04-06 12:54:33 +08:00
Julian_Chu e79e76f230 Bug 1351605 - store start-intent in activity r=sebastian
`getIntent()` not always returns the intent whith start this Activity
due to GeckoApp.onCreate reset it. We make a copy here in case of this
activity is destroyed and re-created.

MozReview-Commit-ID: 7TF3b1WdbM2
2017-04-06 11:40:04 +08:00
Michael Kaply 6a5f9160fe Bug 1348412 - Add dist specific menu for set as homepage. r=snorp
MozReview-Commit-ID: 1ipDDs4ZVAm
2017-03-27 17:05:22 -05:00
James Willcox f2f68af5d6 Bug 1344347 - Move Android out-of-process decoder service into GeckoView r=jolin
MozReview-Commit-ID: QTnp95uhQV
2017-04-06 14:32:58 -05:00
Carsten "Tomcat" Book f00871f796 merge mozilla-inbound to mozilla-central a=merge 2017-04-06 12:50:50 +02:00
Nevin Chen 35b07962dc Bug 1351555 - PWA Collect information on the number of progressive web apps added to homescreen. r=sebastian
MozReview-Commit-ID: FYZUtNut0Hv
2017-04-05 18:04:57 +08:00
maliu 8fed4c294a Bug 1353001 - Fallback invoke ContentResolver.query without CancellationSignal, r=sebastian
MozReview-Commit-ID: 7d3lxiWs3uP
2017-04-03 21:50:55 +08:00
Wes Kocher 06260c1036 Merge inbound to central, a=merge 2017-04-03 14:50:18 -07:00
Dale Harvey b8c724d6ef Bug 1352099 - Ensure manifest can be read on resume. r=sebastian 2017-04-03 14:26:17 +01:00
Dale Harvey 9365707153 Bug 1352726 - Ensure missing fields dont halt theming. r=sebastian 2017-04-03 14:26:03 +01:00
Dale Harvey 59b96c4d92 Bug 1351834 - Give webapp tabs correct type when launched. r=janh 2017-04-01 15:23:18 +01:00
Dale Harvey 4aab6bbde1 Bug 1337341 - Show url when navigating out the scope of pwa. r=walkingice 2017-04-01 09:34:23 +01:00
Munro Mengjue Chiang 815ed91bf5 Bug 1265755 - Support encoder case for CodecProxy; r=jolin
MozReview-Commit-ID: 4cEZQs8spo7
2017-03-30 08:51:12 +08:00
Munro Mengjue Chiang 9926e46981 Bug 1265755 - separate JavaCallbacksSupport class declaration to a different header file; r=jolin
MozReview-Commit-ID: 7Vj3G47n2bu
2017-03-30 08:30:23 +08:00
Jan Henning 640e6e9cf7 Bug 1352433 - Part 1 - Don't clear all preferences when all you need to remove is a few keys. r=sebastian
MozReview-Commit-ID: DELmDbTHNLk
2017-04-01 23:02:54 +02:00
Jan Henning 5d72a705a8 Bug 1352433 - Part 0 - Change variable name casing for constants. r=sebastian
The shared preferences keys used for storing/retrieving the activity list data are constants, so it is a bit disconcerting to see them named like normal member variables.

MozReview-Commit-ID: GivVloU0pFv
2017-04-01 22:51:51 +02:00
nechen a0ffdd2954 Bug 1329157 - Safely collect caller app information. r=frank,sebastian data-r?bsmedberg
MozReview-Commit-ID: 7oXYArRyWKY
2017-03-14 12:06:08 +08:00
Jim Chen c373eeec3e Bug 1351964 - Use UI thread for "Tabs:TabsOpened" event; r=sebastian
Use the UI thread for handling "Tabs:TabsOpened", so we don't race with
other tab events that are already handled on the UI thread.
2017-04-05 14:23:44 -04:00
Jim Chen ace55be6f0 Bug 1321418 - Update menu items using the correct ID; r=sebastian
Regression caused by an incorrect ID used to update menu items.
2017-04-05 14:23:44 -04:00
Wes Kocher 0eb31f0868 Merge m-c to autoland, a=merge 2017-03-29 15:48:28 -07:00
Nevin Chen 1428d02a73 Bug 1295675 - Allow app level preferences. r=mkaply,sebastian
MozReview-Commit-ID: yv97PSkL5n
2017-03-23 10:57:20 +08:00
Ryan VanderMeulen 3866e9cf31 Merge inbound to m-c. a=merge 2017-03-29 09:41:54 -04:00
Dale Harvey d541b55459 Bug 1347605 - Ensure standalone pwa's are singletons 2017-03-29 18:44:30 +01:00
Grigory Kruglov c8d3c28e3a Bug 1350196 - Part 2: Perform PRNGFixes earlier. r=rnewman, r=nalexander
MozReview-Commit-ID: 18jnRRFhyPq
2017-03-27 18:32:54 -07:00
Dale Harvey a629f01519 Bug 1347616 - Fall back to bookmark when manifest invalid. r=sebastian 2017-03-28 21:42:22 +01:00
Julian_Chu fe67a302b5 Bug 1348716 - Long click to copy URL in custom tabs r=sebastian
If user long click text area of ActionBar(URL or Title), then copy
current URL to clipboard.

MozReview-Commit-ID: EdVoMiX0Gt3
2017-03-21 11:16:28 +08:00
Phil Ringnalda 5468570495 Backed out 3 changesets (bug 1348803) for failures in audio and playback browser-chrome tests
CLOSED TREE

Backed out changeset 4ac559eea9ec (bug 1348803)
Backed out changeset 2ab6e0b8aec6 (bug 1348803)
Backed out changeset f966aef934b1 (bug 1348803)
2017-03-27 21:47:02 -07:00
Alastor Wu fbee96207c Bug 1348803 - part2 : modify event name to lower case letter. r=sebastian
Other events in browser.js are all lower case letter, also change these two to make them consistent.

MozReview-Commit-ID: LkzYUo6OrEA
2017-03-28 10:58:32 +08:00
brainbreaker 324cc6c216 Bug 1271570 - Ask for storage permission when accessing file:// uris; r=sebastian
This commit adds a check for not prompting the user in case
 the permissions have already been granted for accessing
 file:// uris

MozReview-Commit-ID: A62AUqqTJSb
2017-03-29 00:43:43 +05:30
Edouard Oger a6834582f3 Bug 1265314 - Set tabs record lastModified to clients.lastModified. r=nalexander
MozReview-Commit-ID: 84g7WXxRwdX
2017-03-24 15:40:34 -04:00
Nevin Chen 2338d5a59d Bug 1317191 - Return when onPause is called before onResume and add Telemetry ping for future debugging. r=mcomella
MozReview-Commit-ID: HsLP061zOKb
2017-03-21 14:16:34 +08:00
Sebastian Kaspari ac82ac2523 Bug 1348820 - Setup A/B experiment for enabling Activity Stream in Nightly. r=Grisha
This is a bit complicated. But most of that code should go away again as soon as
we can stop shipping the opt-out preference.

With this patch we have three flags that can be controlled via Switchboard:

* activity-stream: This is our global kill switch and allows us to pull the feature
  if needed. A user has to be in this experiment to ever see activity stream. The
  goal is to enable this experiment for 100% of the Nightly audience.

* activity-stream-opt-out: This is experiment will enable the Activity Stream by
  default. The goal is to enable this experiment for 50% of the Nightly audience.

* activity-stream-settings: This experiment controls the visibility of a setting
  to enable/disable activity stream (settings -> advanced -> experimental features).
  This allows us to control whether users can opt-in or opt-out of the activity
  experiment. The goal is to enable this for 100% of the Nightly audience.

MozReview-Commit-ID: BwEoTK6QMQx
2017-03-20 19:46:39 +01:00
Alastor Wu 5579f60188 Bug 1347648 - part3 : only request audio focus from gecko. r=sebastian
Media control would also be displayed for non-audible media, we shouldn't
arbitrary request audio focus . Only request audio focus from gecko which know
whether the media is audible.

MozReview-Commit-ID: Ke9DCYd0Qh2
2017-03-27 10:59:10 +08:00
Jan Henning c89e6a701f Bug 1328868 - Part 6 - Remove the old font size preference and its associated code and resources. r=sebastian
MozReview-Commit-ID: EgL3WFo6mdo
2017-02-04 23:57:57 +01:00
Jan Henning 421f0ae9b0 Bug 1328868 - Part 5 - Add a Java-side listener watching the new pref and the Android system font scale. r=sebastian
The state of the switch added in Part 4 is stored in our Android-side shared preferences. For this to have any actual effect on rendering, we now add a class that is initialised when Gecko starts up and listens to changes of that particular pref.

When it is turned on, we enable font inflation and add another listener for the system font scale, which then forwards the current font scale as well as any changes to Gecko, so mobile mode pages can be scaled correspondingly as well.

When the setting is turned back off again, the system font scale listener is stopped again and the Gecko font size settings reverted back to their default values.

MozReview-Commit-ID: GyffpZTQQX8
2017-02-05 13:22:49 +01:00
Jan Henning b2410909f0 Bug 1328868 - Part 4 - Add a new switch offering to honour the system font size to Fennec's preferences. r=sebastian
MozReview-Commit-ID: HZqxl6T90mZ
2017-02-04 23:54:17 +01:00
Jan Henning ae75bbac29 Bug 1328868 - Part 0 - Remove unneeded imports. r=esawin
MozReview-Commit-ID: 5mCrZ8aOAiw
2017-02-03 22:50:30 +01:00
Wes Kocher f303433077 Backed out changeset f62c008a7b9f (bug 1295675) for testDistribution failures a=backout
MozReview-Commit-ID: Gq1BYDRHA4G
2017-03-24 16:01:47 -07:00