Commit Graph
2909 Commits
Author SHA1 Message Date
maliu ceb67ba79e Bug 1358089 - [RTL] Separate xml drawable into v17 folder, r=ahunt
MozReview-Commit-ID: LaOwxXwhsHA
2017-04-24 01:16:11 +08:00
Edouard Oger 7b6e7fde25 Bug 1351805 part 2 - Add remote devices to the Browser Provider. r=Grisha
MozReview-Commit-ID: 9yGU2Gy6mX1
2017-04-07 12:24:46 -04:00
Edouard Oger 87f243259e Bug 1351805 part 1 - Create a org.mozilla.gecko.fxa.devices package. r=Grisha,nalexander
MozReview-Commit-ID: FjJmRiHlqEg
2017-04-07 11:56:38 -04:00
Wes Kocher e5cf37107d Backed out 3 changesets (bug 1351805) for android Test failures a=backout
Backed out changeset da34da5f310a (bug 1351805)
Backed out changeset 430b56176e04 (bug 1351805)
Backed out changeset a3dfb4b9dc66 (bug 1351805)

MozReview-Commit-ID: AE4RcKV3akz
2017-04-25 12:47:59 -07:00
Edouard Oger 4b4a3dc0d2 Bug 1351805 part 2 - Add remote devices to the Browser Provider. r=Grisha
MozReview-Commit-ID: 9yGU2Gy6mX1
2017-04-07 12:24:46 -04:00
Edouard Oger bfc7019308 Bug 1351805 part 1 - Create a org.mozilla.gecko.fxa.devices package. r=Grisha,nalexander
MozReview-Commit-ID: FjJmRiHlqEg
2017-04-07 11:56:38 -04:00
Julian_Chu dda9f0275e Bug 1359098 - fix getDrawable method missing problem in CustomTabs r=nechen
The method Context.getDrawable was introduced in API 21. To be
compatible with Kitkat, should use Resources.getDrawable instead.

MozReview-Commit-ID: 1ZajYWPTVj0
2017-04-25 10:06:15 +08:00
Tom Klein 6e0860a94d Bug 1354440 - Make the fade at the end of the tab strip work with RTL. r=maliu
MozReview-Commit-ID: AVjtekO4eli
2017-04-20 01:26:10 -05:00
Edouard Oger b838bef9e9 Bug 1349299 - Register device on FxA even on Push registration failure. r=Grisha
MozReview-Commit-ID: 3qDkm9iV9C0
2017-04-06 11:30:23 -04:00
Wes Kocher 5965dfb921 Merge m-c to inbound, a=merge
MozReview-Commit-ID: DimBmdgo95e
2017-04-26 17:35:26 -07:00
Eugen Sawin f1c89aafac Bug 1359176 - [1.1] Add consistent performance logs across the GeckoView example app and Fennec. r=bc 2017-04-27 00:22:10 +02:00
brainbreaker cb0aac6bdd Bug 1347583 - Allow third-party apps to open a tab in private browsing mode; r=sebastian
MozReview-Commit-ID: 6eM3E8qm9YE
2017-04-24 19:32:55 +05:30
Carsten "Tomcat" Book e4a38ceacf Backed out changeset 753e71053540 (bug 1331742) 2017-04-24 12:27:49 +02:00
Randall Barker 83452ca816 Bug 1358592 - Dynamic Toolbar v3 breaks back button rendering on android tablets r=esawin
Now that ShapedButton uses Mode.DST_OUT, the path needs to be inverted
so the back button is rendered correctly.

MozReview-Commit-ID: 8shpFf49zRG
2017-04-21 15:28:50 -07:00
Carsten "Tomcat" Book 63fbb13aec merge mozilla-inbound to mozilla-central a=merge 2017-04-21 10:57:02 +02:00
Jing-wei Wu a2fbd55649 Bug 1232439 - Part 4: Adjust bookmark list UI layout. r=ahunt
MozReview-Commit-ID: 5s74hg5daC5
2017-04-06 11:44:20 +08:00
Jing-wei Wu 3492de4b9c Bug 1232439 - Part 3: Implement full-page bookmark edit dialog. r=ahunt,Grisha
MozReview-Commit-ID: 8wB9CEptVeu
2017-04-20 09:04:28 +08:00
Jing-wei Wu 51f50a43b6 Bug 1232439 - Part 2: Support get/update/remove bookmark record by ID in BrowserDB. r=Grisha
MozReview-Commit-ID: 6RNKCUiZE8K
2017-04-05 14:03:16 +08:00
Jing-wei Wu 9f5bd582ab Bug 1232439 - Part 1: Setup A/B experiment for enabling full bookmark management in Nightly. r=Grisha
The experiment in Switchboard is "full-bookmark-management", and it's enabled for 100% of the Nightly audience.

