Commit Graph

17445 Commits

Author SHA1 Message Date
Valentin Gosu
e825b942e9 Bug 1307456 - Remove PackagedAppService/Verifier r=bagder
MozReview-Commit-ID: LgT7RQAbEf8

--HG--
extra : rebase_source : 25ac286f8b0b69dfb0c80966a78926751f955284
2016-10-31 15:21:14 +01:00
Valentin Gosu
b70924b271 Bug 1307456 - Remove dom/newapps r=baku
MozReview-Commit-ID: BjT3IB9AK0E

--HG--
extra : rebase_source : 7d7c8e4ec4a68f52b5c9325d964c25d2d2c7f265
2016-10-31 15:21:11 +01:00
Sebastian Kaspari
104c2f19a6 Bug 1313316 - Show activity stream setting if build flag is enabled or user is enrolled in experiment. r=ahunt
MozReview-Commit-ID: CEchCITzX0O

--HG--
extra : rebase_source : c66b3b7a7b05a6bd84488de4827abd9c3f6225d8
2016-10-28 14:01:02 +02:00
Sebastian Kaspari
2d10d3097d Bug 1313316 - Add 'activity-stream' experiment. r=ahunt
MozReview-Commit-ID: bamyo1Yb1o

--HG--
extra : rebase_source : 3cc6155f05fc6bf603209d50b06afca47e2e1ee8
2016-10-28 14:00:03 +02:00
Sebastian Kaspari
1a9b2949bf Bug 1313391 - Move HLS video playback behind a switchboard flag. r=snorp
This will allow us to ship the feature to a subset of the users or pull the feature without
needing to release a new version of the app.

MozReview-Commit-ID: 3rGLT29wuyC

--HG--
extra : rebase_source : 993b7c34aace5d7a5f7d1c63eb65ce1ed39aab7f
2016-10-28 20:16:56 +02:00
Sebastian Kaspari
e18aec9098 Bug 1313363 - NotificationClient: Use BigTextStyle instead of InboxStyle. r=Grisha
There's no reason to use InboxStyle here. We do not add any items to the list.
Currently the content text is truncated aggressively showing only one line of
text. With BigTextStyle we can show a lot more.

MozReview-Commit-ID: 8CQZVHzc7b8

--HG--
extra : rebase_source : c717e0c532d7ee101fac89e12db7961e44e811f7
2016-10-28 17:18:52 +02:00
Eugen Sawin
5999591289 Bug 1307886 - [1.2] Remove szip support. r=glandium 2016-10-28 12:59:23 +02:00
Phil Ringnalda
b6eec64324 Merge m-c to a CLOSED TREE m-i
MozReview-Commit-ID: 2JxLeQ8GYIX
2016-10-27 20:36:38 -07:00
Phil Ringnalda
9fa3ebe028 Backed out changeset 582e5f96a727 (bug 1262251) for Linux serviceworker bustage 2016-10-27 18:50:12 -07:00
Dylan Roeh
df4c14e4bb Bug 1262251 - Make openWindow() launch Fennec if it isn't already running. r=catalinb 2016-10-27 13:58:39 -05:00
Michael Layzell
de29c95ed2 Bug 1303196 - Part 7: Updates to apply correctly after noopener changes, r=smaug
MozReview-Commit-ID: 25Ew2PLpP5c
2016-10-27 15:53:35 -04:00
Michael Layzell
0f986f1b54 Bug 1303196 - Part 6: Correctly set the opener when creating new tabs on android, r=smaug
MozReview-Commit-ID: CLT9G1o6lXv
2016-10-27 15:53:35 -04:00
Wes Kocher
cbc0a94248 Backed out changeset 0349a81229e7 (bug 1262251) for build bustage a=backout CLOSED TREE
--HG--
extra : amend_source : 68bb204192d6e3f0c2ae4287dbbf09b81f676f64
2016-10-27 11:55:12 -07:00
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