Commit Graph
2909 Commits
Author SHA1 Message Date
Carsten "Tomcat" Book f534c4c4e7 merge mozilla-inbound to mozilla-central a=merge 2016-06-15 06:24:33 +01:00
Jan Henning 34a8289bcc Bug 1279273 - Use correct synchronization object for session data parsing. r=sebastian
If the main thread has to wait for the session data parsing to finish - which is more likely when you've got many tabs open, meaning a large sessionstore.js file - it does so on "this", i.e. GeckoApp.
The session data parsing itself is done from within a Runnable, so we need to qualify "this" there if we want it to refer to GeckoApp itself, so we can successfully release any waiting threads through notifyAll().

MozReview-Commit-ID: 3LhJsI5rNU3
2016-06-12 19:45:50 +02:00
Sebastian Kaspari 425b940022 Bug 1276696 - Put custom tabs support behind a build flag. r=mcomella
MozReview-Commit-ID: 44wtCsZWZv2
2016-05-30 16:48:45 +02:00
Sebastian Kaspari a2e0a6ff19 Bug 1276696 - Add dummy service for custom tabs. r=mcomella
Currently this service does not implement any of the callbacks. However it is
necessary to be detected as an app supporting custom tabs.

MozReview-Commit-ID: Hz99Gp9aQCX
2016-05-25 19:31:10 +02:00
Sebastian Kaspari 1890d3070d Bug 1276696 - Add CustomTabsActivity based on GeckoApp. r=mcomella
This activity doesn't do much yet and just has a layout including a GeckoView.
Some basic behavior from GeckoApp is working though: Context menus, floating
text selection, snackbars.

MozReview-Commit-ID: C6SJeYz609h
2016-05-25 19:58:17 +02:00
Sebastian Kaspari 358bea3497 Bug 1276696 - Introduce new LauncherActivity that will handle all incoming Intents. r=mcomella
We will need to dispatch Intent objects to different destinations (Browser, Custom Tab and eventually
progressive web apps).

The logic of TabQueueDispatcher is folded into this new activity.

MozReview-Commit-ID: 3P4eIvtAKEW
2016-05-15 14:25:12 +02:00
Edouard Oger fad0fde527 Bug 1287643 - FxA Push registration and handling of device disconnection message. r=nalexander
MozReview-Commit-ID: BYFMeQNgumu=
2016-07-20 10:47:04 -07:00
Jan Henning d3c75b443e Bug 1190627 - Part 4 - Add telemetry probe for measuring how often we restore from the backup session copy. r=sebastian
By comparing the rates for FENNEC_SESSIONSTORE_DAMAGED_SESSION_FILE and this new probe, we might be able to infer whether there is a failure mode for the session store where the main session store file is completely lost after an interrupted write and doesn't exist even as an empty file of 0 bytes size.

The first run case will be excluded, because in that case both the main and the backup session file won't exist, so neither telemetry probe will be triggered.

