Commit Graph

22394 Commits

Author SHA1 Message Date
Nevin Chen
6a40b60418 Bug 1342354 - Add pref pref on/off switch for new bookmark features. r=ahunt
MozReview-Commit-ID: 1Rz7rAao5Is

--HG--
extra : rebase_source : b63e96e28a9367d16db40e3eeb47f714b04c8b0b
2017-02-24 18:05:10 +08:00
Alfredo.Yang
69731f92d5 Bug 1341967 - remove MOZ_RUST_MP4PARSE. r=kinetik
MozReview-Commit-ID: SgTlIo8wEi

--HG--
extra : rebase_source : 263a6cfcf50ee3582f3dc1bfc43d4fa0dcc00800
2017-03-01 14:44:42 +08:00
Tom Klein
84ea537291 Bug 1216489 - 3. Remove unnecessary touch intercept code for TabsPanel. r=sebastian
MozReview-Commit-ID: 7pf9GRLgHXg

--HG--
extra : rebase_source : 3c7d376baffbe7577cdac923ef9ac2aebf7f33c0
2016-11-30 18:30:57 -06:00
Tom Klein
1540860821 Bug 1216489 - 2. Cleanup width and height calculations in TabsPanel. r=sebastian
MozReview-Commit-ID: I1chEZDnOyR

--HG--
extra : rebase_source : b0cab7c838c4cc51ae8b1bf49ebad6870c7c95bd
2016-11-30 17:31:37 -06:00
Tom Klein
64e697ee77 Bug 1216489 - 1. Cleanup TabsPanel includes and remove member variable. r=sebastian
MozReview-Commit-ID: 9eTBEf8xj1l

--HG--
extra : rebase_source : 368250516367973b35e7ae6a4206462619c8a35d
2016-11-30 17:02:53 -06:00
Tom Klein
ce402fbf10 Bug 1340929 - Don't scroll to a new tab opened from a link. r=sebastian
We used to scroll in addTab to make sure a new tab created by a close-tab-undo
at the start or the end of the list was made visible instead of staying where it
was created off the edge.  We're now taking care of that in selectTab (where it
should have stayed in the first place), where the select in that case occurs
between the time when the new tab is added to the adapter and when the layout
gets updated.  In the case where the new tab is at the start, that means the
check 'position < layoutManager.findFirstCompletelyVisibleItemPosition()' in
selectTab reads '0 < 0', which fails (which is why we need the new check for
'position == 0'), but the check 'position >
layoutManager.findLastCompletelyVisibleItemPosition()' for a tab added at the
end reads 'new_lengh -1 > old_length - 1' which already passes, so we don't need
a special case for undo-tab-close adds at the end in selectTab.  Tabs added at
the end by a normal "create new tab" still scroll for the same reason.

Robotium was confused by the duplicate 'add_tab' ids from the tab strip and the
tabs panel, so I renamed one of them.  Also note that the 'getTabId' added to
TabStripItemView for testing already exists on TabLayoutItemView, but the two
classes don't share a common base.

MozReview-Commit-ID: BzG2r8BSs90

--HG--
rename : mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/testTabStripPrivacyMode.java => mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/testTabStrip.java
extra : rebase_source : b2859647d9e26cdca24e1b03065d3c62e20f7b1b
extra : source : 119ee2655404e277c13d0e436fba1cad1272797e
2017-02-22 21:54:11 -06:00
Jan Henning
52460f6ad2 Bug 1337115 - Part 2 - Send telemetry if session restore completely fails and we're not on the first run. r=sebastian
For a fresh profile it is expected that there are no session files to restore from, however afterwards we should normally always have a valid - if possibly empty - session file available. We try excluding the first run case by checking the first run pref used by Telemetry so far and see whether we get any reasonable results out of this...

MozReview-Commit-ID: 2ZxmLqwhk32

--HG--
extra : rebase_source : 6e76cad14017aced2e4b5f00b8c385dc544529bf
2017-02-17 20:02:33 +01:00
Jan Henning
9e83e205d6 Bug 1337115 - Part 1 - Make "Is first run" pref generally useable. r=sebastian
This pref could be useful for things outside of the TelemetryCorePingDelegate as well, so we have it live in GeckoApp now.

MozReview-Commit-ID: 2JZ3vNqSzcl

