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

21472 Коммитов

Автор SHA1 Сообщение Дата
Geoff Brown 93d707e2e0 Bug 1285386 - Guard against NPE and other exceptions in SearchEngine creation; r=sebastian 2016-10-25 10:57:37 -06:00
Geoff Brown 0d6eb4cd88 Bug 1293895 - Guard against more exceptions in createEngineFromLocale; r=sebastian 2016-10-25 10:57:36 -06:00
Jim Chen 5f906265fe Bug 1307816 - 16. Fix charset for robocop_input.html; r=me
Trivial patch to include a meta charset line in robocop_input.html.
2016-10-25 12:28:54 -04:00
Jim Chen 4413af86a7 Bug 1307816 - 14. Save composition update for later; r=esawin
Turns out the Facebook comment box doesn't work well if we send
compositions alongside set/remove span events. This patch adds back the
update composition flag, but only sends composition when necessary,
which is only right before we send key events.

Because onImeUpdateComposition is no longer associated with a separate
action, it no longer sends back a reply using AutoIMESynchronize.
2016-10-25 12:28:54 -04:00
Jim Chen a2bfe7c444 Bug 1307816 - 12. Fix up selection and composition when replacing text from Gecko; r=esawin
When a Gecko text change spans larger than our original request, we have
to do the replacement in parts in order to preserve any spans from the
original request. There was a bug where the selection is moved to the
wrong offset after the three replacements. This patch switches the order
of the two replacements and manually fixes up the selection.

For any text changes that originated on the Gecko side, this patch also
splits the replacement into two parts (delete + insert), so that old
composing spans are properly cleared first. This new behavior changes
the expected result for the test added by bug 1051556, so the test is
changed as well.. I think this new behavior is more correct, but if it
results in regressions, we can reevaluate.
2016-10-25 12:28:54 -04:00
Jim Chen 7aeb565019 Bug 1307816 - 11. Use GeckoThread for waiting on Gecko; r=esawin
Right now we send a "process-gecko-events" message to
GeckoInputConnection in order to wait on Gecko during testing. However,
now we have GeckoThread.waitOnGecko() to do that, so we can just use
that directly.
2016-10-25 12:28:54 -04:00
Jim Chen 6044706d5d Bug 1307816 - 10. Move text/selection assert methods to InputConnectionTest; r=esawin
Under asynchronous IME, when we check text/selection for correctness, we
have to wait for the IC thread to sync the shadow text first. In order
to do that inside the assert methods, we have to move them to inside
InputConnectionTest, so that they can call processGeckoEvents() and
processInputConnectionEvents().

Also, ignore a single newline character, if present, at the end of the
actual text, because it's a side effect of some editing operations in
Gecko (e.g. clearing all text in an HTML editor).
2016-10-25 12:28:53 -04:00
Jim Chen 5e0f876ff7 Bug 1307816 - 9. Fix IC thread switching after async refactoring; r=esawin
When switching the IC thread from one thread to another, we can no
longer block on the old IC thread waiting for the Gecko thread. However,
we still block on the new IC thread, waiting for the old IC thread to
finish processing any old events.
2016-10-25 12:28:53 -04:00
Jim Chen 34ec3f2d7d Bug 1307816 - 8. Sync shadow text to current text; r=esawin
Sync the shadow text to the current text when the selection or text
changes on the Gecko side, provided we are not in batch mode and if we
don't have pending actions. Otherwise, remember the skipped sync and
re-sync when we exit batch mode and/or finish all pending actions.
2016-10-25 12:28:53 -04:00
Jim Chen d79992b10f Bug 1307816 - 7. Flush text before sending focus event; r=esawin
We used to flush the Java side text upon receiving the acknowledge-focus
event, at which point the Java side is waiting on the Gecko side.
Because of the async IME refactoring, we can no longer wait on the Java
side, so we have to flush the text early, before sending the first focus
notification. Also, the acknowledge-focus event is no longer needed as a
result.

Our call to InputMethodManager to restart input also has to changed due
to the change in calling sequence between notifyIME and
notifyIMEContext.
2016-10-25 12:28:53 -04:00
Jim Chen 336c81d4d5 Bug 1307816 - 6. Remove ActionQueue and switch to AsyncText; r=esawin
Due to async IME refactoring, we no longer need the blocking mechanism
in ActionQueue. As a result of the simplified code, we can remove
ActionQueue entirely and move its code to under GeckoEditable.
ActionQueue.offer() is now icOfferAction().

