Граф коммитов

22819 Коммитов

Автор SHA1 Сообщение Дата
Jing-wei Wu f6298f0174 Bug 1232439 - Part 4: Adjust bookmark list UI layout. r=ahunt
MozReview-Commit-ID: 5s74hg5daC5

--HG--
extra : rebase_source : 53b1e0d84f3cdbabbe82a1e7aea6caf2b7f6bc9c
2017-04-06 11:44:20 +08:00
Jing-wei Wu d6a7a9c21f Bug 1232439 - Part 3: Implement full-page bookmark edit dialog. r=ahunt,Grisha
MozReview-Commit-ID: 8wB9CEptVeu

--HG--
extra : rebase_source : 05e9007f52c0a5428b5c316e64b6ead09c11c931
2017-04-20 09:04:28 +08:00
Jing-wei Wu 54d4446fc0 Bug 1232439 - Part 2: Support get/update/remove bookmark record by ID in BrowserDB. r=Grisha
MozReview-Commit-ID: 6RNKCUiZE8K

--HG--
extra : rebase_source : e8f46fed85f484d423feedd1d5b7e8314346080f
2017-04-05 14:03:16 +08:00
Jing-wei Wu 35b968a344 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

--HG--
extra : rebase_source : beeddc921a089606d8a752b75c3a0280a1803972
2017-03-23 14:14:24 +08:00
Andrzej Hunt f1be49c357 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

--HG--
extra : rebase_source : f6b13f590b437ebb63e502f774a70164054ecf7e
2017-04-18 20:10:44 -07:00
Wes Kocher 4f3c2d9829 Merge m-c to autoland, a=merge
MozReview-Commit-ID: DPzfAm14Tdx
2017-04-20 15:52:28 -07:00
Wes Kocher 5ce5528fb1 Merge inbound to m-c a=merge
MozReview-Commit-ID: DQDuEiYLWCO
2017-04-20 15:30:43 -07:00
James Willcox bbde9021e6 Bug 1358155 - Bump core ping version and docs r=frank
MozReview-Commit-ID: 1h417verpc2

--HG--
extra : rebase_source : 293cbbf4c01c5535579ab5d3862a01ef4de50234
2017-04-20 09:43:51 -05:00
Munro Mengjue Chiang c805ded682 Bug 1353313 - Add synchronization mechanism to CodecProxy. r=jolin
MozReview-Commit-ID: 3sqW06nIkoJ
2017-04-14 10:04:24 +08:00
Nick Alexander d1d66db6c9 Bug 1254355 - Part 2: Generate AndroidManifest.xml using GENERATED_FILES. r=gps
MozReview-Commit-ID: 8McGHkPYyhI

--HG--
extra : rebase_source : 7e2e6f9f901956c34089335157ce4fe754cf2472
2017-04-17 13:47:41 -07:00
Nick Alexander 45d40668a3 Bug 1254355 - Pre: Use #ifdef, not #if, for MOZ_CRASHREPORTER. r=gps
Style varies across the tree, and this matters as we transition to
Python and moz.build.  AppConstants.jsm already uses #ifdef, so this
is consistent with that.

MozReview-Commit-ID: Bal37lqlvjq

--HG--
extra : rebase_source : 8e4e459a9bdbc3a2cacde728f45e6edecc272e24
2017-04-18 17:26:15 -07:00
Wes Kocher ca3a99fc7e Merge m-c to inbound, a=merge 2017-04-19 17:15:26 -07:00
Carsten "Tomcat" Book 87edaf78ee Merge mozilla-central to autoland
--HG--
extra : rebase_source : 46bdde97ce6567ce8a06b1609de547ef11b24c2a
2017-04-20 13:06:52 +02:00
Matthew Wein 09d1616dc7 Bug 1331742 - Part 5 - Add unit tests for browserAction.onClicked r=mixedpuppy
MozReview-Commit-ID: Ko8eQYfIM0H

--HG--
extra : rebase_source : 0774a850694d8ea52d7c39872e5ac02f4acec4c5
2017-04-10 16:15:54 -04:00
Matthew Wein 549d74a605 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

--HG--
extra : rebase_source : b1d9a62ca8c272eb4ff631d4331129c97153cb31
2017-03-25 22:35:54 -07:00
Matthew Wein 0bb36b786b Bug 1331742 - Part 3 - Create and register ext-browserAction.js r=mixedpuppy
MozReview-Commit-ID: CGR4689b6oo

--HG--
extra : rebase_source : 912519c647c2051d03307f52ca778efb1f9e7480
2017-04-19 21:44:41 -04:00
Matthew Wein 35c2d73d83 Bug 1331742 - Part 2 - Create a module for managing browser actions similar to PageActions.jsm r=sebastian
MozReview-Commit-ID: 2epdMD75e84

--HG--
extra : rebase_source : a542b3ca2e673e4fcfdebab56108c2df66239630
2017-03-25 22:36:05 -07:00
James Willcox dc970b5ee0 Bug 1357786 - Use device CPU architecture in Fennec core ping r=sebastian
MozReview-Commit-ID: HXjaNdQzNGF

