Commit Graph
18335 Commits
Author SHA1 Message Date
Carsten "Tomcat" Book dc21916166 merge mozilla-inbound to mozilla-central a=merge 2017-03-02 14:02:48 +01:00
Jan Henning 5987351cb3 Bug 1342820 - Reset navigation button state when clearing history. r=ahunt
Clearing history purges a tab's session history as well. Normally, we only update the navigation button state in the UI for a location change, so now we need to start listening for the appropriate message as well.

BrowserApp has already registered a background thread listener for "Sanitize:ClearHistory" - since this can be called during shutdown as well and their listener is more important (clearing the history DB), we defer to them and redispatch to the UI thread ourselves, so BrowserApp doesn't have to do this during shutdown.

MozReview-Commit-ID: C83mk6Z56Oq
2017-03-01 21:08:11 +01:00
Nevin Chen 3defd2cba9 Bug 1342354 - Add pref pref on/off switch for new bookmark features. r=ahunt
MozReview-Commit-ID: 1Rz7rAao5Is
2017-02-24 18:05:10 +08:00
Alfredo.Yang 0aa9377a14 Bug 1341967 - remove MOZ_RUST_MP4PARSE. r=kinetik
MozReview-Commit-ID: SgTlIo8wEi
2017-03-01 14:44:42 +08:00
Dylan Roeh 68a41fec08 Bug 1305815 - Issue EOL warning if non-NEON-compatible device detected. r=glandium 2017-03-01 13:26:12 -06:00
Jim Chen 791a65ebd1 Bug 1137567 - Make nsWindow for Android use TextEventDispatcher; r=esawin r=rbarker r=masayuki r=snorp
Bug 1137567 - 1. Allow dispatching key events during composition; r=esawin

We potentially dispatch key events during composition to provide
compatibility for pages that only listen to key events.

Bug 1137567 - 2. Allow keyboard events in DispatchInputEvent when not on APZ thread; r=rbarker

We use nsIWidget::DispatchInputEvent to dispatch our keyboard events on
the Gecko thread, which on Android is not the APZ controller thread. We
should allow these events to pass instead of crashing.

Bug 1137567 - 3. Add GeckoEditableSupport class to support TextEventDispatcher; r=masayuki

Add a separate GeckoEditableSupport class, which implements
TextEventDispatcherListener and uses TextEventDispatcher for IME
operations. The new class is entirely separate from nsWindow to allow it
to be independently used in content processes as well.

Most of the code is copied from nsWindow::GeckoViewSupport, and adapted
to use TextEventDispatcher.

Bug 1137567 - 4. Make nsWindow::WindowPtr available for outside classes; r=snorp

Make nsWindow::WindowPtr available not just for classes inside nsWindow
but for outside classes as well. Also, add support for RefPtr native
objects to nsWindow::NativePtr.

Bug 1137567 - 5. Use GeckoEditableSupport in nsWindow; r=esawin

Use the new GeckoEditableSupport class in nsWindow to replace the
previous code in nsWindow::GeckoViewSupport. GeckoEditable native
methods now go to GeckoEditableSupport instead of GeckoViewSupport.

Several native methods in GeckoEditable are changed from
dispatchTo="proxy" to dispatchTo="gecko", because we no longer need the
special nsWindow::WindowEvent wrapper for our native calls.

Bug 1137567 - 6. Use pushPrefEnv in test_assign_event_data.html; r=masayuki