This patch also makes mText an instance of AsyncText, and change all
accesses to mText to reflect the new async interface, i.e. accesses on
the Gecko thread go through getCurrentText() and the current*** methods,
and accesses on the IC thread go through getShadowText() and the
shadow*** methods.
2016-10-25 12:28:53 -04:00
Jim Chen ecc67bcfe8 Bug 1307816 - 5. Add AsyncText class for handling asynchronous text editing; r=esawin
AsyncText keeps two copies of the text - the current copy on the Gecko
thread that is the authoritative version of the text, and the shadow
copy on the IC thread that reflects what we think the current text is.

When editing the text on the IC thread, the shadow copy is modified
directly, and then the modification is sent to the Gecko thread, which
modifies the current copy concurrently. Depending on what Gecko does to
the text, the current copy may diverge from the shadow copy, but
periodically, the shadow copy is synced to the current copy through
AsyncText.syncShadowText() to make the two copies identical again.
2016-10-25 12:28:53 -04:00
Jim Chen 9dc213e960 Bug 1307816 - 4. Stop sending separate composition updates; r=esawin
As part of async IME refactoring, we will no longer send composition
updates separately. Instead, composition updates will be integrated into
the set-span and remove-span events, similar to what we already do for
replace-text events.
2016-10-25 12:28:53 -04:00
Jim Chen 1ee888a6b6 Bug 1307816 - 3. Don't implement GeckoEditableListener in GeckoEditable; r=esawin
GeckoEditable implemented GeckoEditableListener because GeckoAppShell
called its methods through GeckoEditableListener, but now we use JNI to
call GeckoEditable methods directly, so GeckoEditable no longer has to
implement GeckoEditableListener.

This change also lets us simplify GeckoEditableListener by making
onTextChange and onSelectionChange no longer have any parameters.
2016-10-25 12:28:53 -04:00
Jim Chen 8ad0835dc6 Bug 1307816 - 2. Make clearSpans call go through Gekco; r=esawin
Currently, clearSpans calls are carried out immediately, but that makes
it out of order in relation to other calls, which have to go through
Gecko. This patch fixes this issue.
2016-10-25 12:28:53 -04:00
Jim Chen db7d4844ae Bug 1307816 - 1. Remove legacy IME code; r=esawin
Remove the event listener in GeckoEditable that was used for old text
selection code. It's no longer relevant for the new accessible carets
code.
2016-10-25 12:28:52 -04:00
Carsten "Tomcat" Book 59a29b8b1c merge mozilla-inbound to mozilla-central a=merge 2016-10-25 10:31:03 +02:00
Carsten "Tomcat" Book 68791df42a merge fx-team to mozilla-central a=merge 2016-10-25 10:28:08 +02:00
Andrzej Hunt 19f83cb748 Bug 1300144 - Implement Activity Stream "context" bottomsheet menu r=sebastian
MozReview-Commit-ID: ARvuWk7H99m

--HG--
extra : histedit_source : 52f83c7f40bb448855e0dc6dd749e9a08efe8c4d
2016-10-24 10:17:14 -07:00
Carsten "Tomcat" Book b9e15ec151 Merge mozilla-central to mozilla-inbound 2016-10-24 16:56:37 +02:00
Kartikaya Gupta 0ac93be86f Bug 1301593 - Fix typo in model number. r=sebastian
MozReview-Commit-ID: IZTk57YxCRb
2016-10-24 08:52:23 -04:00
Andrzej Hunt c14d36e55b Bug 1300144 - Import Activity Stream (VectorDrawable) menu icons r=sebastian
MozReview-Commit-ID: 66TGmjHYkeD

--HG--
extra : histedit_source : 3e53dcb48ca23e7182d8a07c2fb3ef0b5be14b0f
2016-10-07 16:01:26 +02:00
Andrzej Hunt 63cbca5ca4 Bug 1300144 - Pre: pass mUrlOpenInBackgroundListener into HighlightsItem r=sebastian
This will be needed for opening background/private tabs from the highlights menu.

MozReview-Commit-ID: 8wvFuTgl2SP

--HG--
extra : histedit_source : de4024ee986c5a48d9da4206160cf960b1d7bc3c
2016-10-19 15:41:44 -07:00
Andrzej Hunt 38b08f88b4 Bug 1300144 - Increase touch area for menu button r=sebastian
MozReview-Commit-ID: GBdLisIwFuH

--HG--
extra : histedit_source : a07bc6793d299d036b9bbce8d420327ac7698f59
2016-10-19 16:32:29 -07:00
Andrzej Hunt 0c4033a18b Bug 1311741 - Remove "--non-constant-id" from aapt invocations r=nalexander
This flag seems to no longer be needed, and prevents the use of switch statements for resource ID's. It was first introduced for mach based geckoview builds, however geckoview now seems to be built using gradle which is able to invoke aapt to produce better R.java's, resulting in constant Resource ID's in Fennec.