--HG--
extra : rebase_source : 0cf6d4f799a705d4e47be89de409925079bf661b
2017-02-23 22:16:26 +01:00
maliu
be25472639 Bug 1331995 - Reset text direction to locale in order to reveal text hint, checkstyle, r=sebastian 2017-03-01 18:34:59 +01:00
Andrzej Hunt
a5fbaf7e73 Bug 1341527 - Add restrictions mocking to SuggestedSitePreparer test r=sebastian
MozReview-Commit-ID: 6Eii88A5IHN

--HG--
extra : rebase_source : 459eb7b04a48f35d8b747a931d4b5e19d3df1d15
2017-02-23 14:09:04 -08:00
Andrzej Hunt
2a95e2c924 Bug 1341527 - Move UserManager mocking into helper class r=sebastian
We need this for more than one test, let's have one copy we can call
from wherever it's needed.

MozReview-Commit-ID: Bd0o38KcqQc

--HG--
extra : rebase_source : 3421bc7bf5bd24ce3cec38c9ba198f01e4978575
2017-02-23 14:08:51 -08:00
Andrzej Hunt
585ec8bec4 Bug 1342105 - actually return if suggested site data is missing r=sebastian
MozReview-Commit-ID: GdshIa0e5Cj

--HG--
extra : rebase_source : a658eaa49abb42a14350300488075ad3e3441eba
2017-02-23 09:17:05 -08:00
Tom Klein
2fb6ccd932 Bug 1342968 - Remove unused TabsLayout xml style attributes. r=sebastian
All TabsLayouts are RecyclerViews now.
* Orientation on a RecyclerView is set on the LayoutManager, not the
  RecyclerView;
* android:listSelector doesn't apply to RecyclerView;
* android:choiceMode doesn't apply to RecyclerView.

This patch also fixes bug 1337699 when it removes the old
android:scrollbars="horizontal" in values-land/styles.xml from back when the
tabs tray scrolled horizontally in landscape mode.

MozReview-Commit-ID: 97el99fSi5o

--HG--
extra : rebase_source : 6d5c41be3b217abbd5524f1901193cdca0fc939c
2017-02-27 10:20:36 -06:00
maliu
e04fbca0dc Bug 1331995 - Reset text direction to locale in order to reveal text hint, r=sebastian
MozReview-Commit-ID: I1FIL7QDRSu

--HG--
extra : rebase_source : 7c11f50a6fe58f2752ef2409bcbf33bfdf8b3258
2017-03-01 14:04:52 +08:00
Jan Henning
4ab8aa2302 Bug 1342718 - Don't query for search engine suggestions if we're not displaying them. r=sebastian
If the user has deactivated search suggestions (either live suggestions from the search engine or those coming from our history), we shouldn't even bother to restart the corresponding loader in that case, so as to avoid
- wasting processing and network resources
- and perhaps more importantly, not leaking the user's search terms to the default search engine if the user doesn't want that kind of suggestions.

At the moment we only exit early from filterSuggestions() when in private mode or if both kinds of search suggestions have been deactivated, but we don't properly handle the case where only one kind of search suggestions has been deactivated.

This should also improve the display of search history results if the user has deactivated the display of live search suggestions, since currently duplicates between the fresh suggestions and the search history are always removed from the latter even when we're not displaying the former.

MozReview-Commit-ID: IOTMLRaZeyP

--HG--
extra : rebase_source : 331c00c83b18c8e9de3cbb00b92df489c04d7bc0
2017-02-26 13:39:49 +01:00
Carsten "Tomcat" Book
0c91af7ef6 Merge mozilla-central to autoland 2017-02-28 13:04:30 +01:00
Carsten "Tomcat" Book
9c1c7106ee merge mozilla-inbound to mozilla-central a=merge 2017-02-28 11:24:33 +01:00
cnevinchen@gmail.com
c1ccdd63f5 Bug 1337692 - Ask for permission on input=file/accept. r=sebastian,grisha 2017-02-27 21:02:00 -06:00
Michael Kaply
eaf1c195a8 Bug 1031210 - Add junit tests for StringUtils.stripScheme. r=snorp 2017-02-27 16:21:47 -06:00
Eugen Sawin
585bf70c8b Bug 1342508 - [2.1] Make code style consistent across GeckoView. r=jchen 2017-02-27 20:39:45 +01:00
Eugen Sawin
4df1593760 Bug 1342508 - [1.0] Add GeckoView.reload. r=snorp 2017-02-27 20:39:45 +01:00
Jan Henning
644356e330 Bug 1337325 - Remove unused zoom and scroll code from browser.js r=kats
More JPZ leftovers, I presume. In any case what's left doesn't do anything really useful and a DXR search didn't reveal any remaining users, so this can be thrown out.

