Commit Graph

17430 Commits

Author SHA1 Message Date
Dylan Roeh
04eecc22e1 Bug 1262251 - Make openWindow() launch Fennec if it isn't already running. r=catalinb 2016-10-27 12:49:50 -05:00
KuoE0
ac8b575853 Bug 1285870 - Show custom presentation on Chromecast. r=sebastian,snorp
MozReview-Commit-ID: 3DlbZMDFySA

--HG--
extra : rebase_source : aef9105a22b8cacc06caf557c0d35050619ac7b9
2016-10-03 17:12:57 +08:00
KuoE0
11677f5c9c Bug 1305351 - Add ChromeCastDisplay for Presentation API. r=snorp
MozReview-Commit-ID: A9yXeADOA0Y

--HG--
extra : rebase_source : cebed59abe241a81e8e116245a85be7488931ba9
2016-09-21 20:24:57 +08:00
Alastor Wu
0b06159c5f Bug 1311245 - part4 : remove redundant state. r=sebastian
After lots changing in media control's code, we don't need 'ACTION_START' anymore.

MozReview-Commit-ID: 3KktTrY4HoR

--HG--
extra : rebase_source : e54e59bdaef38b0f4742b94285fae477dbd02e02
2016-10-27 10:12:32 +08:00
Alastor Wu
95c44cf1ee Bug 1311245 - part3 : mActionState should only store resume/pause/stop. r=sebastian
There is no big difference between 'ACTION_RESUME' and 'ACTION_RESUME_BY_AUDIO_FOCUS', we can simplify it.

MozReview-Commit-ID: 4nqfgoopuJ6

--HG--
extra : rebase_source : adf46ef7f3ccd81ed68c02ba32187a8da8b8c7a0
2016-10-27 10:12:30 +08:00
Alastor Wu
8800fa805c Bug 1311245 - part2 : make sure the mActionState would be modified everytime the UI interface changed. r=sebastian
Make sure the value of |mActionState| is correct after we modified the media control's interface.

MozReview-Commit-ID: 6Nhu1gqCFrD

--HG--
extra : rebase_source : 0f7104698feac19112aa6229108fae6c45261769
2016-10-27 10:12:23 +08:00
Alastor Wu
ef912c4dcd Bug 1311245 - part1 : don't need to dispatch event to gecko again when receving tab event 'MEDIA_PLAYING_CHANGE' and 'CLOSED'. r=sebastian
We don't need gecko to do something when receiving 'MEDIA_PLAYING_CHANGE' and 'CLOSED'. The only thing we need to do in Java side is to modify the media control's UI interface.

MozReview-Commit-ID: 6NrNraVOixg

--HG--
extra : rebase_source : 1342e5f44d9ed62d008cf9298832953b19a98d15
2016-10-27 10:11:46 +08:00
Alastor Wu
0819c4e347 Bug 1302453 - part2 : notify MediaControlService when the media is resumed. r=sebastian
When user resumes media from the page, we should notify MediaControlService so
that it can change the playing icon to the correct status.

MozReview-Commit-ID: 15e2GrxvB6a

--HG--
extra : rebase_source : 3bb6714c6c8e10d83a629dc7dd55d6e8a3070b0f
2016-10-27 10:00:25 +08:00
Phil Ringnalda
f5e82adbfe Backed out changeset baf3f0f96116 (bug 1311960) for Android mochitest, mochitest-media, and crashtest bustage 2016-10-26 20:48:39 -07:00
John Lin
097a82d6ac Bug 1311960 - Turn on remote media decoding preference on Android Nightly. r=snorp
MozReview-Commit-ID: KZ5l7L3rnMu

--HG--
extra : rebase_source : e2840146a857739c6db92bab993dac88e95c63fb
2016-10-21 18:07:52 +08:00
Sebastian Kaspari
1eefd99be6 Bug 1312033 - Activity Stream Top Sites: Never add more sites than returned by the cursor. r=ahunt
MozReview-Commit-ID: JONNSrRPNyW

--HG--
extra : rebase_source : 8f4f6adacc6b95d497a98f693783be5dfe6db94b
2016-10-25 15:16:40 +02:00
Sebastian Kaspari
463d8d9ba6 Bug 1311938 - Activity Stream: Use default base margin for "highlights" label. r=ahunt
MozReview-Commit-ID: BjCchrU6PZt

--HG--
extra : rebase_source : fa92fb3b160e099edaffd2523dc5605b57b9771c
2016-10-25 16:21:11 +02:00
Phil Ringnalda
8cf1367dd8 Merge m-i to m-c, a=merge
MozReview-Commit-ID: FnnOWQ3xKPi
2016-10-25 22:03:31 -07:00
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
Tushar Saini (:shatur)
551edc4ced Bug 1312795 - Remove shouldUseTransactions method and related code. r=sebastian
MozReview-Commit-ID: xRXPi9yvff

--HG--
extra : rebase_source : 822069c5ffe676d1abd6a5d6b07c79a14ae6794a
2016-10-25 22:54:59 +05:30
Kartikaya Gupta
213392281d Bug 1312743 - Remove more code that's unused after the removal of JPZ. r=snorp
MozReview-Commit-ID: 6lbyoAIGP6H

--HG--
extra : rebase_source : 12eab3f8c5d952e88ea03bdac964869aeda50e47
2016-10-25 13:07:22 -04: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
Andrzej Hunt
d5dfc69ce9 Bug 1311561 - Add basic AS context menu robocop tests r=sebastian
MozReview-Commit-ID: A90BvpuHJHb

--HG--
extra : rebase_source : a8cc551a54539cdeb0461f591b10c2b26d3ce302
2016-10-20 09:22:04 -07:00
Andrzej Hunt
f4033b9482 Bug 1311561 - Pre: add design support library to robocop r=nalexander,sebastian
We want to access ActivityStreamContextMenu directly in our new test. That menu
extends BottomSheetDialog which is contained in the design support library, hence
we need to make that library available in robocop builds in order to access
the AS context menu.

MozReview-Commit-ID: EPyv7wvkJAE

--HG--
extra : rebase_source : cafe1e7dd6fbdcfb471cf5f66a1c0522e796c3aa
2016-10-20 09:19:22 -07:00
Tushar Saini (:shatur)
84a83b607a Bug 1264596 - GeckoApp: Remove mCameraView and related code. r=gcp,sebastian
MozReview-Commit-ID: ACgp4iIAigw

--HG--
extra : rebase_source : e0c92b6d8e68d82b7db3c195e22a457dbc43d95d
2016-10-20 19:27:59 +05:30
John Lin
b1959d4411 Bug 1306483 - Part 2: send notification immediately when caller sender shares looper with buffer poller. r=esawin
MozReview-Commit-ID: 9hZB6TI4A6X

--HG--
extra : rebase_source : 721b571b4f606cf2d1766a175d1085d78f61197a
2016-10-20 15:43:25 +08:00
John Lin
beefbc8533 Bug 1306483 - Part 1: use concurrent queue to fix race condition. r=snorp
MozReview-Commit-ID: HRus9Sn7k6q

--HG--
extra : rebase_source : 2b5330bf4e97182e6026aaac85eb9c5dc85a89db
2016-10-20 15:25:44 +08: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