MozReview-Commit-ID: EhA0BcouPPn
2017-03-23 14:14:24 +08:00
Andrzej Hunt 3de0f6d195 Bug 1357630 - infer: (NULL_DEREFERENCE) add null-check to getAppEventDispatcher r=nalexander
Every single caller of getAppEventDispatcher() and getEventDispatcher()
assumes a non-null return value, so let's make sure we're actually returning
a non-null value. This commit doesn't effectively change runtime behaviour
(any previously NPE crashes will now result in a crash due to IllegalStateException),
however we now at least have an obvious error message in that situation.

In reality, no code should run before onCreate(), so this should realistically
never happen - but we should still check to ensure that is the case.

(This removes 28 infer NULL_DEREFERENCE warnings.)

MozReview-Commit-ID: GhzwKWfkAbD
2017-04-18 20:10:44 -07:00
James Willcox 65ddfa9077 Bug 1358155 - Bump core ping version and docs r=frank
MozReview-Commit-ID: 1h417verpc2
2017-04-20 09:43:51 -05:00
Matthew Wein a118532668 Bug 1331742 - Part 4 - Add a position property to keep track of the menu item's position instead of using the ID r=sebastian
MozReview-Commit-ID: 7ZtfaVQFhKX
2017-03-25 22:35:54 -07:00
Wes Kocher b174ba68b3 Merge m-c to inbound, a=merge
MozReview-Commit-ID: HfJqvXF2Ux7
2017-04-20 15:55:31 -07:00
Randall Barker c955f482b1 Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats
This version of the Dynamic Toolbar moves the animation of the toolbar
from the Android UI thread to the compositor thread. All animation for
showing and hiding the toolbar are done with the compositor and a static
snapshot of the real toolbar.

MozReview-Commit-ID: BCe8zpbkWQt
2017-04-20 15:15:14 -07:00
James Willcox 45ab95f21c Bug 1357786 - Use device CPU architecture in Fennec core ping r=sebastian
MozReview-Commit-ID: HXjaNdQzNGF
2017-04-19 10:25:01 -05:00
Jan Henning 51ca0cc811 Bug 1357505 - Check tab queue array length before parsing to avoid unnecessary exceptions. r=sebastian
MozReview-Commit-ID: LrlegpviPZk
2017-04-18 21:19:17 +02:00
Julian_Chu 747650e524 Bug 1353019: update menu icon of CustomTabsActivity as per page loading r=sebastian
There is a control in menu for reloading or stop-page-loading. Its icon
should be updated per page loading progress.

MozReview-Commit-ID: BNanAQj3xS4
2017-04-19 11:49:11 +08:00
Julian_Chu af43021818 Bug 1353019: fix icon creation issue in GeckoMenuItem r=sebastian
If change icon via resource id, we should create mIcon as well. And
method `getIcon` should return the drawable which be used currently, but
not generating a new drawable via resource id.

Without this patch, we cannot change icon of a GeckoMenuItem until we
set the icon back. ie.

    Drawable icon = menuItem.getIcon();
    icon.setLevel(42); // does not work, cause the icon is new instance.

MozReview-Commit-ID: KxW66OgI9po
2017-04-19 15:39:14 +08:00
Carsten "Tomcat" Book 70857de759 Merge mozilla-central to autoland 2017-04-19 10:57:24 +02:00
Jim Chen 2d7457a413 Bug 1354911 - Guard against null menu item names; r=sebastian
Addons may give us invalid menu item names; bail instead of crashing in
such cases.
2017-04-18 17:42:58 -04:00
Wes Kocher f4bc6586d8 Merge m-c to inbound, a=merge 2017-04-18 14:38:53 -07:00
Julian_Chu e308d93169 Bug 1352993 - Part 3, CustomTabsActivity prvoides presenter r=sebastian
CustomTabsActivity use standard ActionBar, so we can easily use action
mode for text-selection.

MozReview-Commit-ID: CSu0d24Z7dt
2017-04-18 18:51:11 +08:00
Julian_Chu 5eebd6f885 Bug 1352993 - Part 2, Add presenter class which response text-selection r=sebastian
To create new interface ActionModePresenter, a presenter could to
operate action-mode.

For pre-marshmallow Android version, we use ActionBar to provide UI
action for text-selection. Therefore BrowserApp will implement this
presenter for text-selection.

MozReview-Commit-ID: GdLB3ke2pYe
2017-04-18 18:12:43 +08:00
Julian_Chu 1aa55968bc Bug 1352993 - Part 1, Generalize ActionModeCompat r=sebastian
We want to reuse ActionBarTextSelection in more activities, so remove
custom classes from it, to make it easier to interactive with general
Andorid classes.

To achieve that
    * Let ActionModeCompat to be a subclass of ActionMode
    * Get rid of GeckoMenu

BrowserApp is the only one consumer for ActionModeCompat, and it do
understand the class type. We could move animateIn to it safely. After
doing this, TextSelectionActionModeCallback could become a general
ActionMode.Callback.