MozReview-Commit-ID: JTR54Vk18jW
2016-06-01 22:04:59 +02:00
Jan Henning cb8cafc7e1 Bug 1190627 - Part 3 - If an error occurs parsing the regular session store data file on startup, attempt to read the tabs from the backup copy instead. r=sebastian
Since a SessionRestoreException also happens if we deliberately skipped all tabs (because they didn't contain anything interesting apart from about:home) or the session file was valid but didn't contain any tabs (because the user cleared history), we need to ensure that we don't switch to the backup copy in that case.

To that extent, we extend the SessionParser's parse function to return whether any JSON exceptions occured while parsing the session file, which would signify a corrupt session file.

MozReview-Commit-ID: Kdh5d69irqF
2016-05-29 15:46:20 +02:00
Jan Henning fb924e47bf Bug 1190627 - Part 1 - Reorganise session store file names. r=sebastian
Currently, despite its name sessionstore.bak isn't actually a backup copy, but simply contains the last session if we aren't restoring tabs automatically and is used for powering what used to be the "Tabs from last time" section of the Recent Tabs panel.

This patch changes its filename to sessionstore.old, which frees up sessionstore.bak to be used for an actual backup copy of the current session store data.

If we are not restoring tabs automatically, sessionstore.old will be freshly recreated during each app startup by copying from sessionstore.js's contents, whereas if we *are* restoring automatically, any sessionstore.old file older than a day will be expired anyway, therefore no special migration logic is necessary for this change.

MozReview-Commit-ID: H7Gl5MQi2J4
2016-05-29 13:25:43 +02:00
Phil Ringnalda 98a49305fe Merge m-c to m-i 2016-06-10 18:47:45 -07:00
Carsten "Tomcat" Book 494417d6ba Backed out changeset 61442f7ad442 (bug 1264489) for breaking fennec nighlys 2016-06-10 16:35:05 +02:00
Carsten "Tomcat" Book 78f89f86bb Backed out changeset 97074800423c (bug 1264489) 2016-06-10 16:34:49 +02:00
Carsten "Tomcat" Book 22d6854b1c merge mozilla-inbound to central a=merge 2016-06-10 15:39:23 +02:00
Justin D'Arcangelo e4f7cef916 Bug 1279330 - Make checkstyle happy again about PostUpdateHandler.java r=JanH 2016-06-10 17:33:08 -04:00
Sebastian Kaspari 6b08ccaa67 Bug 1227538 - Reset site identity after entering new URL. r=margaret
MozReview-Commit-ID: oOPYDUPVq9
2016-06-07 16:54:13 +02:00
Sebastian Hengst 692e39f75d Backed out changeset 50b1d3506786 (bug 1279332) for various Android robocop failures. r=backout 2016-06-10 10:29:43 +02:00
Sebastian Hengst a8fe87849a Backed out changeset 6a35c7a791a6 (bug 1279332) 2016-06-10 10:29:03 +02:00
Sebastian Hengst 180f0261dd Backed out changeset 59fbde27dc99 (bug 1279332) 2016-06-10 10:28:59 +02:00
[email protected] bd8d1b6b16 Bug 1270124 - "Make Firefox Default Browser" option is missing from Tablet. r=grisha
MozReview-Commit-ID: EpJWTJUdu6I
2016-06-07 09:55:23 -07:00
Andrzej Hunt f80bfc7eed Bug 1279332 - Post: remove unrelated whitespace to pacify checkstyle r=me
MozReview-Commit-ID: 3FjBkueZ45z
2016-06-09 16:01:51 -07:00
Andrzej Hunt e2b9463f2f Bug 1279332 - Document that onTargetSelected should be run on the UI thread r=grisha
MozReview-Commit-ID: IJ7UItFhvtE
2016-06-09 15:59:48 -07:00
Andrzej Hunt 3241f44fa8 Bug 1279332 - Perform UI callback on UI thread to avoid crashing the background thread r=grisha
We're now calling setIntent on the background thread. The onTargetSelected callback expects
to be run on the UI thread, and it looks like Android hangs up when we call UI methods
on the background thread. This in turn means the entire background thread gets locked up
(we execute tasks on the background thread sequentially) and no further background runnables
are executed. This breaks anything else requiring use of the background thread, e.g.
favicon generation, search, permissions doorhangers, etc.

MozReview-Commit-ID: CoYUOMqNX0m
2016-06-09 15:58:43 -07:00
Michael Comella 8e03063671 Bug 1241685 - Add brief javadoc to assist with testing. r=ahunt
MozReview-Commit-ID: 3epPlVfJSLx
2016-06-08 17:21:45 -07:00
Michael Comella b235efcf7a Bug 1241685 - Hook up TelemetryPreferences for telemetry server url. r=ahunt
In this patch, I move the telemetry server preference from app preferences
to per-profile preferences. We never allowed the user to set the preference
so this should cause no issues.

MozReview-Commit-ID: 7D5y58R2ejd
2016-06-08 16:53:50 -07:00
Michael Comella cd45f06df6 Bug 1241685 - Add TelemetryPreferences. r=ahunt
MozReview-Commit-ID: 5Tw0GUX0tmW
2016-06-08 17:20:31 -07:00
Michael Comella fea480d056 Bug 1279045 - Remove broadcastHealthReport* and its call sites. r=ahunt
MozReview-Commit-ID: G5Pz9l5GAi3
2016-06-08 13:50:12 -07:00
Carsten "Tomcat" Book af0e25a749 merge mozilla-inbound to mozilla-central a=merge 2016-06-09 11:58:06 +02:00
Wes Kocher 221ef85be6 Merge m-c to fx-team, a=merge 2016-06-08 17:13:46 -07:00
Wes Kocher 1952bcdfc1 Merge fx-team to central, a=merge 2016-06-08 17:06:18 -07:00
Michael Comella a8d6733397 Bug 1244316 - Don't upload in restricted profiles when admin disables FHR. r=sebastian
Edge case: the admin profile can disable health report upload for themselves
but (I assume) the new profile won't automatically match these settings. While
I'm not sure if this is even possible, it's outside the scope of this bug.

MozReview-Commit-ID: 1SkXhL7B5xb
2016-06-07 14:04:06 -07:00
Andrzej Hunt dcaebbe2b0 Bug 1264489 - Avoid DB access in UI thread from onPrepareOptionsMenu r=mcomella
DB access happens deep in the internals of setting a new Intent for our
ActionProvider. Posting this to a background thread here seems to be the simplest
option to ensure correct threading.

MozReview-Commit-ID: 3iS8w5Cxf02
2016-06-06 10:42:12 -07:00
Andrzej Hunt a3d7392ebc Bug 1264489 - Pre: assert DB access is on background thread in debug builds r=mcomella
It's possible there are more UI-thread DB accesses lurking. To avoid maintenance burden
we should therefore enable this assert only in debug builds - releases will be
unaffected, but we can still notice incorrect DB access during development.

MozReview-Commit-ID: Kgzf1L3WjIE
2016-06-07 08:57:19 -07:00
Justin D'Arcangelo 31766a2b32 Bug 1272102 - FlyWeb Android UI. r=sebastian 2016-06-08 21:37:06 -04:00
Dylan Roeh bcc1263a48 Bug 1136364 - Move EGLSurface creation out of GLController.java. r=snorp 2016-06-08 08:38:45 -05:00
Carsten "Tomcat" Book e9321e1391 merge mozilla-inbound to mozilla-central a=merge 2016-06-08 11:57:53 +02:00
Grigory Kruglov 4c3f43a32c Bug 1264057 - Post: remove unnecessary import statements r=grisha
MozReview-Commit-ID: LL6lIhAf5pD
2016-06-07 15:21:40 -07:00
Grigory Kruglov 4674face6f Bug 1264057 - Don't show stale clients on the History Panel r=margaret
Currently we might have old (aka stale) clients appear on the History panel, which could be confusing.
This patch modifies underlying query to select only those clients whose LAST_MODIFIED timestamp
is newer than three weeks ago.

MozReview-Commit-ID: JsZJwNONDJG
2016-06-07 14:48:16 -07:00
Jan Henning 1c1e0b7625 Bug 1251362 - Part 19 - Remove code and resources for the old Recent Tabs panel. r=liuche
MozReview-Commit-ID: FQJ7j8YlV6E
2016-05-26 17:40:19 +02:00
Dylan Roeh 9da52c4c1d Bug 1271103 - Backs out the patch for Bug 1136364 and related patches. r=snorp 2016-06-07 09:25:26 -05:00
Jan Henning d720279d28 Bug 1251362 - Part 18 - Migrate (customised) home panel configurations. r=liuche
For people with customised home panels, we need to explicitly remove the Recent Tabs panel. We also unhide the Combined History panel if it was previously hidden and additionally turn it into the default panel if the Recent Tabs panel was the previous default panel.

MozReview-Commit-ID: 5CSJUTRysQU
2016-05-21 14:39:15 +02:00
Jan Henning d67948fee9 Bug 1251362 - Part 17 - Turn reading list panel migration function into a generic panel removal function. r=liuche
By passing the panel types to be removed/set as new default panel as arguments instead of hard coding them, we can reuse that function for our own home panel config migration.

MozReview-Commit-ID: BsMxcbInRbX
2016-05-21 18:27:55 +02:00
Jan Henning 9d9f7888ed Bug 1251362 - Part 16 - Remove the Recent Tabs panel from the default home panel config. r=liuche
MozReview-Commit-ID: IX6AkBoa3Mg
2016-05-15 02:22:03 +02:00
Jan Henning 6b10505a17 Bug 1251362 - Part 15 - Redirect direct loads of the Recent Tabs panel about:home URL to the Recent Tabs folder of the Combined History panel. r=liuche
After detecting multiple successive crashes in a row, we temporarily switch off automatic session restoring and display the Recent Tabs panel instead. As that panel is going to be removed, we intercept loads of the Recent Tabs panel about:home?panel=... URL and redirect them to the Combined History panel. We also use the facilities provided by bug 1060544 to jump directly to the Recent Tabs folder in that case.

MozReview-Commit-ID: 7dQ7tW2dD1M
2016-05-26 23:04:53 +02:00
Jan Henning a9bd89f499 Bug 1251362 - Part 14 - Add telemetry for restoring tabs. r=liuche
This adds telemetry for clicking on a closed tab or the "Open all" button. Methods and extras strings are based on those used for the old Recent Tabs panel.

MozReview-Commit-ID: 1Kc8fACkmIc
2016-05-18 19:04:49 +02:00
Jan Henning 172017b1fb Bug 1251362 - Part 13 - Only enable swipe to refresh within the Synced devices smart folder. r=liuche
Recently closed tabs aren't synced, therefore being able to swipe to refresh within the Recent tabs folder isn't necessary. To avoid triggering a refresh by accident, we restrict swipe to refresh to the Synced devices folder itself.

MozReview-Commit-ID: YwekSwQr2q
2016-05-14 23:38:29 +02:00
Jan Henning ef771a7e01 Bug 1251362 - Part 11 - Directly notify the RecentTabsAdapter when clearing history. r=liuche
Sessionstore.bak is only read when we are initialising the home panels, so after clearing all history from the button in the Combined History panel, the "Tabs from last time" section would still linger around until the home panels have been closed and reopened. To prevent this, we now directly notify the RecentTabsAdapter when all history has been deleted, so it can immediately clear its own copy of the last session's tabs.

MozReview-Commit-ID: 3EFY2WbWqzh
2016-05-14 21:27:23 +02:00
Jan Henning 68a2442720 Bug 1251362 - Part 10 - Display a context menu for closed tab entries. r=liuche
MozReview-Commit-ID: Gv2tJoNRldX
2016-05-14 19:42:00 +02:00
Jan Henning f52ad6a476 Bug 1251362 - Part 9 - Display a button to open all recently closed tabs. r=liuche
Depending on the History panel's PanelLevel state, we now dynamically set the panel footer button's text and determine its onClick behaviour.

MozReview-Commit-ID: EjesnHsntyC
2016-05-26 16:36:25 +02:00
Jan Henning 064ef27338 Bug 1251362 - Part 8 - Handle Recent Tabs in onItemClicked(). r=liuche
Clicking a tab in the list of recently closed tabs now sends the appropriate message back to the session store.

MozReview-Commit-ID: KF3UJjq5zQK
2016-05-18 18:55:32 +02:00