--HG--
extra : rebase_source : 86398402078b9212078639d1393d8fc845fcc7f6
2017-04-19 10:25:01 -05:00
Jan Henning 659bac6328 Bug 1357505 - Check tab queue array length before parsing to avoid unnecessary exceptions. r=sebastian
MozReview-Commit-ID: LrlegpviPZk

--HG--
extra : rebase_source : 357d8c879ce3f8c1eac8446b76394c64d0d8c9f6
2017-04-18 21:19:17 +02:00
Sylvestre Ledru 392d4c4a1a Bug 1354821 - Generate fennec nightly apk with org.mozilla.fennec_aurora as id r=rail
* nightly-aurora-id is a copy of nightly
* mobile/android/branding/aurora/ is a copy of nightly with the id and package name changed

MozReview-Commit-ID: 2VT0dHDXEMg

--HG--
extra : rebase_source : 7396a1a7eabb4037fb6936bfc1af10666a677e14
2017-04-18 11:59:55 +02:00
Julian_Chu c5f0b243ca 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

--HG--
extra : rebase_source : 9964c320f3e430583fcdd79034c834af0c115fbc
2017-04-19 11:49:11 +08:00
Julian_Chu d486a74857 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

--HG--
extra : rebase_source : 7b9c1dc13d9b3b214e5dcb3ee366dca7e60f3fe7
2017-04-19 15:39:14 +08:00
John Lin 9fa31b9fb4 Bug 1343541 - restore signal actions changed by Android debugger. r=glandium
Android shows a dialog box when it detects app crashing. OOP decoder needs to hide that from user to resume playback gracefully.

MozReview-Commit-ID: 3cE3GiHAuQk

--HG--
extra : rebase_source : 67bec5dfda1e878fa7dea877ef58d485b4e17944
2017-04-12 17:34:17 +08:00
Carsten "Tomcat" Book 7bcdfe36bc Merge mozilla-central to autoland 2017-04-19 10:57:24 +02:00
Carsten "Tomcat" Book 44e9c21039 merge mozilla-inbound to mozilla-central a=merge 2017-04-19 10:32:48 +02:00
Jim Chen c9d615b096 Bug 1322581 - 5. Add PromptDelegate implementation to GeckoView example; r=snorp
Add a sample implementation of PromptDelegate to GeckoView example.
2017-04-18 17:45:02 -04:00
Jim Chen 0bb39e6f5f Bug 1322581 - 4. Add JS GeckoView prompt implementation; r=snorp
Add the necessary XPCOM components to handle prompts for GeckoView. The
JS code mostly package the prompts into GeckoView:Prompt events, and send
them to the Java side if in parent process, or to the parent process if
in child process.
2017-04-18 17:45:02 -04:00
Jim Chen 8503fd2101 Bug 1322581 - 3. Add event listener for GeckoView:Prompt event; r=snorp
Add an event listener for the GeckoView:Prompt event, which JS code will
use to sent over prompt requests and to receive prompt results. Both
global and per-GeckoView listeners are required because we may not know
the origin GeckoView for certain prompts, so some prompts will not have
an associated GeckoView. This is also the reason for having a static
default PromptDelegate in additional to an instance per-GeckoView
PromptDelegate. All prompts without associated GeckoViews are sent
directly to the default PromptDelegate.
2017-04-18 17:45:01 -04:00
Jim Chen e2f7e4a529 Bug 1322581 - 2. Add PromptDelegate interface; r=snorp
Add a PromptDelegate interface that implements possible prompts shown by
a GeckoView application. All prompt methods include a callback parameter
for the implementation to call back to GeckoView with results from the
prompt.
2017-04-18 17:44:57 -04:00
Jim Chen f15b130cbb Bug 1322581 - 1. Remove GeckoView.ChromeDelegate; r=snorp
Remove the old ChromeDelegate interface, to be replaced by
PromptDelegate in a future patch.
2017-04-18 17:44:57 -04:00
Jim Chen f3eca63a21 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 61ed56921b Merge m-c to inbound, a=merge 2017-04-18 14:38:53 -07:00
Julian_Chu 752ba9adf6 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

--HG--
extra : rebase_source : 9040e515a6208459aa5b0b7470e491c7474fe4ec
2017-04-18 18:51:11 +08:00
Julian_Chu afbcff523b 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

--HG--
extra : rebase_source : 5467a7d514810fa846fefcf37e5eb2f55a643c3f
2017-04-18 18:12:43 +08:00
Julian_Chu b139b481bd 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

--HG--
extra : rebase_source : cf7cbba40745bbfbd34099f238c904bb4d3c6438
2017-04-18 15:26:53 +08:00
Julian_Chu 0bf1b90932 Bug 1352993 - Part 0, remove useless variable r=sebastian
No one is using this variable, remove it.

MozReview-Commit-ID: LLcxoh4mRrE

--HG--
extra : rebase_source : e9b418c8adefa8459e04b3ad65e17e376a9369ad
2017-04-14 17:45:15 +08:00
Andrzej Hunt aee9d1bfa4 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