MozReview-Commit-ID: 9dN6Jifpbvw

--HG--
extra : rebase_source : 04614d729a55e00c5331ecc321ca2ef5b5e73747
2017-02-12 13:33:42 +01:00
Jing-wei Wu
165f0d5d00 Bug 1323366 - Create new IconRequest to prevent ConcurrentModificationException, r=sebastian
--HG--
extra : rebase_source : fd06f0ae3632eb9436b7295afc57243aa3a3edf3
2017-02-20 09:45:16 +08:00
Masatoshi Kimura
7be7b11a1c Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg

--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
2017-02-23 06:10:07 +09:00
Grisha Kruglov
8e54812b61 Bug 1291821 - Post: remove unused files r=rnewman
MozReview-Commit-ID: 4qM5vx4AQyQ

--HG--
extra : rebase_source : 5428e67f40947d58521b635cda86121d21ebe275
2016-11-29 13:36:26 -08:00
Grisha Kruglov
283d1a3450 Bug 1291821 - Allow BatchingDownloader to resume downloads using offset r=rnewman
BatchingDownloader uses provided RepositoryStateProvider instance in order to track
offset and high water mark as it performs batching.

The state holder objects are initialized by individual ServerSyncStages, and prefixes are used to ensure keys
won't clash.

Two RepositoryStateProvider implementations are used: persistent and non-persistent. Non-persistent
state provider does not allow for resuming after a sync restart, while persistent one does.

Persistent state provider is used by the history stage. It is fetched oldest-first, and records are applied
to live storage as they're downloaded. These conditions let use resume downloads. It's also possible to
resume downloads for stages which use a persistent buffer, but currently we do not have any.

Offset value and its context is reset if we hit a 412 error; it is maintained if we hit a sync deadline, allowing us to
minimize number of records we'll redownload. BatchingDownloaderController owns resuming and context checking logic.

High water mark (h.w.m.) is maintained across syncs and used instead of stage's "last-synced" timestamp if said stage is
set to fetch oldest-first and explicitely allows use of a h.w.m. Server15RepositorySession provides correct timestamp
to RecordsChannel, decoupling BatchingDownloader from this logic.

MozReview-Commit-ID: IH28YrDU4vW

--HG--
extra : rebase_source : 63bd7daaa1fd2a63e10289d6d4cd198aaf81498b
2017-01-19 13:11:18 -08:00
Grisha Kruglov
976fe61ec1 Bug 1291821 - Track incomplete stages and re-sync them r=rnewman
Stage re-sync is requested if:
- We hit a 412 either during batching download or batching upload
- We hit a sync deadline either during batching download or when merging records from the buffer

SessionStoreDelegate interface was expanded with onStoreFailed,
indicating that not just a particular record failed, but the whole operation did.

onFetchFailed is used to inform delegates of 412/deadline failures during downloads.
Three new exception types were added, to facilitated messaging between different layers.

MozReview-Commit-ID: Ltdi5noEvdV

--HG--
extra : rebase_source : 9d4af039198b9bc92fbbf25cf8e3d32375a2ab26
2017-02-24 13:04:54 -08:00
Grisha Kruglov
29a79ad111 Bug 1291821 - Move bulk insert logic for new history to BrowserProvider r=rnewman
This commit does two things:

1) It simplifies history insertion logic, which wrongly assumed that history which was
being inserted might be not new. As such, it was necessary to check for collisions of
visit inserts, record number of visits actually inserted, and update remote visit counts
correspondingly in a separate step, making history insert a three step operation (insert
history record, insert its visits, update history record with a count). However, bulkInsert
runs only for records which were determined to be entirely new, so it's possible to drop
the third step.

2) Makes all of the insertions (history records and their visits) run in one transaction.
Prepared statements for both history and visit inserts are used are used as a
performance optimization measure.

MozReview-Commit-ID: 48T4G5IsQNS