setAndObserveCompositionPref in test_assign_event_data.html does not
invoke the callback if the pref is already set. This patch changes it to
use SpecialPowers.pushPrefEnv so the callback is always invoked.
2017-03-01 15:29:30 -05:00
Tom Klein 8c1ad00722 Bug 1216489 - 3. Remove unnecessary touch intercept code for TabsPanel. r=sebastian
MozReview-Commit-ID: 7pf9GRLgHXg
2016-11-30 18:30:57 -06:00
Tom Klein bd7e41344d Bug 1216489 - 2. Cleanup width and height calculations in TabsPanel. r=sebastian
MozReview-Commit-ID: I1chEZDnOyR
2016-11-30 17:31:37 -06:00
Tom Klein fb3a754e8c Bug 1216489 - 1. Cleanup TabsPanel includes and remove member variable. r=sebastian
MozReview-Commit-ID: 9eTBEf8xj1l
2016-11-30 17:02:53 -06:00
Tom Klein e925f58b33 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
2017-02-22 21:54:11 -06:00
Jan Henning 253e87dfb3 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
2017-02-17 20:02:33 +01:00
Jan Henning 05d9f4c323 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
2017-02-23 22:16:26 +01:00
maliu df943b2db0 Bug 1331995 - Reset text direction to locale in order to reveal text hint, checkstyle, r=sebastian 2017-03-01 18:34:59 +01:00
Carsten "Tomcat" Book 11dc551b03 Merge mozilla-central to autoland 2017-02-28 13:04:30 +01:00
Carsten "Tomcat" Book 307869a4df merge mozilla-inbound to mozilla-central a=merge 2017-02-28 11:24:33 +01:00
65e4b93acc Bug 1337692 - Ask for permission on input=file/accept. r=sebastian,grisha 2017-02-27 21:02:00 -06:00
Michael Kaply 556c2720b3 Bug 1031210 - Add junit tests for StringUtils.stripScheme. r=snorp 2017-02-27 16:21:47 -06:00
Eugen Sawin fe94fff05a Bug 1342508 - [2.1] Make code style consistent across GeckoView. r=jchen 2017-02-27 20:39:45 +01:00
Eugen Sawin d6b9f4a671 Bug 1342508 - [1.0] Add GeckoView.reload. r=snorp 2017-02-27 20:39:45 +01:00
Jan Henning 2f69e26f8b 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
2017-02-12 13:33:42 +01:00
Jing-wei Wu 97abf78000 Bug 1323366 - Create new IconRequest to prevent ConcurrentModificationException, r=sebastian 2017-02-20 09:45:16 +08:00
Masatoshi Kimura 4f2e64ad3d 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
2017-02-23 06:10:07 +09:00
Grisha Kruglov dc28277d01 Bug 1291821 - Post: remove unused files r=rnewman
MozReview-Commit-ID: 4qM5vx4AQyQ
2016-11-29 13:36:26 -08:00
Grisha Kruglov 37a9189269 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
2017-01-19 13:11:18 -08:00
Grisha Kruglov dd5f110508 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
2017-02-24 13:04:54 -08:00
Grisha Kruglov 6694eb16a3 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
2016-11-29 13:42:53 -08:00
Grisha Kruglov 450845fdce 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
2017-02-24 13:04:15 -08:00
Grisha Kruglov c657289982 Bug 1291821 - Get tests to work after sync changes r=rnewman
MozReview-Commit-ID: 3djnmEmzndU
2016-10-11 20:02:02 -07:00
Grisha Kruglov 16901278c4 Bug 1291821 - Ensure sink repository is aware of new events coming from the source r=rnewman
MozReview-Commit-ID: DgqGzfoJxhj
2016-10-11 20:00:09 -07:00
Grisha Kruglov 7ef52aeb7d 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
2016-11-16 14:53:07 -08:00
Grisha Kruglov 711526ea3c 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
2016-10-20 16:31:31 -07:00
Grisha Kruglov bb597858e6 Bug 1291821 - Use sync deadline to decide of batching downloader should proceed r=rnewman
MozReview-Commit-ID: IDgIj9lBt61
2016-11-01 18:52:18 -07:00
Grisha Kruglov 41b38d6a1a Bug 1291821 - Keep track of sync deadline r=rnewman
MozReview-Commit-ID: Fvuc05K1arV
2016-11-08 12:38:00 -08:00
Grisha Kruglov 6c724c5e88 Bug 1291821 - Remove total sync limits, refactor batching downloader r=rnewman
MozReview-Commit-ID: 2SYxemfTv9V
2016-10-20 13:34:06 -07:00
Grisha Kruglov 5cefe7fd87 Bug 1291821 - Decouple BatchingUploader from Server11Repository r=rnewman
MozReview-Commit-ID: 7mPy1cmr3vq
2016-11-01 18:55:15 -07:00
Grisha Kruglov 157f1c2da3 Bug 1291821 - Simplify onFetchFailed, clean up some exception code r=rnewman
MozReview-Commit-ID: 11sIAPCfLWk
2016-10-11 19:29:46 -07:00
Grisha Kruglov 7b9c7bffd2 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
2016-10-11 19:29:02 -07:00
Grisha Kruglov e4b277828a 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
2016-10-08 17:03:38 -07:00
Grisha Kruglov 1de5849645 Bug 1291821 - Switch stage duration interval counting to use elapsedRealtime r=rnewman
It is a better fit for interval counting.

MozReview-Commit-ID: LCF0U24MAwF
2016-10-08 15:28:14 -07:00
Grisha Kruglov 96b897ab0f Bug 1291821 - Buffering repository middleware r=rnewman
MozReview-Commit-ID: GS3M7k670Po
2017-01-19 13:11:41 -08:00
Grisha Kruglov 8a8e4be790 Bug 1291821 - Add storeIncomplete to RepositorySession interface r=rnewman
MozReview-Commit-ID: 68ty7KlP5NR
2016-11-02 16:40:15 -07:00
Grisha Kruglov eb602f919b Bug 1291821 - Pre: remove unused SerialRecordConsumer r=rnewman
MozReview-Commit-ID: 3fiHVErUA1g
2016-10-08 14:49:46 -07:00
Dave Townsend 5dfd26011c Bug 1341737: Remove SpatialNavigation.jsm. r=blassey
MozReview-Commit-ID: JIbo1jvwZRW
2017-02-22 10:46:56 -08:00
Andrzej Hunt 2b26cc7964 Bug 1340957 - Don't rely on SuggestedSites being loaded r=sebastian
MozReview-Commit-ID: JjWurcyDoWQ
2017-02-21 08:21:56 -08:00
Phil Ringnalda 361c4f92de Merge m-c to m-i 2017-02-23 22:31:18 -08:00
Phil Ringnalda 042d1cc238 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 bba4222305 merge mozilla-inbound to mozilla-central a=merge 2017-02-23 14:59:37 +01:00
Michael Kaply 8702aa26dd Bug 1332562 - OMA Downloads should go to the system Download directory. r=snorp
MozReview-Commit-ID: 48fGzGYBoS6
2017-02-23 12:27:43 -06:00
Michael Kaply 3a10631b7c Bug 1031210 - Don't assume URL format to prevent crash. r=snorp
MozReview-Commit-ID: 23qE4mI5tBU
2017-02-23 11:24:59 -06:00
Jim Chen debb73a108 Bug 1257366 - Try setting designMode again; r=gbrown
If the first set designMode call fails, schedule another call for a
later time.
2017-02-22 23:10:18 -05:00