MozReview-Commit-ID: EjWCX4nvlht

--HG--
extra : rebase_source : 3eb30debbc76c39bd8e367bf8709eaaf1592f42a
2016-10-24 09:39:43 -07:00
Rob Wu 67b8230b49 Bug 1287007 - Remove .contentWindow from ProxyContext r=billm
MozReview-Commit-ID: ASNigrM07yz

--HG--
extra : rebase_source : e9169090ec8cb1d9822f235faa15516403576dde
2016-09-13 16:02:03 -07:00
Rob Wu 8a87af36f9 Bug 1287007 - Require "async" in schemas to match name r=billm
In the pageAction and browserAction schemas, several methods are
declared with `"async": true` but without a specified callback in the
`"parameters"` object, so callbacks are not allowed. However, when a
callback is proxied, the `ParentAPIManager` will mirror the call by
passing in an extra callback to the proxied API - and break.

This patch fixes the issue by removing uses of async:true.  Also for
consistency between the browserAction and pageAction methods, the
methods that were not declared as async have also been marked as async.

MozReview-Commit-ID: JQqzmTUAotB

--HG--
extra : rebase_source : 62d1cbc4843dd6c792318337158e4311f8df94a4
2016-09-02 03:37:55 -07:00
Sylvestre Ledru 8a08c99745 Bug 1312421 - Rename of the aurora version in the app launcher r=sebastian
MozReview-Commit-ID: yufnOHQoeG

--HG--
extra : rebase_source : d4f1b9a772e78254d170786a52497e51aa279215
2016-10-24 16:12:40 +02:00
Francesco Lodolo (:flod) 137b1b3a57 Bug 1311693 - Remove Belarusian (be) from nightly single locale builds. r=delphine 2016-10-20 07:12:00 -04:00
Michelangelo De Simone 07411b2cc6 Bug 1310027 - Remove DOM/mobilemessage and related code. r=Ehsan
MozReview-Commit-ID: ENmSuOCdTnA

--HG--
extra : rebase_source : a178eee07034fb2aa1415b64bec1946230fd1c5e
2016-10-17 17:26:51 -07:00
Andrzej Hunt 1b71b782de Bug 1311533 - Switch Activity Stream topsites card back to FilledCardView r=sebastian
This ensures no white borders around the favicons when on Android 4, no changes
on Android 5. Read FilledCardView for the full background on the border/corner
issue that happens on Android <= 4.

MozReview-Commit-ID: IsBcp7xxwjn

--HG--
extra : rebase_source : c37fbfe63eba9d8af4bc0c7b4d4535a380b6d3bd
2016-10-19 14:56:51 -07:00
KuoE0 685b64a883 Bug 1282003 - (Part 3) Add screen ID to nsWindow and GeckoView to get the correct nsScreen and density. r=snorp
MozReview-Commit-ID: Cd9MS2I1RRQ

--HG--
extra : rebase_source : 3e557dc9bb3836cee6ecb86ddeb3c9647221195c
2016-09-29 14:23:56 +08:00
KuoE0 8ebc7fc433 Bug 1282003 - (Part 2) Add screenManagerHelper in Java. r=snorp
MozReview-Commit-ID: BLw6e7dgldt

--HG--
extra : rebase_source : ee5b4bc83e055836b5a739e519d1873252ce6b53
2016-09-23 23:03:00 +08:00
Phil Ringnalda 6c91017f20 Merge m-i to m-c, a=merge
MozReview-Commit-ID: FA9OZyjP59N
2016-10-18 19:36:18 -07:00
Ehsan Akhgari e3186e29a7 Bug 1310910 - Remove ChromeNotifications; r=baku
This partially backs out bug 967475.
2016-10-18 09:41:56 -04:00
Kartikaya Gupta d9a7400119 Bug 1311030 - Remove more code unused since the deletion of JPZ. r=snorp
MozReview-Commit-ID: 1p8aWShTrQf

--HG--
extra : rebase_source : 49d83e86dc9c2b38c7486a04bd7e830d165c34db
2016-10-18 12:34:25 -04:00
Benjamin Smedberg ed2a6c5769 Bug 1307445 part A - Don't ever show "A plugin is needed to display this content." or "This plugin is disabled." - Just always use fallback content or empty content. r=mconley+sebastian
MozReview-Commit-ID: ClnOkK3sWIK

