Commit Graph
2909 Commits
Author SHA1 Message Date
Jan Henning 3918eec784 Bug 1301160 - Part 3 - Pass the saved parent tab ID when restoring tabs. r=sebastian
When restoring recently closed tabs during a browsing session, we can just pass the stored parentId as a parameter to addTab and be done with it.

During startup however, we first need to update the parent tab IDs before being able to use it.

At the moment, new tabs are always opened at the end of the tab list and cannot be resorted by the user, so child tabs always appear *after* their parent tabs in the tab list. However because we don't want to rely on this behaviour, we still need to collect a complete mapping between old and new tab IDs first before being able to update the stored parent tab IDs.

Therefore we cannot use the usual method of passing in the parentId during tab creation and have to set it after the fact for this case.

MozReview-Commit-ID: JT5YSkuOSZw
2017-01-07 22:26:36 +01:00
Jan Henning 2ac2ca6b9d Bug 1301160 - Part 2 - Update stored parent tab IDs during startup. r=sebastian
As long as the browser remains alive, tab IDs are stable and not reused, however if Firefox is killed and subsequently restarted, the ID sequence is reset and therefore all tabs opened through session restore will most probably be assigned a new tab ID.
Because of this, the stored parent tab IDs will be out of date and have to be refreshed as well so they continue pointing to the correct tab. To achieve this, we therefore create a mapping between old and new tab IDs as they are assigned and then use that to update the stored parent tab IDs, too.

MozReview-Commit-ID: 2GP2H6cUGrx
2017-01-06 19:05:08 +01:00
Jan Henning 91cd0f7e96 Bug 1301160 - Part 0 - Add an explicit string conversion to fix an error in Android Studio. r=sebastian
MozReview-Commit-ID: GLf0zXsAkAI
2016-11-18 20:14:26 +01:00
John Lin 70aee73fde bug 1324530 - part 5: do not recycle EOS input sample. r=snorp
MozReview-Commit-ID: IbQLII0XTTf
2017-01-06 20:04:43 +08:00
John Lin 51f3a092d8 Bug 1324530 - part 4: improve remote manager init wait time. r=snorp
Fix the issue that RemoteManager.init() will be block for 5s when onServiceConnected() is
finished before latch creation.

MozReview-Commit-ID: CYYpLpY7Ns9
2016-12-23 16:28:48 +08:00
John Lin 42412e162b Bug 1324530 - part 2: rewrite the logic of discarding invalid buffers for flush. r=esawin
MozReview-Commit-ID: EwTRMaJOJhK
2016-12-28 15:56:42 +08:00
John Lin 8da5cb5857 Bug 1324530 - part 1: add method to AsyncCodec for resuming receiving input buffers after flush(). r=esawin
2 birds with 1 stone:
 - according to MediaCodec doc, when running in async mode start() must be called after flush() to 'resume receiving input buffers'.
 - in JellyBeanAsyncCodec's case, explicit resuming polling input buffers helps Codec decide which buffers are invalid by flush().

