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

22422 Коммитов

Автор SHA1 Сообщение Дата
Randall Barker 1b04875fd3 Bug 1344517 - Keep dynamic toolbar visible while page is loading r=kats 2017-03-06 14:01:46 -08:00
Jim Chen 3f746133a9 Bug 1337910 - Notify observers from Gecko event queue; r=snorp
Call NotifyObservers from the Gecko event queue instead of the Android
event queue, to better support Promises in notified JS code.
2017-03-06 15:32:37 -05:00
Carsten "Tomcat" Book d0bd960945 merge mozilla-inbound to mozilla-central a=merge 2017-03-06 10:53:27 +01:00
Tushar Saini (:shatur) ab529e5e79 Bug 1305528 - Remove ignoreEvent from API events for which it is inappropriate. r=bsilverberg,mixedpuppy
MozReview-Commit-ID: Cado1fxLYxr

--HG--
extra : rebase_source : 263d0ef1bc2f38866571d2bb6d555b8dcc9dca38
2017-03-02 02:01:44 +05:30
Wes Kocher 1b29a33fce Merge m-c to autoland, a=merge
MozReview-Commit-ID: K0Q4b2wzvlJ
2017-03-03 17:29:54 -08:00
Wes Kocher c4f1f63f47 Merge autoland to central, a=merge
MozReview-Commit-ID: tSEg2GfeWi
2017-03-03 17:27:33 -08:00
Carsten "Tomcat" Book 45d42cf9c7 Merge mozilla-central to autoland 2017-03-03 13:07:34 +01:00
Carsten "Tomcat" Book cf269a43bd merge mozilla-inbound to mozilla-central a=merge 2017-03-03 13:03:48 +01:00
Sebastian Kaspari 3824713252 Bug 1342329 - Only link the "default browser" setting to the default apps screen. r=ahunt
MozReview-Commit-ID: I7mrsbXGng1

--HG--
extra : rebase_source : eae4762aabd973b56dba7e2be584e9638fd5bc3a
2017-03-03 11:12:48 +01:00
Carsten "Tomcat" Book 06813a3df9 Merge mozilla-central to mozilla-inbound 2017-03-03 13:06:37 +01:00
Wes Kocher 901a8c09c1 Merge m-c to autoland, a=merge
MozReview-Commit-ID: AZeTEvGhLd1
2017-03-02 15:03:44 -08:00
Wes Kocher a9419110b3 Backed out 2 changesets (bug 1334975, bug 1335539) for merge conflicts a=backout
Backed out changeset 429ff39f3d28 (bug 1335539)
Backed out changeset eea959a93ce4 (bug 1334975)

MozReview-Commit-ID: GlvA0B0vHRT
2017-03-02 14:57:21 -08:00
Ben Kelly 9e4cb4f2f0 Bug 1343895 Tune dom.timeout.max_consecutive_callbacks on fennec. r=smaug 2017-03-02 11:33:12 -05:00
Andrea Marchesini b54dc840c3 Bug 1335539 - Get rid of nsIDOMWindowUtils.wrapDOMFile, r=smaug, r=Gijs 2017-03-02 17:15:29 +01:00
Carsten "Tomcat" Book 4a4777d1aa merge mozilla-inbound to mozilla-central a=merge 2017-03-02 14:02:48 +01:00
Jan Henning ef37784cd5 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

--HG--
extra : rebase_source : 6dc40b1ff816b373783afa6bd34546a961e75571
2017-03-01 21:08:11 +01:00
Zibi Braniecki 3613954ec3 Bug 1339892 - Refactor mozIntl to have a nicer API and thin logic. r=smaug
MozReview-Commit-ID: J4QXXBy7JII

--HG--
rename : toolkit/components/mozintl/MozIntl.cpp => toolkit/components/mozintl/MozIntlHelper.cpp
rename : toolkit/components/mozintl/MozIntl.h => toolkit/components/mozintl/MozIntlHelper.h
rename : toolkit/components/mozintl/mozIMozIntl.idl => toolkit/components/mozintl/mozIMozIntlHelper.idl
extra : rebase_source : 9753dbeea2e11c7fde550df1a20b1c3d1b2063fe
2017-03-01 16:58:11 -08:00
Andrea Marchesini 4d21d3a57a Bug 1335539 - Get rid of nsIDOMWindowUtils.wrapDOMFile, r=smaug, r=Gijs 2017-03-03 09:42:54 +01:00
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
Jan Henning 0c214f050c Bug 1343995 - Wait for sanitizing to really finish before shutting down. r=jchen
BrowserApp's sanitize() function assumed that the Sanitizer would return promises for each sanitization handler, so it could wait for them to resolve before proceeding with shutdown (which was also the assumption behind the patch for bug 1266594). In fact even the Sanitizer expected to do this is well, since it wrapped each of its handling functions within a promise/task/sendRequestForResult. However it turns out that Sanitizer's clearItem function then failed to actually return this promise - apparently ever since this was implemented.