--HG--
extra : rebase_source : 0325b830088bef3a7ee5a506041c8eafafbf50e2
2016-10-18 08:42:12 -04:00
Carsten "Tomcat" Book 5c08a87874 merge mozilla-inbound to mozilla-central a=merge 2016-10-18 10:38:37 +02:00
Wes Kocher 9abb1e1c41 Merge m-c to inbound, a=merge 2016-10-17 15:37:34 -07:00
James Willcox 632ab10f06 Bug 1308534 - Use e10s in GeckoView r=jchen 2016-10-17 15:05:35 -05:00
Ehsan Akhgari ea467855d3 Bug 1310721 - Remove support for the b2g PAC generator; r=mcmanus
This effectively backs out bug 1115495.
2016-10-17 14:10:45 -04:00
Carsten "Tomcat" Book 54cb47289d Merge mozilla-central to autoland 2016-10-17 11:38:07 +02:00
Carsten "Tomcat" Book d6850a3a86 merge mozilla-inbound to mozilla-central a=merge 2016-10-17 11:19:02 +02:00
Mike Taylor 08a11e7624 Bug 1310252. Update webcompatURL to point to new simplified reporting endpoint. r=sebastian 2016-10-17 11:44:18 +08:00
Sebastian Kaspari b600b36c33 Bug 1308525 - Update activity stream panel to follow new UX mocks. r=Grisha
Okay, this patch is much bigger than I anticipated. However at this point it is impossible
to separate all the interweaved changes.

* Update sizes and colors
* Use a dynamic number of top sites tiles to adjust to the screen size
* Do not keep references (to possible outdated) Cursors from every top sites page
* Remove unused bottom panel
* Add menu button to highlights items

MozReview-Commit-ID: 2CeEGCOXBKl

--HG--
extra : rebase_source : a780ec20fa6f87520c3418403ae4fe259ff39d69
2016-10-12 15:07:26 +02:00
Ralph Giles b6f0cf80ab Bug 1306438 - Update builders to rust 1.12.0 stable; r=mshal
Update builders to repacks of the upstream stable builds.
2016-10-15 22:16:13 +00:00
Sebastian Kaspari 439863da4e Bug 1308631 - UpdateService: Do not apply update without update path. r=Grisha
Update path can be null. In this case we fallback to using the last saved path. However
if this doesn't exist either then we just continue with a null path and eventually crash
the service.

MozReview-Commit-ID: Kuihp496TEo

--HG--
extra : rebase_source : 96e2182571f4b2235b3fea25f449b2dbb3e17bb8
2016-10-17 11:19:14 +02:00
Tom Klein e321ee77d6 Bug 1116415 - 6. Provide fixed TouchDelegate class. r=sebastian
The Android version of TouchDelegate never resets the value of its
mDelegateTargeted, which means that once an event is delegated, future events
can get delegated as well, regardless of whether the event occurs within the
TouchDelegate's bounds.  Because of the geometry this is more of an issue with
the (future RecyclerView version of) TabsGridLayout, but it can occur on
TabsLinearLayout as well where we use a TouchDelegate to increase the hit size
of the close button on a tab - once a close button is hit by delegation and the
tab is closed, the next time that tab is recycled it will continue to delegate
ACTION_UP events to the close button (in which case they're silently dropped)
even if the ACTION_DOWN was not in the close button's delegation area.

This commit introduces TouchDelegateWithReset, which is simply an override copy
of TouchDelegate with one extra block (commented in the new class) to reset
mDelegateTargeted on each new gesture received.

MozReview-Commit-ID: 5xrPBAdAK6D

--HG--
extra : rebase_source : d1b9c7a443b0590c63433ea6855c8a1ae0662455
extra : source : 0c267676cb0824d916f398155b0d5b7dec6f346c
2016-09-21 17:49:06 -05:00
Tom Klein 00fcb583c9 Bug 1116415 - 5. Send the index of an added tab as data. r=sebastian
Use the index in TabsLayout to specify where a tab was inserted instead of just
replacing the entire tabs list on a tab add.

MozReview-Commit-ID: Feft0RlN97r

--HG--
extra : rebase_source : 1ff47946d9e94d08dfcee34364c65ae7f8c02e7a
2016-10-13 10:26:53 -05:00
Sebastian Kaspari c895647145 Bug 1310603 - Activity Stream highlights: Add "Visited" and "Bookmarked" icons. r=Grisha
MozReview-Commit-ID: I6lIIRLBXeA

--HG--
extra : rebase_source : eb784ad5efda2bdc8fe3d1cec8447c7efdddac6d
2016-10-13 15:11:21 +02:00