--HG--
extra : amend_source : 72ad8cb816202e8e3f234157bae092cea004d34a
2017-04-14 12:10:25 -07:00
Tom Klein f075e911e0 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

--HG--
extra : rebase_source : a00776803b199a949ba598805e79a71fde82e2f3
2017-03-26 21:44:23 -05:00
Alastor Wu 7175cf4a75 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

--HG--
extra : rebase_source : 6853dc40c68c0939d7e318b3a1e88c39495d0648
2017-04-18 11:04:17 +08:00
Alastor Wu dcf248107f Bug 1348803 - part1 : move fennec-only code to android/browser.js. r=sebastian
We could register media control related event after the tab has active media.
But we still need to register "audioFocusChange" in the beginning, because it
affect every tab even the tab has no active media.

MozReview-Commit-ID: ErIBUobnxbg

--HG--
extra : rebase_source : bdc8070f2f2a81f847ebb8e0ec87f6efeb86eb80
2017-04-18 11:03:49 +08:00
Matthew Wein 29488c9b00 Bug 1331742 - Part 1 - Create and register browser_action.json r=mixedpuppy
MozReview-Commit-ID: AwYuTDU3Ki4

--HG--
rename : browser/components/extensions/schemas/browser_action.json => mobile/android/components/extensions/schemas/browser_action.json
extra : rebase_source : 40d21958c2800a35e9a691f379694c6ca3b1c73e
2017-03-15 21:02:56 -04:00
Shane Caraveo f6660740ac Bug 1326298 implement off-main-thread delivery with start/stop/error listeners, r=kmag
MozReview-Commit-ID: Ke4NsthrbP2

--HG--
extra : rebase_source : 0324030e5f7f534256ff0c469bb486dc52e282c2
2017-04-18 15:50:53 -07:00
Sebastian Hengst 0e96a7ee95 Backed out changeset a5af7f7132f6 (bug 1254355) for failing android lint job (unused file crash_reporter.png). r=backout 2017-04-19 01:05:06 +02:00
Grigory Kruglov 68882a5021 Bug 1335198 - Add support for synchronizing bookmark creation date r=rnewman
Incoming records might be missing the dateAdded field, and so we perform some pre-processing:
- during reconciliation, dateAdded is set to the lowest of (remote lastModified, remote dateAdded, local dateAdded)
- during insertion, if dateAdded is missing it is set to lastModified

Whenever we modify dateAdded for a record during sync, we also bump its lastModified value. This will trigger an
upload of this record, and consequently a re-upload by clients which are able to provide an older dateAdded value.
It is possible that this might cause conflicts on other devices, but the expected likelyhood of that happening is low.


MozReview-Commit-ID: 3tDeXKSBgrO

--HG--
extra : rebase_source : 26cb13838df7a4adb6d4fe3c51f0ecf3fd2eda95
2017-04-18 18:04:45 -04:00
Ralph Giles 927fc2a00a Bug 1357119 - Include aarch64 in rustc package for builders. r=mshal
Add the aarch64-linux-android libstd to the android-cross
repackage of the upstream rust 1.16.0 stable builds.

MozReview-Commit-ID: gmZL7QCodQ

--HG--
extra : rebase_source : dc4072c3214188195aa6abda939d550df4e617d9
2017-04-18 10:24:08 -07:00
Nick Alexander 5918c2009b Bug 1254355 - Part 2: Generate AndroidManifest.xml using GENERATED_FILES. r=gps
MozReview-Commit-ID: 8McGHkPYyhI

--HG--
extra : rebase_source : 0789187e4c3a589060dcd9913f376410a390a6f7
2017-04-17 13:47:41 -07:00
Nick Alexander 7c46e515ed Bug 1254355 - Part 1: Prepare to generalize generate_build_config. r=gps
I'm taking another kick at this.  Since glandium's negative review of
older patches a year ago, generate_build_config.py landed (with your
r+, gps).  These patches extend that mechanism to generate
AndroidManifest.xml.  This sets the stage for that.

This is all in service of Bug 1355625, which will need the
generate_build_config.py extension point to do things that the
preprocessor cannot handle: generating Java code, copying resource
files, and merging resource XML declarations.

MozReview-Commit-ID: AcyC3CBMQl1

--HG--
extra : rebase_source : c379b07de4b9f9b4bfe53e6a0adac13f08a71c73
2017-04-17 13:38:24 -07:00
Zibi Braniecki a1a4f0b7c9 Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK

--HG--
extra : rebase_source : 883a91b249b6953b7872bfb9a8851e8be7257c7b
2017-03-11 18:43:11 -08:00
Sebastian Hengst 7b30105d39 Backed out changeset 60d72c2dd49d (bug 1346616) for eslint failure in DirectoryLinksProvider.jsm. r=backout on a CLOSED TREE 2017-04-18 00:48:16 +02:00
Zibi Braniecki cce53c69bc Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK

--HG--
extra : rebase_source : 2f166cf1746f389a035f7cf557edcadeacb10fa0
2017-03-11 18:43:11 -08:00