MozReview-Commit-ID: 6hN3UTXUIuV

--HG--
extra : rebase_source : 4971bc02962c817037a565595d3c1cedb0532d76
2017-03-02 21:34:23 +01:00
Wes Kocher bd0bfddf8e Merge m-c to inbound, a=merge
MozReview-Commit-ID: Fypud50dqYw
2017-03-02 15:03:11 -08:00
Kris Maglione 95a63cc7ea Bug 1339872: Bump max tries for earliest runAt states. r=me
MozReview-Commit-ID: 6LeWXrgMcCE
2017-03-02 11:21:03 -08:00
Jim Chen c7d526d4ee Bug 1339685 - Split GeckoEditable into parent and child classes; r=nalexander r=esawin r=snorp
Bug 1339685 - 1. Support compiling GeckoView aidl from multiple packages; r=nalexander

Specify a list of AIDL files for GeckoView so we can include AIDLs from
multiple packages, and not just those from the org.mozilla.gecko.process
package.

Bug 1339685 - 2. Add AIDLs for GeckoEditable; r=esawin

Add IGeckoEditableParent.aidl and IGeckoEditableChild.aidl for two-way
communication between the parent, which lives in the main process, and
the child, which lives in the main process or a child content process.

Bug 1339685 - 3. Refactor some GeckoEditable code; r=esawin

Auto-generate native constants for the constants in GeckoEditableClient,
instead of keeping a separate set of constants in native code.

Bug 1339685 - 4. Add GeckoEditableChild; r=esawin

Add the GeckoEditableChild class, which is currently only used in the
main process as the interface between the native nsWindow and
GeckoEditable. Eventually, it will be expanded to child content
processes as the interface between the native PuppetWidget and
main process GeckoEditable.

Bug 1339685 - 5. Use GeckoEditableChild from GeckoEditable; r=esawin

Make calls to GeckoEditableChild from GeckoEditable, and remove code
that exists in GeckoEditableChild from GeckoEditable.

Bug 1339685 - 6. Add GetNativeObject member to proxied native calls; r=snorp

Add a convenience function for getting the C++ object that is the target
of the native call.

Bug 1339685 - 7. Use GeckoEditableChild from native code; r=esawin

Make nsWindow and GeckoEditableSupport use GeckoEditableChild for
communication. nsWindow still keeps a reference to GeckoEditable for
switching views.

Bug 1339685 - 8. Updated generated bindings; r=me
2017-03-02 13:47:14 -05:00
Sebastian Kaspari ff5dce313b Bug 1330973 - Use website description length for highlights ranking. r=Grisha
MozReview-Commit-ID: 7kZjNb2MSJ7

--HG--
extra : rebase_source : 8a5e12aaa78cee002330d57219465fd89c4c9c08
2017-02-02 17:08:30 +01:00
Sebastian Kaspari 4e6612f2c4 Bug 1330973 - WebsiteMetadata.jsm: Add description length to Metadata JSON. r=Grisha
MozReview-Commit-ID: 4zxaHPLEWJ6

--HG--
extra : rebase_source : 861de1b6e5f47435963d641aa6a2245f18a77128
2017-02-02 16:21:54 +01:00
Sebastian Kaspari fd87861e7b Bug 1312016 - Activity Stream: Implement highlights ranking to mirror desktop add-on behavior. r=Grisha
This patch has multiple changes folded into:
* Remove old highlights query
* Add new query for retrieving recent history to consider for highlights
* First version of highlights ranking implementation
* Add new loader implementation that will return a list of Highlight objects instead of a Cursor
* Modify UI code to work with Highlight objects instead of a Cursor.

MozReview-Commit-ID: Pdx2YxrZKA

--HG--
extra : rebase_source : 495bd97e40270fb15c05d5b5f511d5dcf89fbd1b
2017-02-13 18:14:23 +01:00
Dylan Roeh a21a7f8f67 Bug 1305815 - Issue EOL warning if non-NEON-compatible device detected. r=glandium 2017-03-01 13:26:12 -06:00
Jim Chen e559b260ee 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 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
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