MozReview-Commit-ID: 7FTwDTe1JYG
2017-04-18 15:26:53 +08:00
Julian_Chu dca2c542f3 Bug 1352993 - Part 0, remove useless variable r=sebastian
No one is using this variable, remove it.

MozReview-Commit-ID: LLcxoh4mRrE
2017-04-14 17:45:15 +08:00
Andrzej Hunt 7e86571e5c Bug 1261983 - infer: close file input stream in case of GZIP failure r=nechen
This commit also cleans up extraneous stream closes: these streams
are closed in finally, so we don't need to also clean them up in
the main try block body.

MozReview-Commit-ID: EXxlmmtqvyq
2017-04-14 12:10:25 -07:00
Tom Klein 459165408c Bug 1350737 - Make the selected tab's row the first visible row when the tabs tray opens. r=sebastian
That helps usability in the following scenario:
1) Open more tabs than will fit on screen in the tabs tray (and fill the last
row with tabs if the tabs tray is in a grid mode);
2) Scroll to the bottom;
3) Open one of the last visible tabs, and from that open tab open a new
background tab (e.g. long click on a link in a page and choose "Open in new
tab");
4) Reopen the tabs tray.

With the fix, the new tab will be visible at the bottom of the list, whereas
previously in list mode it was not visible at all, and in grid modes only the
top of the title was visible.

(Bug 1299905 would make this sort of situation more widely applicable.)

This patch also has the side effect of scrolling the selected tab to the top of
the tabs tray on each rotation (previously it was just scrolled into view).

MozReview-Commit-ID: 4MKY7P1Mihk
2017-03-26 21:44:23 -05:00
Alastor Wu 7b3328c857 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-04-18 11:04:17 +08:00
Nevin Chen 0ef3091202 Bug 1352004 - Fix doorhangers missing background. r=sebastian
MozReview-Commit-ID: 6vrY17fYXD6
2017-04-10 18:13:47 +08:00
maliu 2f3f4efc14 Bug 1354973 - Remove view before add to new ViewGroup, r=sebastian
MozReview-Commit-ID: 1Xdlbss6SVO
2017-04-10 11:48:59 +08:00
Iris Hsiao 98dbf05642 merge autoland to mozilla-central a=merge 2017-04-14 17:09:58 +08:00
Michael Kaply 1ca8c1c7be Bug 1355870 - Allow a system preference to determine distribution dir. r=nalexander 2017-04-13 20:04:41 -05:00
Sebastian Kaspari 54ccde25ef Bug 1272354 - (DLC) Sync Action: Add telemetry to track sync success/failure. r=Grisha
MozReview-Commit-ID: A74A4pc9anK
2017-04-03 16:46:43 +02:00
Sebastian Kaspari 39c56e2a62 Bug 1272354 - (DLC) Download Action: Add telemetry to track download success/failure. r=Grisha
MozReview-Commit-ID: CKDfodx3moX
2017-04-03 16:13:30 +02:00
Sebastian Kaspari e93fd1217a Bug 1272354 - (DLC) DownloadAction: Move network checks inside download loop. r=Grisha
This has two advantages:
* If the network changes while we are downloading content then we do not continue on an metered network.
* When adding telemetry in one of the next patches then we can report which kind of content we did not
  download.

MozReview-Commit-ID: 80QzSRyCArr
2017-04-03 15:03:12 +02:00
Sebastian Kaspari 9a6566dcc6 Bug 1272354 - (DLC) Download Action: If there's no download scheduled then exit early. r=Grisha
There's no need to run all other checks if there's nothing scheduled to be downloaded (anymore). In later
patches we want to report error states to our telemetry system and there's no need to report "no network"
errors if we are not going to download anything anyways.

MozReview-Commit-ID: K4bxbM3ptvZ
2017-04-03 16:27:36 +02:00
Julian_Chu 429a5d1f8d Bug 1352999 - Close activity if user asks to open page in full browser r=sebastian
Once user click "Open in browser" from menu, we are going to open a tab
in full browser, and close this activity. Therefore we won't have two
tabs which confuse user.

MozReview-Commit-ID: Co9gAdWweFX
2017-04-13 18:47:23 +08:00
Tom Klein 3b8cb69a4d Bug 1337947 - Fix tab strip item offsets for RTL. r=maliu
MozReview-Commit-ID: HrOETozOSfW
2017-04-10 09:16:14 -05:00
Tom Klein 07dea84fca Bug 1337947 - Fix tab strip divider drawing for RTL. r=maliu
MozReview-Commit-ID: LITy483QhlW
2017-04-07 00:50:24 -05:00
Tom Klein 014bdb5638 Bug 1337933 - Make the tabs grid layout decorations work with RTL. r=maliu
This patch affects all grided tabs panel layouts: tablets, phones in landscape
mode, and phones in portrait mode with the "Compact tabs" setting on.

MozReview-Commit-ID: 5cqVJA57ARu
2017-04-06 19:52:10 -05:00