MozReview-Commit-ID: Ee5QbppgsVf
2016-12-28 15:41:55 +08:00
Carsten "Tomcat" Book c64603aa7e Merge mozilla-central to autoland 2017-01-12 10:39:04 +01:00
Carsten "Tomcat" Book 11757a7943 merge mozilla-inbound to mozilla-central a=merge 2017-01-12 10:14:43 +01:00
Shih-Chiang Chien aa3bedeedd Bug 1329902 - Part 3, don't notify Gecko if removed route is not a presentation display. r=KuoE0
MozReview-Commit-ID: 21kjmNYaW1b
2017-01-11 15:51:31 +08:00
Shih-Chiang Chien e4758045e1 Bug 1329902 - Part 2, handle onRouteChanged without onRouteAdded. r=KuoE0
MozReview-Commit-ID: KF0UYqYzDRe
2017-01-10 15:13:35 +08:00
Wes Kocher e2fbcf154f Backed out changeset 090e52000b34 (bug 1303362) for android failures in test_openWindow.html a=backout
MozReview-Commit-ID: 5Nw8QEy4Z7H
2017-01-11 12:53:11 -08:00
Sebastian Kaspari 82d400f56b Bug 1328937 - Introduce shared interface for activity stream models. r=Grisha
MozReview-Commit-ID: EkfmQfCQNMM
2017-01-09 14:39:34 +01:00
Sebastian Kaspari 48bf32195b Bug 1328937 - Extract TopSite model from stream adapter. r=Grisha
MozReview-Commit-ID: IfSgvPooI9F
2017-01-09 13:53:10 +01:00
Sebastian Kaspari b6b9d8f39e Bug 1328937 - HighlightItem: Move data into separate Highlight / Metadata model classes. r=Grisha
MozReview-Commit-ID: LfeoFZB9MiL
2017-01-05 20:02:54 +01:00
Sebastian Kaspari a5892d9562 Bug 1328937 - HighlightItem: Make all properties 'private'. r=Grisha
MozReview-Commit-ID: 9Ots1ZF8oZ8
2017-01-05 19:33:49 +01:00
Sebastian Kaspari 09c5796592 Bug 1328937 - StreamItem: Move inner classes to separate files. r=Grisha
MozReview-Commit-ID: K6q39diAjms
2017-01-05 19:29:38 +01:00
Carsten "Tomcat" Book 68ef3b46e9 Merge mozilla-central to mozilla-inbound 2017-01-11 16:37:37 +01:00
Carsten "Tomcat" Book eb290552dd merge mozilla-inbound to mozilla-central a=merge 2017-01-11 16:23:39 +01:00
Carsten "Tomcat" Book a8a8fb350a Backed out changeset 5d1623b6bcca (bug 1328937) for continued bustage on android 2017-01-11 12:47:08 +01:00
Carsten "Tomcat" Book 50b0b748c8 Backed out changeset e1dbcf0b7019 (bug 1328937) 2017-01-11 12:46:32 +01:00
Carsten "Tomcat" Book b1402ca426 Backed out changeset 927275a3ea2c (bug 1328937) 2017-01-11 12:46:30 +01:00
Carsten "Tomcat" Book 63ed81965f Backed out changeset 1d0bc7e990fe (bug 1328937) 2017-01-11 12:46:28 +01:00
Carsten "Tomcat" Book 4102f86478 Backed out changeset 8e5f0fda8a89 (bug 1328937) 2017-01-11 12:46:25 +01:00
Dylan Roeh 8e55e8b39b Bug 1329664 - Finish a CustomTabsActivity if the corresponding tab has been closed. r=snorp 2017-01-09 09:40:08 -06:00
Dylan Roeh 2b6f595477 Bug 1303362 - Set a flag on custom tabs so that links do not open in a new tab. r=snorp 2017-01-05 16:43:30 -06:00
Dylan Roeh 6de912cc40 Bug 1325174 - Make the toolbar back button in a custom tab close the tab and finish the activity, rather than navigating. r=snorp 2016-12-22 09:43:08 -06:00
Tom Ritter 739ebe9eab Bug 1314784 - Add an 'Is Orbot Installed' telemetry probe. r=bsmedberg,sebastian
MozReview-Commit-ID: IlTLcVtycj8
2017-01-10 14:13:15 -06:00
Sebastian Kaspari e12cf4eac9 Bug 1328937 - Introduce shared interface for activity stream models. r=Grisha
MozReview-Commit-ID: EkfmQfCQNMM
2017-01-09 14:39:34 +01:00
Sebastian Kaspari fedda9a58b Bug 1328937 - Extract TopSite model from stream adapter. r=Grisha
MozReview-Commit-ID: IfSgvPooI9F
2017-01-09 13:53:10 +01:00
Sebastian Kaspari 2a6aa8a46f Bug 1328937 - HighlightItem: Move data into separate Highlight / Metadata model classes. r=Grisha
MozReview-Commit-ID: LfeoFZB9MiL
2017-01-05 20:02:54 +01:00
Sebastian Kaspari 77836fd629 Bug 1328937 - HighlightItem: Make all properties 'private'. r=Grisha
MozReview-Commit-ID: 9Ots1ZF8oZ8
2017-01-05 19:33:49 +01:00
Sebastian Kaspari c0adedcc16 Bug 1328937 - StreamItem: Move inner classes to separate files. r=Grisha
MozReview-Commit-ID: K6q39diAjms
2017-01-05 19:29:38 +01:00
Sebastian Kaspari 310235f997 Bug 1319017 - browser.js addEngine(): Use icon pipeline to load search engine icon. r=Grisha,maliu
I missed this part of the code when refactoring the icon code in bug 1290014 - because this code
never used our favicon loader but instead accessed the database directly. Now this code is using
the same pipeline we use from Java code and should therefore always load (or generate) an icon.

MozReview-Commit-ID: 9WPvTW1uscI
2017-01-10 14:15:33 +01:00
Julian_Chu e59e30de7c Bug 1323759 - To ensure distribution is initialized r=rnewman
The referrer intent INSTALL_REFERRER comes after Fennec been installed.