--HG--
extra : rebase_source : 280d468ef9b57163a178e42707aee610977625c4
2016-11-29 13:42:53 -08:00
Grisha Kruglov
277bfc33aa Bug 1291821 - Rename repositories/sessions r=rnewman
We're at Sync 1.5 now, so might as well rename the files.

Also, renamed the ConstrainedRepository... to a name that's more reflective
of that session's role after the changes.

MozReview-Commit-ID: 96XCzoBzD5D

--HG--
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/Server11PreviousPostFailedException.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/Server15PreviousPostFailedException.java
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/Server11RecordPostFailedException.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/Server15RecordPostFailedException.java
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/ConstrainedServer11Repository.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/ConfigurableServer15Repository.java
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/Server11Repository.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/Server15Repository.java
rename : mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/Server11RepositorySession.java => mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/Server15RepositorySession.java
rename : mobile/android/tests/background/junit4/src/org/mozilla/android/sync/net/test/TestServer11Repository.java => mobile/android/tests/background/junit4/src/org/mozilla/android/sync/net/test/TestServer15Repository.java
rename : mobile/android/tests/background/junit4/src/org/mozilla/android/sync/test/TestServer11RepositorySession.java => mobile/android/tests/background/junit4/src/org/mozilla/android/sync/test/TestServer15RepositorySession.java
extra : rebase_source : 96f7211951611ce7785edbef9dce412accb2878d
2017-02-24 13:04:15 -08:00
Grisha Kruglov
abfb065f6d Bug 1291821 - Get tests to work after sync changes r=rnewman
MozReview-Commit-ID: 3djnmEmzndU

--HG--
extra : rebase_source : 0f51adf71bd0f157da201b2ea7e4092c0acaf9a6
2016-10-11 20:02:02 -07:00
Grisha Kruglov
0311f49437 Bug 1291821 - Ensure sink repository is aware of new events coming from the source r=rnewman
MozReview-Commit-ID: DgqGzfoJxhj

--HG--
extra : rebase_source : da0d451422e4733e5a6ab8a4558150197f08c253
2016-10-11 20:00:09 -07:00
Grisha Kruglov
1020737f7f Bug 1291821 - Split history stage into recent and full history stages r=rnewman
Recent history stage will only run if full history stage did not complete yet.
Bug 1316110 tracks follow up work to make this more efficient.

MozReview-Commit-ID: 7dtbfEFUMGB

--HG--
extra : rebase_source : 94a3e652d9dcf7996e14b96aee28810baee078ea
2016-11-16 14:53:07 -08:00
Grisha Kruglov
5632261a6b Bug 1291821 - Wrap local repositories in buffering middleware r=rnewman
History stage does not wrap history respository in a buffer, because we'd like to
use a high-water-mark and offset resuming later on, and using a persistent buffer
for this stage does not make sense.

MozReview-Commit-ID: FS1swml2bIC

--HG--
extra : rebase_source : be197e0459d86a320076174936cea8ee76e1dbed
2016-10-20 16:31:31 -07:00
Grisha Kruglov
dc5b52e557 Bug 1291821 - Use sync deadline to decide of batching downloader should proceed r=rnewman
MozReview-Commit-ID: IDgIj9lBt61

--HG--
extra : rebase_source : a3d1773abb50748631e28c0aa14797b17b857def
2016-11-01 18:52:18 -07:00
Grisha Kruglov
2c49e9087a Bug 1291821 - Keep track of sync deadline r=rnewman
MozReview-Commit-ID: Fvuc05K1arV

--HG--
extra : rebase_source : 74b0d4dc58c0cd2c1113253eee28ba783e114803
2016-11-08 12:38:00 -08:00
Grisha Kruglov
2b78e4d632 Bug 1291821 - Remove total sync limits, refactor batching downloader r=rnewman
MozReview-Commit-ID: 2SYxemfTv9V

--HG--
extra : rebase_source : 1c795598a9c4d9c7538c740a89a8867dc32bdca1
2016-10-20 13:34:06 -07:00
Grisha Kruglov
f5cae92f97 Bug 1291821 - Decouple BatchingUploader from Server11Repository r=rnewman
MozReview-Commit-ID: 7mPy1cmr3vq