On Android 5+ we might receive the referrer intent  and never actually
launch the browser. Attempt to init here to handle that case.

MozReview-Commit-ID: 6kDeqnNT2pS
2016-12-19 14:25:14 +08:00
Jim Chen 7f30461eb6 Bug 1328684 - Convert SharedPreferencesHelper events to bundle events; r=sebastian
Convert events used in SharedPreferencesHelper to
GeckoBundle/BundleEventListener events. Gecko thread events are used
because the listeners are expected to be synchronous, especially for the
SharedPreferences:Get event, which also requires a synchronous callback.
2017-01-10 23:01:28 -05:00
Jim Chen a55ec92358 Bug 1328683 - Convert ReadingListHelper events to bundle events; r=sebastian 2017-01-10 23:01:27 -05:00
Jim Chen 7dcdf0740b Bug 1328682 - Convert MediaPlayerManager events to bundle events; r=sebastian 2017-01-10 23:01:27 -05:00
Jim Chen 9f02dc1ddb Bug 1328680 - Convert GeckoService event to bundle event; r=sebastian
Convert the "Gecko:ScheduleRun" event that GeckoService listens to to a
GeckoBundle/BundleEventListener event.
2017-01-10 23:01:27 -05:00
Jim Chen 4515d61d3b Bug 1326317 - Convert FilePicker events to bundle events; r=sebastian
Convert the "FilePicker:Show" event used in FilePicker and
testFilePicker to use GeckoBundle/BundleEventListener. UI event is used
because the listener performs Intent operations, which is best for the
UI thread. "FilePicker:Result" notification is removed in favor of
using a callback.
2017-01-10 23:00:58 -05:00
Jim Chen 28f4c1f708 Bug 1326249 - Convert MulticastDNSManager events to bundle events; r=sebastian
Convert events used in MulticastDNSManager to
GeckoBundle/BundleEventListener events. MulticastDNSManager also sends
observer notifications from Java to Gecko, and that converts nicely to
using the new unified EventDispatcher on both sides. The patch also
hides some logging behind a flag to reduce logcat clutter.
2017-01-10 23:00:58 -05:00
Jim Chen 94b7ccdf59 Bug 1325156 - 2. Convert JavaAddonManager events to bundle events; r=sebastian
Convert events used in the two JavaAddonManager implementations to
GeckoBundle/BundleEventListener events. Gecko thread events are used to
keep with previous behavior. The external interface for addons is kept
the same (using Bundle/JSONObject as container objects), in order to
preserve compatibility, while the internal implementation is changed to
use GeckoBundle.
2017-01-10 23:00:57 -05:00
Nevin Chen 297c2e6fcb Bug 1310622 - Display the item as-is but do not load an icon if we do not have a page URL r=sebastian
MozReview-Commit-ID: Ij9VS5NvMAs
2016-12-13 13:18:55 +08:00
James Cheng 7d312f1c7d Bug 1325332 - [EME][Fennec] Pref on EME API and only support it for M+ android version. r=cpearce
MozReview-Commit-ID: Bi5pRhIFsxB
2016-12-23 15:50:13 +08:00
Grigory Kruglov 87f0396711 Bug 1326018 - Process telemetry for highlight click before url open action r=sebastian
MozReview-Commit-ID: 8Tlth9GvqOb
2017-01-09 15:04:58 -08:00
Tom Klein 330c17ab7b Bug 1233415 - Make action bar actions full action bar height. r=sebastian
MozReview-Commit-ID: G78wgtWkfgQ
2017-01-07 02:33:14 -06:00
Sebastian Kaspari 40d524ea1d Bug 1323408 - Do not show first run tour in guest profiles. r=nechen
MozReview-Commit-ID: 42FcUvGzRr9
2017-01-05 13:12:52 +01:00
Phil Ringnalda 7257a6b17e Backed out changeset c273666082fa (bug 1325332) for Android test_interfaces.html failures 2017-01-08 21:17:41 -08:00
James Cheng 6a3e0f562a Bug 1325332 - [EME][Fennec] Pref on EME API and only support it for M+ android version. r=cpearce
MozReview-Commit-ID: Bi5pRhIFsxB
2016-12-23 15:50:13 +08:00
Sebastian Hengst cfb6957244 Backed out changeset cce21c0cb2dd (bug 1324530) for failing passwd-1.xul on Android 4.3 debug and number-2.xul on Android 4.3 opt. r=backout 2017-01-06 09:50:28 +01:00