--HG--
extra : rebase_source : 0f48a86e5d6861ffc217bd8c69c154e37c6fd871
2016-11-01 18:55:15 -07:00
Grisha Kruglov
18478e0806 Bug 1291821 - Simplify onFetchFailed, clean up some exception code r=rnewman
MozReview-Commit-ID: 11sIAPCfLWk

--HG--
extra : rebase_source : fb565ed391b721f485f9be74ec3a7986bbc1dfd6
2016-10-11 19:29:46 -07:00
Grisha Kruglov
eb469c632e Bug 1291821 - Add onBatchComplete to a FetchRecordsDelegate r=rnewman
Intended to signal that a group of records have been fetched, and more are
to come after a pause.

MozReview-Commit-ID: 8ozZTc6aNdA

--HG--
extra : rebase_source : e2fdf70d6db6e242e65b788dcb6a09f975b5124b
2016-10-11 19:29:02 -07:00
Grisha Kruglov
3a6788a0df Bug 1291821 - Rename RepositorySession's delegate to storeDelegate, for clarity r=rnewman
Otherwise we often end up with delegate meaning both fetch delegate and store delegate
in extending classes, which gets a little confusing.

MozReview-Commit-ID: L4Sd79jLr88

--HG--
extra : rebase_source : c8df4e2ea373dd415e1c113ccf37c09e392a5302
2016-10-08 17:03:38 -07:00
Grisha Kruglov
f12e7032ca Bug 1291821 - Switch stage duration interval counting to use elapsedRealtime r=rnewman
It is a better fit for interval counting.

MozReview-Commit-ID: LCF0U24MAwF

--HG--
extra : rebase_source : e8a1f4d7d000194f415e882c137cda2b15a0b7b3
2016-10-08 15:28:14 -07:00
Grisha Kruglov
481be98952 Bug 1291821 - Buffering repository middleware r=rnewman
MozReview-Commit-ID: GS3M7k670Po

--HG--
extra : rebase_source : 1b3f102b011fe171f8cafab0cf47ca69b2eb9b93
2017-01-19 13:11:41 -08:00
Grisha Kruglov
c9b5e4ff48 Bug 1291821 - Add storeIncomplete to RepositorySession interface r=rnewman
MozReview-Commit-ID: 68ty7KlP5NR

--HG--
extra : rebase_source : b4ae0a3c286963f4c476c7c0ed768ad5a2b5bb8b
2016-11-02 16:40:15 -07:00
Grisha Kruglov
6052f6ca4c Bug 1291821 - Pre: remove unused SerialRecordConsumer r=rnewman
MozReview-Commit-ID: 3fiHVErUA1g

--HG--
extra : rebase_source : d23b3f157fe7cf42e30a40c034970a355098c68c
2016-10-08 14:49:46 -07:00
Dave Townsend
428143ec78 Bug 1341737: Remove SpatialNavigation.jsm. r=blassey
MozReview-Commit-ID: JIbo1jvwZRW

--HG--
extra : rebase_source : b4e13e75d5dd9ac0e1229c4c54a968ea3f3eda73
2017-02-22 10:46:56 -08:00
Andrzej Hunt
bcb1f87757 Bug 1340957 - Don't rely on SuggestedSites being loaded r=sebastian
MozReview-Commit-ID: JjWurcyDoWQ

--HG--
extra : rebase_source : b3970d3fa36e785c4b9200216a273237c3ad8219
2017-02-21 08:21:56 -08:00
Phil Ringnalda
52d4a2e734 Merge m-c to m-i 2017-02-23 22:31:18 -08:00
Phil Ringnalda
fe1d792536 Backed out changeset 7ee8f1e428c0 (bug 1340041) for Android near-permaorange in media/mediasource/test/test_FrameSelection.html and media/webspeech/synth/test/test_speech_simple.html 2017-02-23 22:27:13 -08:00
Carsten "Tomcat" Book
e6b82618f4 merge mozilla-inbound to mozilla-central a=merge 2017-02-23 14:59:37 +01:00
Michael Kaply
e4d2ce1f0b Bug 1332562 - OMA Downloads should go to the system Download directory. r=snorp
MozReview-Commit-ID: 48fGzGYBoS6

--HG--
extra : rebase_source : 711cadca20a2c26b19c1ffcd0bc33abb4598cc38
2017-02-23 12:27:43 -06:00