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

20752 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez e808575ca4 Bug 1406631: Remove the color-picker-available system metric. r=xidorn
All our widgets support it with a constant true.

MozReview-Commit-ID: JMEItUsxYWq

--HG--
extra : rebase_source : e7e0a3f83001813239338bc5b3895252e1fb3ea6
2017-10-07 14:06:44 +02:00
Nevin Chen(:nechen) 461c0cca48 Bug 1391342 - Keep toolbar hidding while showing keyboard in full screen. r=jchen,jwu,sebastian
MozReview-Commit-ID: 7GLvOB3TyuK

--HG--
extra : rebase_source : 61240f74b3487c972581c2255d606c504f6dd381
2017-10-06 11:33:14 +08:00
Jan Henning 01f89138c1 Bug 1188927 - Register Firefox for Android as a handler for SVG files. r=mcomella
MozReview-Commit-ID: Cjoi9a3A8fY

--HG--
extra : source : 10a588943e59723316e72c76b75edd13db8d7dfc
2017-10-10 21:06:30 +02:00
Jim Chen 77800a7f7a Bug 1401737 - 6. Handle GeckoApplication recreation; r=esawin
Handle rare cases where GeckoApplication is recreated when Fennec is
alive. In such cases, we need to unregister certain event listeners from
the old GeckoApplication so we can register again under the new one.
Also make GeckoActivityMonitor and TelemetryBackgroundReceiver better
handle GeckoApplication instance changes.

MozReview-Commit-ID: CrV8R9CyCRm
2017-10-10 15:13:46 -04:00
Jim Chen 2a360cb257 Bug 1401737 - 5. Revert diagnostic crash; r=me
MozReview-Commit-ID: 6wZvzHgUH7Z
2017-10-10 15:13:46 -04:00
Grigory Kruglov 3ca2df25d7 Bug 1401318 - Fix some of the 'shared-state' access problems around Account r=nalexander
This patch fixes several symptoms of shared state (internal 'account' instance) getting
out-of-sync with the world.

We maintain a representation of an internal Account in the AndroidFxAccount, but nothing is
preventing that representation to become irrelevant in certain situations. This patch ensures
we 'update our internal cache', so to speak, before trying to act upon it.

Changes in the 'profile JSON fetched' flow are necessary to support the 'email might change' case.
Locking is necessary to ensure correct behaviour in case of overlapping syncing and profile fetching.

Changes in 'getState' are necessary to ensure we behave correctly when a long-lived AndroidFxAccount
instance is interrogated (as in the Sync Prefs UI) after internal account changes.

There are likely to be other "symptoms", but this patch aims to be safely upliftable in order to
support changing of a primary email.

See Bug 1407316 for further root-cause analysis and proposed solution.

MozReview-Commit-ID: AXmTBMzL2cf

--HG--
extra : rebase_source : f34bdab349363981851c0936cbb2da64c327e657
2017-10-10 13:33:50 -04:00
Jing-wei Wu 557826defc Bug 1406874 - Show a color indicator for the selected tab strip on tablet. r=nechen
MozReview-Commit-ID: 9vYGxkI9swX

--HG--
extra : rebase_source : 16675eebb01b46765ca69f9131667b6e255adc32
2017-10-09 17:48:19 +08:00
Jing-wei Wu dc6fd8c2de Bug 1406828 - Update back/forward icons for RTL on tablet. r=nechen
MozReview-Commit-ID: DidBVCe4h1m

--HG--
rename : mobile/android/app/src/main/res/drawable-ldrtl-large-hdpi/ic_menu_back.png => mobile/android/app/src/photon/res/drawable-ldrtl-large-hdpi/ic_menu_back.png
rename : mobile/android/app/src/main/res/drawable-ldrtl-large-hdpi/ic_menu_forward.png => mobile/android/app/src/photon/res/drawable-ldrtl-large-hdpi/ic_menu_forward.png
rename : mobile/android/app/src/main/res/drawable-ldrtl-large-xhdpi/ic_menu_back.png => mobile/android/app/src/photon/res/drawable-ldrtl-large-xhdpi/ic_menu_back.png
rename : mobile/android/app/src/main/res/drawable-ldrtl-large-xhdpi/ic_menu_forward.png => mobile/android/app/src/photon/res/drawable-ldrtl-large-xhdpi/ic_menu_forward.png
rename : mobile/android/app/src/main/res/drawable-ldrtl-large-xxhdpi/ic_menu_back.png => mobile/android/app/src/photon/res/drawable-ldrtl-large-xxhdpi/ic_menu_back.png
rename : mobile/android/app/src/main/res/drawable-ldrtl-large-xxhdpi/ic_menu_forward.png => mobile/android/app/src/photon/res/drawable-ldrtl-large-xxhdpi/ic_menu_forward.png
extra : rebase_source : c7ca6c08fdbef5a06411aa1f62c01775205a8193
2017-10-09 13:36:13 +08:00
Jing-wei Wu 4bcdd48869 Bug 1406338 - Part 2: Show favicons in tabs tray page. r=nechen
MozReview-Commit-ID: BXOFuxwI0sl

--HG--
extra : rebase_source : 24060ab31fb3df81fa341f54b0aa969b31e4564c
2017-10-09 11:02:52 +08:00
Jing-wei Wu 7ec87779b1 Bug 1406338 - Part 1: Support applying specific text size while creating a favicon. r=nechen
MozReview-Commit-ID: Dcx1RgcRdka

--HG--
extra : rebase_source : 04971e5592d6d8aa58c9192ae501ea9eb0a5fae9
2017-10-09 10:36:56 +08:00
Kyle Machulis 669ff05b49 Bug 1406525 - Remove nsIDOMHTMLLinkElement; r=bz
MozReview-Commit-ID: 4xUSQ8SiIqX
2017-10-09 16:09:38 -07:00
Thom Chiovoloni 5e4fd13a04 Bug 1362206 - Have android abort bookmark syncs if a record is too large to upload to the server r=Grisha
MozReview-Commit-ID: JBggAu9Ajbu

--HG--
extra : rebase_source : b8ec16ac467f33ab81ed914c63af8ab1d7e29eef
2017-09-06 17:48:18 -04:00
Edouard Oger a33eb39eb7 Bug 1407728 - Add reason field to messages sent with /notify. r=Grisha
MozReview-Commit-ID: EZbXl2ZoMxK

--HG--
extra : rebase_source : 13c9c511df067d54467b6ad24c3e3f2162f7dd4d
2017-10-11 15:45:25 -04:00
Sebastian Hengst aa9035ca52 Backed out changeset 1da1df814ad3 (bug 1352599) 2017-10-12 23:42:00 +02:00
Sebastian Hengst 4b5ec86ca9 Backed out changeset 5f4ff0de7242 (bug 1405412) 2017-10-12 23:41:30 +02:00
Nick Alexander 962b96fa44 Bug 1405412 - Migrate Android SDK to android-sdk-linux toolchain task. r=dustin
The only tricky piece here is that the resulting toolchain archive is
private, and uses a newly allocated Task Cluster scope
(queue:get-artifact:project/gecko/android-sdk/*) to restrict access to
the archive.  All SCM levels (1, 2, 3) have been given the new scope:
see https://tools.taskcluster.net/auth/roles/moz-tree:level:1 and
friends.

MozReview-Commit-ID: CcDqDOHODpe

--HG--
extra : rebase_source : 062bca8c65556f0f46e9c9cc6cd81eb04cf2b522
2017-10-03 11:45:27 -07:00
Nick Alexander b12ab072d2 Bug 1406196 - Move GRADLE_USER_HOME in tree. r=maliu
The goal of this approach is to tell Gradle to not connect (or allow
it to connect) to the network when fetching dependencies.  No Android
automation tasks should fetch from the network, except the toolchain
tasks (which are specially intended to do so).

It's difficult to arrange this without including the `--offline` flag
everywhere.  It _should_ be possible to set offline using an
environment variable -- which would allow us to get rid of these
dotgradle-* files -- but offline isn't an option in
https://docs.gradle.org/4.2.1/userguide/build_environment.html#sec:gradle_configuration_properties
(and certainly not in earlier versions either).  Therefore,
environment variable that points to an init.gradle file in automation.

Before this patch, the files telling Gradle whether to start offline
were fetched from tooltool.  That's just a layer that doesn't need to
be there.

None of this impacts local developers.

MozReview-Commit-ID: LAXktbBu1Az

--HG--
extra : rebase_source : d23801643d32135a87d410bf5e8508da556ef9be
2017-10-12 10:22:23 -07:00
Nick Alexander 2464b13257 Bug 1406196 - Pre: Cull unused Gradle plugin. r=maliu
This just isn't used any more; get rid of it.  We might want to put
Gradle packages in the tree in the future, so keep
mobile/android/gradle/m2repo.

MozReview-Commit-ID: Gc7TzAqCVsa

--HG--
extra : rebase_source : e60ca18ee19269721c3ecface515c3bba8089f72
2017-10-05 15:00:53 -07:00
Nick Alexander 6e98033aa9 Bug 1352599 - Part 2: Add PROGUARD_JAR configure option. r=chmanchester
MozReview-Commit-ID: 9ZHaGfmrjNI

--HG--
extra : rebase_source : 4885fcc538dcb50a99e83e787715a309b480c62e
2017-10-02 15:26:25 -07:00
Edouard Oger 3b8448fae3 Bug 1401749 - Remove fallback int->boolean conversion in FxAccountsDevice. r=Grisha
MozReview-Commit-ID: miGvypXH1C

--HG--
extra : rebase_source : 2d374b627f05e88836893ef4e4e8a0375098ebb8
2017-10-10 12:53:09 -04:00
Jan Henning f3c2c7d40d Bug 1406410 - Use URI input type when editing a bookmark's URL. r=jwu
MozReview-Commit-ID: IqhMAByb0mx

--HG--
extra : rebase_source : 12e6349ffa237598025d422a76bc325d06a73cee
2017-10-06 17:15:35 +02:00
Sebastian Hengst b29f365446 Backed out changeset f70d6fcdb760 (bug 1406631) for failing color related reftests like layout/reftests/writing-mode/ua-style-sheet-input-color-1.html on Android. r=backout 2017-10-07 20:08:12 +02:00
Emilio Cobos Álvarez b7befbe6b5 Bug 1406631: Remove the color-picker-available system metric. r=xidorn
All our widgets support it with a constant true.

MozReview-Commit-ID: JMEItUsxYWq

--HG--
extra : rebase_source : a2661dce1ac191fdf098e631cd7878f0215643d5
2017-10-07 14:06:44 +02:00
Sebastian Hengst 5d61e2eec8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JDCYKq7yKwb
2017-10-07 10:45:11 +02:00
Sebastian Hengst b834f0d177 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 7Ez95T2ivfR
2017-10-07 10:37:39 +02:00
Eugen Sawin bb9e1eadc9 Bug 1404311 - [1.1] Enable remote USB debugging of custom tabs and PWAs through Fennec settings. r=snorp 2017-10-06 19:19:37 +02:00
Tomislav Jovanovic 4328bf904a Bug 1398514 - Use slower documents for executeScript_runAt test r=kmag
MozReview-Commit-ID: 56FMa4sjO3Z

--HG--
rename : browser/components/extensions/test/browser/file_iframe_document.sjs => browser/components/extensions/test/browser/file_slowed_document.sjs
rename : mobile/android/components/extensions/test/mochitest/file_iframe_document.sjs => mobile/android/components/extensions/test/mochitest/file_slowed_document.sjs
extra : rebase_source : 638741cd4031e875d8d818b24adfd475ebb58a97
2017-10-05 19:22:00 +02:00
Nevin Chen(:nechen) da23228565 Bug 1403132 - Orange color when tapping Get started button. r=jwu
MozReview-Commit-ID: BffcsiT1wrF

--HG--
extra : rebase_source : 23ce73c8576a52e6a99ff47cbe24353f1809a0e1
2017-10-06 14:00:51 +08:00
John Lin 69fb7ed20e Bug 1403849 - p2: add JNI method for native code to query tunneled playback support. r=esawin
MozReview-Commit-ID: 29HgjCanjGP

--HG--
extra : rebase_source : a9e388883a1e561fbbb4a58f97957662b657028e
2017-09-29 18:04:20 +08:00
John Lin 84b53d828f Bug 1403849 - p1: introduce IPC method to query tunneled playback support. r=esawin
MozReview-Commit-ID: 3wiKC46ZjvY

--HG--
extra : rebase_source : 8d87656737c5ace1bb47b968e9a1cc958616afa1
2017-09-29 18:01:15 +08:00
Nevin Chen a981553464 Bug 1389343 - Make default background grey so it can occupied the entire favicon. r=jwu
MozReview-Commit-ID: 93ZWdpnlIuX

--HG--
extra : rebase_source : 6117e942029c976f88d5b6c1f22249d9260f2206
2017-09-04 13:36:47 +08:00
Nevin Chen(:nechen) 1272df551e Bug 1403728 - Remove unwanted padding. r=jwu
MozReview-Commit-ID: lMO3l83226

--HG--
extra : rebase_source : 52f9bfe70deb08936d27bf6e4f014904fc84228c
2017-10-06 13:02:09 +08:00
Jing-wei Wu f0f3ef74b9 Bug 1405954 - Part 3: Change placeholder colors on URL bar. r=nechen
MozReview-Commit-ID: 1ulc7LS906Q

--HG--
extra : rebase_source : 4ed7d466bb3a8b68eac659169af61681ce19cd66
2017-10-05 11:16:50 +08:00
Jing-wei Wu fbffb7af70 Bug 1405954 - Part 2: Change status bar background color to #F9F9FA. r=nechen
MozReview-Commit-ID: 2vrGayqw5zp

--HG--
extra : rebase_source : 1158ed902c789691f9dc32fea0a1807f77e4c051
extra : source : cbc0cf3ca81d441400ee5a3cb47d1e3b50eecbe3
2017-10-02 14:39:52 +08:00
Jing-wei Wu cfa7021a0b Bug 1405954 - Part 1: Increase progress bar height from 2dp to 3dp. r=nechen
MozReview-Commit-ID: CKLzo7SWKiX

--HG--
extra : rebase_source : be3fec6b9991e3f099078d2515b1f7545a042e03
extra : source : bf1902fc85abcbe3fa0203bf06d2f5f5e6f46571
2017-10-02 14:39:00 +08:00
Sebastian Hengst c113ac7d95 Backed out changeset dacdf390c694 (bug 1403728) for failing android-lint. r=backout on a CLOSED TREE 2017-10-05 20:27:14 +02:00
Nevin Chen 612bff6041 Bug 1403728 - Additional margin at top and bottom of tabs tray in non-compact portrait mode. r=jwu"
MozReview-Commit-ID: GAGAuNDVIwO

--HG--
extra : rebase_source : 0dfc61605f8f8efc416f3d04bd3b3f43eed438b4
2017-10-05 11:11:31 +08:00
Nevin Chen 54cb0f1ee2 Bug 1403980 - Hide Splash screen in new tab opened from the search widget. r=jwu
MozReview-Commit-ID: 9RBOfHe80CW

--HG--
extra : rebase_source : 120ed1e18b58a63fbeba6b12e1810c494bf2d4f7
2017-10-01 03:53:30 +08:00
Jing-wei Wu 502459d05d Bug 1403596 - Adjust menu buttons position on tabs panel. r=nechen
MozReview-Commit-ID: 3i5rP6YLO0e

--HG--
extra : rebase_source : 3c83ca4eebce7a06e5de1e736ca894e8af070234
extra : source : c16582a1b32007ae27f12d90ebab6173c3f99c5d
2017-10-05 14:39:19 +08:00
Jim Chen ee5f9c3e19 Bug 1357191 - 1. Use Gecko controls for Fennec date/time fields; r=jessica r=nechen
Right now, date/time fields in Fennec appear as regular text fields,
which display the date/time values without formatting. This patch makes
the fields use the Gecko controls, which do support formatting. This
only changes the appearance of the fields; we still display the native
date/time pickers when the fields are tapped on. The reset button is
hidden in the controls because the Fennec date/time picker provides
a separate "clear" button.

MozReview-Commit-ID: EBE2U1zL74Q
2017-10-10 12:15:50 -04:00
Nevin Chen fcfb4b1f6d Bug 1405287 - Change splash screen image. r=jwu
MozReview-Commit-ID: 9RH2XLj6LRq

--HG--
extra : rebase_source : 555b44b0493b65713a7728e2bb3b1749428e0bcd
2017-10-03 06:02:00 -04:00
Jim Chen e3de08b829 Bug 1404144 - 4. Preload child process in geckoview_example in multiprocess mode; r=snorp
In geckoview_example multiprocess mode, preload child process during
startup to make e10s startup faster.

MozReview-Commit-ID: GinwBZlrnps

--HG--
extra : rebase_source : a43ef4708d311c9a100aafba0c84ee4a2e27090b
2017-10-04 22:28:44 -04:00
Jim Chen 3b801bac89 Bug 1404144 - 3. Add flag to preload child process during main GeckoThread startup; r=snorp
We need to wait for GeckoThread to load the Gecko libs in the main
process before we can launch any child processes, so that the child
process doesn't try to extract libs, which can conflict with any
extraction going on in the main process.

MozReview-Commit-ID: 2gUd2R1TUBI

--HG--
extra : rebase_source : d48b9e2e744669a89f2b761cf6936f28948c17c3
2017-10-04 22:28:43 -04:00
Jim Chen f281c874c0 Bug 1404144 - 2. Move start child process JNI call to GeckoProcessManager; r=rbarker
Avoid going through GeckoAppShell and move the start child process JNI
call directly to GeckoProcessManager.

MozReview-Commit-ID: KU62TiHVQJX

--HG--
extra : rebase_source : 0e8546da502257e1c59bc00b79f50c79a314f3e6
2017-10-04 22:28:43 -04:00
Jim Chen ffe3e86076 Bug 1404144 - 1. Refactor child process code to support preloading; r=rbarker
Refactor the code in GeckoProcessManager and GeckoServiceChildProcess so
that, we can have a ChildConnection object that's bound but not started.
This way we can bind the connection to preload Gecko child process, but
hold off starting until told by Gecko main process.

Some code is simplified. For example, `IChildProcess.stop` is removed in
favor of killing the child process directly.

MozReview-Commit-ID: 4XgmTuT0IAs

--HG--
extra : rebase_source : 94fe748556c66f639d1f8e5bb26c28ea3ed950b3
2017-10-04 22:28:43 -04:00
Wes Kocher 6dc323cfe9 Merge m-c to autoland, a=merge
MozReview-Commit-ID: Dxbv9TjDlDY
2017-10-04 16:47:41 -07:00
Wes Kocher d8985b6e57 Merge inbound to central, a=merge
MozReview-Commit-ID: IUFdbLdYFhX
2017-10-04 16:37:59 -07:00
Masayuki Nakano 9a85312d4a Bug 1404206 - Part 3: Make GeckoInputConnection handle "mozAwesomebar" inputmode value as "url". r=jchen, r=gijs
Although, Firefox for Android doesn't use urlbarBindings.xml for declaring its
awesome bar, for consistency with widget code for desktop OSes,
GeckoInputConnection should treat "mozAwesomebar" inputmode value as "url"
since Android doesn't have any special input type for "search" and we should
keep current behavior.

MozReview-Commit-ID: DpUnUx4E2Sp
2017-09-29 16:11:20 +09:00
Michael Comella 8caed77b97 Bug 1403755: Rm code to insert blanks into top sites. r=liuche
This code was being mistakenly activated when getting top sites for Activity
Stream.

This is the first removal of old top sites code and will mean we can't go back
to old top sites by flipping the `ActivityStream.isEnabled` flag. Since we're
planning to ship AS, this shouldn't matter.


MozReview-Commit-ID: 9VB0RqNHmE0

--HG--
extra : rebase_source : 0c40456d12de5d7f2f2e4a0fda58b7c090754530
2017-09-28 14:09:48 -07:00
James Willcox a4eed17d59 Bug 1405021 - Use web app origin as default scope r=droeh
MozReview-Commit-ID: EwxR6mQITmy

--HG--
extra : rebase_source : 2b2caec9e7fa8d4dc35976c7cd13a3e3ce0c796b
2017-10-02 13:34:54 -05:00
James Willcox 5c9f9341f7 Bug 1400334 - Guard against no theme color in standalone webapp r=nechen
MozReview-Commit-ID: C9LfdSvujS9

--HG--
extra : rebase_source : 55c2ae6c93a8df713c947b79250472a5468ca0d0
2017-10-02 13:24:45 -05:00
Grigory Kruglov f4c2b679dc Bug 1405430 - Use a brand name instead of hard-coded 'Firefox' r=flod
MozReview-Commit-ID: KfkPdGlw5hV

--HG--
extra : rebase_source : 865d7b8375e3b800845f06dd4c5db7a669f05eed
2017-10-03 14:31:19 -04:00
Michael Comella f1209017b7 Bug 1405404: Add 'de' to list of pocket whitelisted locales. r=liuche
This is used in multi-locale builds, e.g. [1] where all German is "de" but in
[2], we have a separate l10n repo for en-GB.

[1]: https://hg.mozilla.org/releases/l10n/mozilla-beta/de
[2]: https://hg.mozilla.org/releases/l10n/mozilla-beta/en-GB

MozReview-Commit-ID: CXw9aFH9psz

--HG--
extra : rebase_source : 3f92c5f3cbefbb7cea14a1f673edce546a640a96
2017-10-03 10:29:49 -07:00
Sebastian Hengst 31c3c16fec Backed out changeset 0bf07287d614 (bug 1405404) for failing android-test. r=backout 2017-10-03 20:18:57 +02:00
Michael Comella 2e364d2e38 Bug 1405404: Add 'de' to list of pocket whitelisted locales. r=liuche
This is used in multi-locale builds, e.g. [1] where all German is "de" but in
[2], we have a separate l10n repo for en-GB.

[1]: https://hg.mozilla.org/releases/l10n/mozilla-beta/de
[2]: https://hg.mozilla.org/releases/l10n/mozilla-beta/en-GB

MozReview-Commit-ID: CXw9aFH9psz

--HG--
extra : rebase_source : 2e921536a9347c656128fd52d6342677d359abbc
2017-10-03 10:29:49 -07:00
Jing-wei Wu a556345663 Bug 1402882 - Update firstrun welcome image for nightly/beta/release. r=nechen
MozReview-Commit-ID: AzV4Sl8iGc5

--HG--
extra : rebase_source : 8c8ffc53936432da7cac9ecddbe76c5ba9f9130f
2017-10-03 15:18:04 +08:00
Michael Comella b85cdd45bb Bug 1404460: Add test for pocket locale enabling. r=liuche
MozReview-Commit-ID: LHdQuICvVjE

--HG--
extra : rebase_source : 101ce5408e6f329bf04b5e889e942d6f42953500
2017-10-02 18:36:41 -07:00
Michael Comella 0b27441da0 Bug 1404460: Hide Pocket preference if Pocket not available in locale. r=liuche
When changing locales, an open dialog will not refresh but clicking on the
"Top sites" preference again (to display the dialog) will show the correct
dialog for the current locale.

MozReview-Commit-ID: 6UJvDIJZJtc

--HG--
extra : rebase_source : 777d0f4bc34829c8aacdeaac42fc0e27c3e7afd6
2017-10-02 17:35:03 -07:00
Michael Comella 3e9f59b825 Bug 1404460: Add POCKET_ENABLED_TO_LOCALE to asUserPrefs telemetry. r=liuche
After speaking with liuche, we decided it'd be better to add a bit to determine
this rather than combining it with the isPocketEnabled field (which would be
loss of data) or cross-referencing the locale of the submitted event when
checking the Pocket value during telemetry analysis (which is hard to get right
and likely to get out of date).

MozReview-Commit-ID: JKFrdEsEbyp

--HG--
extra : rebase_source : bc20193ca29238cbde5361a840cbd367b492a346
2017-10-02 17:01:10 -07:00
Michael Comella 8d7c0b37f0 Bug 1404460: Only show Pocket stories in specified locales. r=liuche
Ideally, we'd centralize all queries as to which options are user specified.
However, I wanted to do the smallest change so we can uplift so I filed
bug 1405161 for this centralization.

I opted not to include the "de" locale that is included on desktop because it
does not appear we ever get the "de" locale on Firefox for Android [1].

I tested this patch by changing the system locale between locales with Pocket
on my device (en-US, en-GB, de-DE) and locales without Pocket (ko-KR). The
locale switching system makes this refresh automatically without extra code.

I also intend to test via the in-app locale switcher but that will take time
because I can't do artifact builds with multi-locale so I'm pushing this for
review before I'm finished.

Follow-up changes:
- Add to telemetry
- Hiding the preference in the undesired locales.
- A test for isPocketEnabledByLocaleInner (useful to document how this is
intended to work for locales with variants, different scripts, etc.)

[1]: https://sql.telemetry.mozilla.org/queries/4613#table

MozReview-Commit-ID: 7AVQ8fWub8I

--HG--
extra : rebase_source : 948f1a4ea6c6bbc51c8ae945b940d8ab4770e34e
2017-10-02 15:59:42 -07:00
Wes Kocher 83fd890d27 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: HeJwJwwTzhQ
2017-10-02 16:26:42 -07:00
Wes Kocher 382a7d90d6 Merge inbound to central, a=merge
MozReview-Commit-ID: CvJ9hmTQBcR
2017-10-02 16:22:37 -07:00
James Willcox 5ad5e6c258 Back out bug 1395841 - Part 2 for breaking PWA shortcut installation r=me
This reverts commit eadc939a6ecf5eaff2a233f7015e814cc76a33ed.

MozReview-Commit-ID: 2V2oF1PC5cf
2017-10-02 14:14:52 -05:00
James Willcox fff76b1372 Bug 1404478 - For reals send the right CPU ABI in the core ping r=jchen
MozReview-Commit-ID: 9tM8723iqMH
2017-10-02 13:12:43 -05:00
Eugen Sawin f2591d27c0 Bug 1316934 - [3.1] Add JNI for AudioManager properties. r=snorp 2017-10-02 17:56:17 +02:00
Atanas Minkov f2f143f706 Bug 1386990 - "change" event listener no longer required for tracking form input in session store r=JanH
MozReview-Commit-ID: 1MhuLbvInl6

--HG--
extra : rebase_source : f74d7d080c6c5ea38efa39a2e5dc2cc82571396f
2017-10-01 03:26:58 +03:00
Michael Comella f1b1b8b981 Bug 1395409: Add testActivityStreamPocketReferrer. r=liuche
MozReview-Commit-ID: FlcMG5IewRH

--HG--
extra : rebase_source : 0d744d9f3d4ffa55a594da566f2eacea0f1a3a17
2017-08-30 17:33:08 -07:00
Wes Kocher 0196bb1eed Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9KMX1mdjylD
2017-09-29 14:48:25 -07:00
Kyle Machulis 2ac26c5527 Bug 1403795 - Remove nsIDOMHTMLButtonElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLButtonElement, replacing it
with binding class usage.

MozReview-Commit-ID: CzqRb7lI28W
2017-09-29 11:57:19 -07:00
Sebastian Hengst 5253bb7207 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2gWLO0vz64b
2017-09-29 13:30:42 +02:00
Sebastian Hengst 520d28af56 Backed out changeset 13e001aa0253 (bug 1395841) for altering strings without using new string ids. r=backout a=backout
MozReview-Commit-ID: 1kApJcrN9hS
2017-09-29 12:50:16 +02:00
Jing-wei Wu 4038891595 Bug 1403869 - Update 'about.png' for 57 Nightly. r=nechen
MozReview-Commit-ID: IyFV77oBwRD

--HG--
extra : rebase_source : bc348cbf4429ded36218103637cff4718dcdf8b4
2017-09-28 17:23:39 +08:00
Grigory Kruglov cd3e129cfc Bug 1404124 - Pickle account right after it's created r=eoger
This is a relative of Bug 988605, with an exception that instead of going the whole way
and ensuring pickled data is kept up-to-date as Nick proposed, this patch simply ensures that
we pickle as soon as possible, with a goal of eliminating pickle races. The end goal is to kill
off pickling entirely, and so the assumption here is that this workaround is good enough
in the meantime.

MozReview-Commit-ID: 7IjRH7KE2Z9

--HG--
extra : rebase_source : e25b6d6baf5544d5a087cd9e12ec41d6176c317f
2017-09-28 18:44:59 -04:00
Wes Kocher 134e495909 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6RdWW73Lc0A
2017-09-28 17:16:12 -07:00
Wes Kocher 1674eb3e4f Merge inbound to m-c a=merge
MozReview-Commit-ID: 7zOjePOWzOM
2017-09-28 16:56:44 -07:00
Jing-wei Wu 572281c97d Bug 1384870 - Show 'Folder updated' in snack bar after editing a bookmark folder. r=nechen
MozReview-Commit-ID: GVRDKvMzop7

--HG--
extra : rebase_source : 345bbcf659fd78846a75093ecf35dc1f6533081c
2017-09-28 14:57:49 +08:00
Jing-wei Wu 1b01c60c49 Bug 1403437 - Use MenuUtils#safeSetVisible to hide '.*_add_to_launcher' safely. r=nechen
MozReview-Commit-ID: iraSQCSvPw

--HG--
extra : rebase_source : a7769fed5217a05da2df86745b83b859712f3aa6
2017-09-28 11:27:46 +08:00
Grigory Kruglov 4935882f43 Bug 1403787 - Register FxA device with a default client name if we fail to obtain one r=eoger
MozReview-Commit-ID: 85uXkFhMPFG

--HG--
extra : rebase_source : bfa407b7e3b10796962888c5d20c399d5ea2aa9d
2017-09-28 17:43:28 -04:00
Jim Chen 549f69252b Bug 1385124 - Close tab when new tab redirects to external app; r=sebastian
When a site opens link in a new tab that redirects to an external app,
we should close the new (empty) tab and return to the previous page.

MozReview-Commit-ID: KXWA2d26RBh

--HG--
extra : rebase_source : 601dd7a26b070102c7785f68bf2f3fec3f6f003b
2017-09-27 16:47:13 -04:00
Jim Chen 9bc80ca4da Bug 1384829 - 4. Add test case to testInputConnection; r=esawin
Add a test case to testInputConnection that makes sure GeckoEditable's
Editable interface still behaves correctly even after disconnecting from
Gecko due to a blur.

MozReview-Commit-ID: 7Z6Kpv2tpRy

--HG--
extra : rebase_source : 9ec338c77d362a86fb0097b51bd4d55a15654f43
2017-09-28 00:14:19 -04:00
Jim Chen e1cb3acc74 Bug 1384829 - 3. No longer ignore certain exceptions; r=esawin
Bug 817386 added code to ignore IndexOutOfBoundsException when using
GeckoEditable because the code wasn't mature enough back then, and there
were many race conditions. I think the situation is a lot better now, so
we can try removing that code and see if we still need it. We can always
add it back if we do.

MozReview-Commit-ID: 4pirfaUuSNu

--HG--
extra : rebase_source : ed68d545bb5e40491720aeafe86221163c064449
2017-09-28 00:14:18 -04:00
Jim Chen 67f61c4e8a Bug 1384829 - 2. Add more user-friendly debugging output; r=esawin
Translate non-ASCII characters into hex instead of trying to print them
out.

MozReview-Commit-ID: 1aABRy6J1nm

--HG--
extra : rebase_source : f620d35e3cff12ab60e48568f33af65ad4f493c8
2017-09-28 00:14:18 -04:00
Jim Chen 107658fdda Bug 1384829 - 1. Always perform shadow text actions; r=esawin
We want to always perform actions on the shadow text side even if a
particular GeckoEditable instance is disconnected from Gecko, because
there could be other users of Editable that still expect the object to
perform valid actions.

MozReview-Commit-ID: 48OIEaPZqUE

--HG--
extra : rebase_source : 1ab86138c81061aeb7ea600497af5290581a9fbc
2017-09-28 00:14:18 -04:00
Hugh Wu 5317a6d9c6 Bug 1381747 - Removed browser.display.history.maxresults from mobile.js. r=JanH
MozReview-Commit-ID: EBfNr65hiaR

--HG--
extra : rebase_source : a4cf3165928f2ea1d86248b695b82583062b59c3
2017-09-15 18:23:11 -04:00
Jing-wei Wu 2baa51b8c6 Bug 1395841 - Part 2: Support creating a shortcut from page option in menu. r=nechen
When page option 'add page shortcut' is clicked, creating a shortcut(not PWA) on launcher.
Also make sure that heavy tasks are executed in background thread.

MozReview-Commit-ID: 8KtwdXENtEd

--HG--
extra : rebase_source : 12a427f549a41f9d8650b4b8d95394bdc4192c4b
2017-09-28 10:57:48 +08:00
Jing-wei Wu fa9bbb0da2 Bug 1395841 - Part 1: Change page option strings fom 'add to home screen' to 'add page shortcut'. r=nechen
MozReview-Commit-ID: 9fFN9aYEI3v

--HG--
extra : rebase_source : ba6edcd624eef98423783c84216dc42cc24cabd5
2017-09-27 17:31:30 +08:00
Jing-wei Wu 69bc7bda88 Bug 1399378 - Update Fennec logo icons for 57 beta/release. r=nechen
MozReview-Commit-ID: CUy4RSuiRnD

--HG--
extra : rebase_source : f6c9486833bacfd89fbd404bbd65997a2a44ee23
2017-09-28 17:08:56 +08:00
Wes Kocher 253017b382 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9qR4QYHAi2x
2017-09-28 17:08:09 -07:00
Jim Chen 101c7645ef Bug 1258106 - Extend testEventDispatcher timeout; r=me
Extend timeout for testEventDispatcher to 40 seconds and fix a bug where
the wrong mode is used for event callback tests. r=me for trivial
test-only fix.

MozReview-Commit-ID: JiyW8lFW8kg
2017-09-28 18:26:06 -04:00
Eugen Sawin 2cf5f3c9c5 Bug 1394520 - [3.0] Translate null-URI to "about:blank" for URI loading requests. r=snorp 2017-09-28 22:45:59 +02:00
Eugen Sawin fd55cf9695 Bug 1394520 - [2.1] Add support for external URI loading with e10s in GeckoView. r=snorp 2017-09-28 22:45:41 +02:00
Eugen Sawin fbf9ec3f92 Bug 1394520 - [1.2] Extend nsIBrowserDOMWindow to support content window creation without URI loading with e10s. r=smaug 2017-09-28 22:45:24 +02:00
Mike Shal 9e6798ac00 Bug 1402012 - Update buildconfig.py to use PartialConfigEnvironment; r=glandium
By using the PartialConfigEnvironment, the clients of buildconfig will
depend on config.statusd/ files instead of config.status directly.
Clients can access substs and defines using buildconfig.substs['FOO'] or
buildconfig.defines['BAR'], and then collect file-level dependencies for
make using buildconfig.get_dependencies(). All GENERATED_FILES rules
already make use of this because file_generate.py automatically includes
these dependencies (along with all python modules loaded).

As a result of this commit, re-running configure will no longer cause
the world to be rebuilt. Although config.status is updated, no build
steps use config.status directly and instead depend on values in
config.statusd/, which are written with FileAvoidWrite. Since those
files are not official targets according to the make backend, make won't
try to continually rebuild the backend when those files are out of date.
And since they are FileAvoidWrite, make will only re-run dependent steps
if the actual configure value has changed.

As a result of using JSON to load data from the config.statusd
directory, substs can be unicode (instead of a bare string type).
generate_certdata.py converts the subst manually to a string so the
value can be exported to the environment without issue on Windows.

Additionally, patching the buildconfig.substs dict no longer works, so
the unit-symbolstore.py test was modified to patch the underlying
buildconfig.substs._dict instead.

The other files that needed to be modified make use of all the defines
for the preprocessor. Those that are used during 'mach build' now use
buildconfig.defines['ALLDEFINES'], which maps to a special
FileAvoidWrite file generated for the PartialConfigEnvironment.

MozReview-Commit-ID: 2pJ4s3TVeS8

--HG--
extra : rebase_source : d6bb0208483f9f043e7be1b36907ca13243985f8
2017-08-24 22:52:01 -04:00
Grigory Kruglov 772b49aa9a Bug 1404543 - Update copy and default values for 'sync over wi-fi' pref r=nalexander
Switching key name/default value means that we'll drop this pref for some _very_ early
adopters of this feature on the nightly channel, but that's why it's a nightly channel.

MozReview-Commit-ID: KtQmmFFPDPR

--HG--
extra : rebase_source : 725eae2a95e129eba6023eb69ebafbb19226698b
2017-10-02 15:25:40 -04:00
Michael Kaply 681fb539f1 Bug 1401282 - Don't assume the intent has an action. r=snorp
MozReview-Commit-ID: LYayQCljEP4

--HG--
extra : rebase_source : 5fb809811d85c8c5708dd6a02f866671b682b97c
2017-09-29 16:12:38 -05:00
Michael Comella 32f449da79 Bug 1405513: Add debug info to 'Requested position DNE' crash. r=sebastian
MozReview-Commit-ID: 9ZLj7i74AgR

--HG--
extra : rebase_source : b6985c9cccace700e17dc851c8d879a5d2b984d2
2017-10-03 16:45:04 -07:00
Jim Chen ea127a6715 Bug 1357191 - 1. Use Gecko controls for Fennec date/time fields; r=jessica r=nechen
Right now, date/time fields in Fennec appear as regular text fields,
which display the date/time values without formatting. This patch makes
the fields use the Gecko controls, which do support formatting. This
only changes the appearance of the fields; we still display the native
date/time pickers when the fields are tapped on. The reset button is
hidden in the controls because the Fennec date/time picker provides
a separate "clear" button.

MozReview-Commit-ID: 75QyKmolNuf
2017-10-12 12:20:14 -04:00
Jan Henning 5809a90b3a Bug 1403693 - Fix IDN conversion during theme installation. r=jwu
MozReview-Commit-ID: 9WshGSu4FQJ

--HG--
extra : rebase_source : 4b7966bdc69319d5f1cd96573ff82cae007dc2ea
2017-09-27 21:43:57 +02:00
Kyle Machulis e6d0a7ad13 Bug 1402180 - Remove nsIDOMHTMLAreaElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLAreaElement, replacing it
with binding class usage.

MozReview-Commit-ID: IaX4JFTPZn6

--HG--
extra : rebase_source : 79f9200c6ff9e081a5d9bc21eaa605f88caa99e9
2017-09-21 17:52:28 -07:00
Michael Comella 9d3ac94e8e Bug 1402026: Correct formatting for AS telemetry bulleted lists. r=liuche
Apparently, if you don't have whitespace above the bulleted list, it won't
format as a list.

MozReview-Commit-ID: LiLpSNScBxR

--HG--
extra : rebase_source : b3ec064a98a531aab5f38d7f4b3f338499010e97
2017-09-27 15:10:02 -07:00
Michael Comella 9f34a5fb80 Bug 1402026: Add interaction extra to AS telemetry. r=liuche
MozReview-Commit-ID: EOr8Z8KRPGq

--HG--
extra : rebase_source : d698849950de8cc7aa2736a3e8adc31fcfe70ac9
2017-09-27 15:07:28 -07:00
Michael Comella 3a999722e3 Bug 1402026: Correct top site context menu telemetry note. r=liuche
The top sites menu button was removed in a previous iteration and long-click is
used to access the context menu now.

MozReview-Commit-ID: KzTg4Py8o8W

--HG--
extra : rebase_source : cc145006028b301b989ded16d15d3b12317be473
2017-09-27 15:01:42 -07:00
Michael Comella a6b18be232 Bug 1402026: Add caveat about suggested source_subtype. r=liuche
In the bug, we decided that it was okay to document this case because:
1) we didn't know the specific questions we were trying to answer
2) We were facing the 57 deadline

The alternative would be to change the behavior to perhaps the more intuitive
behavior where suggested sites will always be marked as "suggested" clicks but
note that there may be privacy concerns with that (in that there are a limited
number of suggested sites so we'd know the frequency that unique users might
visit the suggested sites).

MozReview-Commit-ID: GxQZzwoZ1nQ

--HG--
extra : rebase_source : 9c6697ef478a5ba08e1503d8360d1214419266fd
2017-09-27 14:45:41 -07:00
Michael Comella 728e704bbb Bug 1403347: Don't cache CustomListPreference dialog items. r=liuche
We're returning a list of only a few items that, at worst, reads from
resources and is infrequently accessed: there is no reason to cache these
values and the bugs, like this one, that caches entail.

At the end of this patch, there's no crash, but the scrolling behavior isn't
great: that's bug 1403139.

MozReview-Commit-ID: 3zoXWk78cM4

--HG--
extra : rebase_source : 337fcaec7eafeaa872173eb50b14b3dbb9067b90
2017-09-26 16:23:59 -07:00
Michael Comella 9cc3aa1fa0 Bug 1403347: Set dialog titles in createDialogItems. r=liuche
We manipulate the data before the dialog is shown, rather than manipulating the
Views after the dialog is shown: this is more stable.

One question is what is the value of isHidden, which we branch on, when we're
manipulating the data. isHidden is set:
- When the preference is constructed (previous commit)
- When the preference is set as the default (e.g. the default panel was hidden)
- When "Hide" or "Show" is clicked in the preference

Thus the preference (and hidden state) outlives the dialog and each time we
reread the value of isHidden to set the dialog items.

This would fix the bug but the dialog values are actually cached so we'll
need to fix/remove that cache: coming up in the next changeset.

MozReview-Commit-ID: 86v1RDNFZHZ

--HG--
extra : rebase_source : 3cc0d80e9fa5d569320b8ebbf583204dbb7dd467
2017-09-26 16:22:21 -07:00
Michael Comella e242a49a9c Bug 1403347: Move initial setHidden to panel preference constructor. r=liuche
This is a code clean-up. Functionally, this is the same to the previous
implementation.

setHidden was originally called right after the constructor is called and so
should just be called from the constructor. If it's not called from the
constructor, there can be a period of confusion where a developer wonders, "Has
isHidden been initialized by the time this other method I care about has been
called?" This should make those questions disappear.

This commit does not need to be uplifted (to change less in 57 and that the
other code does not depend on it) but I'm placing it first so it's clearer to
my reviewer when isHidden is initialized (which is relevant to my other
patches).

MozReview-Commit-ID: 80KXFDB1poY

--HG--
extra : rebase_source : fcc731dd0c24bc2472fe014b3b7495a2070b7989
2017-09-26 16:32:20 -07:00
Mehdi Soleimannejad ea42a7f87b Bug 802749 - Make background sync over metered connections optional. r=Grisha Kruglov
MozReview-Commit-ID: 4UhQqyxT90N

--HG--
extra : rebase_source : 0f0d213e325be3b6f9a7bb2b427fd4f30dc618e2
2017-09-22 10:25:26 +03:30
Ralph Giles a7e28bc3b1 Bug 1391427 - Package upstream rust in taskcluster. r=glandium
Add a toolchain job description which calls the
repack_rust.py script to package the requested
upstream build of Rust and its standard libraries
for use in gecko builds.

Links are added to these new toolchains for various build
and analysis tasks as appropriate. The base-toolchain
tasks use an explicitly-versioned toolchain since those
can be different from the current release used for most builds.

The corresponding tooltool manifest entries are removed
now that taskcluster artifact versions are available.
This simplifies the update process since new toolchains
can be packaged and used automatically by just updating
the versions in the task descriptions.

A 'linux64-rust' toolchain can be added to other tasks
as a dependency and artifact. It supports linux64-
hosted builds of Rust code targeting linux64 or linux32.

A 'linux64-rust-macos' toolchain targets linux64-hosted
builds of Rust code targeting macOS on x86_64.

A 'linux64-rust-android' toolchain targets linux64-hosted
builds of Rust code targeting various Android architectures.

Two 'win64-rust' and 'win32-rust' toolchain tasks create
similar entries for Windows-hosted builds. All our automation
builds are hosted on win64, so we could use one artifact
with support for both targets, but currently this doesn't
work because of cross-compilation issues in some crates.
This patch maintains the previous separation between
win32 and win64 rust toolchains until that can be addressed.

MozReview-Commit-ID: GRiJml8CtzO

--HG--
extra : rebase_source : 09a3698ce7f9a8b5f2b5d9b5a1fde9c05dc6b540
2017-09-12 16:30:19 -07:00
Jim Chen b5b46e2a12 Bug 1403251 - Only display validation message when element is invalid; r=sebastian
Only display form validation message when the element becomes invalid
after an invalid submission, by checking the "-moz-ui-invalid"
pseudo-class.

Also fix some message visibility bugs, by making sure in more places
that we only display messages for focused elements.

MozReview-Commit-ID: 16rvMmu8Zj6

--HG--
extra : rebase_source : 4d6ad6a111d7d5ee57c26129f77002c39d2bbe00
2017-09-26 18:39:52 -04:00
Sebastian Hengst a3b6b15cef merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BGCq2q6xO1S
2017-09-27 11:47:52 +02:00
Grigory Kruglov 95e9c477dd Bug 1403022 - Abort session on BatchingUploader failures r=rnewman
The main goal of these changes is to ensure we're not doing any unnecessary work
in the unahppy cases of BatchingUploader. We might fail in three general ways:
- encounter a 412 error
- encounter another type of HTTP error
- encounter a GUID in the "failed" array

Currently, in all of these cases, we de-facto abort the session, without performing
an actual abort. E.g. we won't commit a batch, we'll refuse to upload any still-flowing
records. This patch simplifies our unhappy-case behaviour: if something failed, actually
abort the session (triggering a shutdownNow of the work queues), declare store as failed, etc.

It's important to note that our "did the synchronization fail?" login in the SynchronizerSession
depends on the store failure counts, and so this patch maintains the "record failed to store"
delegate chain. However, these counts are largely meaningless. What does it mean to fail to store
50 records, if we abort on the 51st, and prevent the other 100 from flowing (and from being counted
as failed?).

This patch also fixes an omission in the verstion tracking logic:
- prior, if we encountered a record in the "failed" array, we'd continue on with the flow, won't upload
anything, mark the synchronization as failed, but we'd also call into 'onStoreCompleted' which will
trigger an update of syncVersion for outflowing records
- with this patch, we won't call into onStoreCompleted in the case above, and so won't update syncVersion
in case of such failures
- this is the correct behaviour for batching uploads (now enabled on all but one server), but possibly
non-optimal behaviour if batching isn't enabled. However, this behaviour should be safe from a data consistency
point of view regardless of the batching mode.

MozReview-Commit-ID: LIYCPaRX8JA

--HG--
extra : rebase_source : 110224b2db85a383635db933ec6c19b21af886e7
2017-09-26 17:36:22 -04:00
Wes Kocher acf8913934 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsbKCdZU2Ui
2017-09-26 17:14:31 -07:00
Eugen Sawin 01c45b3fc9 Bug 1401002 - [4.0] Fix linter warning. r=me 2017-09-26 23:45:05 +02:00
Eugen Sawin 8d6bc8fb3e Bug 1401002 - [3.1] Add GeckoView setting for application data directories. r=jchen 2017-09-26 23:08:25 +02:00
Eugen Sawin 3b7b1e8565 Bug 1401002 - [2.2] Enable GeckoView remote debugging. r=snorp,jchen 2017-09-26 23:08:25 +02:00
Dylan Roeh 89697c5916 Bug 1399504 - Pass more information to Intent:OpenNoHandler callback so that fallback urls may always be handled correctly. r=jchen 2017-09-26 13:46:27 -05:00
Kyle Machulis 9be401bdd6 Bug 1389650 - Change nsIDOMHTMLAnchorElement instanceof checks to getClassName; r=bz
MozReview-Commit-ID: Il2Ig98BHYP
2017-09-26 11:40:15 -07:00
Sebastian Hengst 3c0f8f3312 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4W52wcX8xBm
2017-09-26 11:54:34 +02:00
Wes Kocher a8bbad92b3 Backed out changeset 5799b3ef8745 (bug 802749) at flod's request a=backout
MozReview-Commit-ID: INjvhFgmO9m
2017-09-25 23:08:20 -07:00
Mehdi Soleimannejad e72a4fece2 Bug 802749 - Make background sync over metered connections optional. r=Grisha Kruglov
MozReview-Commit-ID: 4UhQqyxT90N

--HG--
extra : rebase_source : 937a8f6b9515678811b5d03e1a7514ef32b98af1
2017-09-22 10:25:26 +03:30
Grigory Kruglov 2398e54654 Bug 1373254 - Ensure onStoreFailed won't be called twice r=rnewman
MozReview-Commit-ID: 5IE7t5qs6VU

--HG--
extra : rebase_source : 81b797f526532e10e06fbe6225c29fc56e34db5c
2017-09-25 20:01:14 -04:00
Dylan Roeh bcebef542c Bug 1388750 - Checkstyle fix. r=me 2017-09-25 09:43:44 -05:00
Jing-wei Wu c9e6661799 Bug 1401871 - Check if menu item(home_add_to_launcher) exists or not before accessing it. r=nechen
We temporarily hide `home_add_to_launcher` in API 26, which means directly accesses it without checking
if it exists or not would cause NullPointerException.

MozReview-Commit-ID: KXnP81ZZa6u

--HG--
extra : rebase_source : 9189f3ab940d50702f82365824feff441faeef5a
2017-09-26 16:12:15 +08:00
Francois Marier a6e2599b6e Bug 1394017 - Default to Safe Browsing V4 on Fennec.r=dimi
MozReview-Commit-ID: 5SPHH82pJBE

--HG--
extra : rebase_source : 59834eab341082064dfa75c7145ea43d32bc5230
2017-09-25 16:44:27 -07:00
Randall Barker 997340b492 Bug 1402594 - Fix regression where toolbar does not become visible when link is pressed r=jchen
MozReview-Commit-ID: B5ppPaQXo5e
2017-09-25 13:06:13 -07:00
Dylan Roeh 039c4964c8 Bug 1388750 - Add setActive() to GeckoView to make the DocShell active/inactive. r=snorp 2017-09-22 15:57:46 -05:00
Chenxia Liu 7471205583 Bug 1401179 - Add snackbar for bookmark add/remove actions on newtab. r=mcomella
MozReview-Commit-ID: 7DzoyDSWmVq

--HG--
extra : rebase_source : 4e214080a665d199a2e888c53a114d1585da4fee
2017-09-22 18:08:07 -07:00
Michael Comella 71347fe090 Bug 1402005: Add telemetry for Learn More clicks. r=liuche
MozReview-Commit-ID: GA4UBZ4fpK6

--HG--
extra : rebase_source : 4803bd6eb9c97d0ae89b6322658e2cf0273e4e20
2017-09-22 17:32:03 -07:00
Michael Comella d1ac60c027 Bug 1402005: Add a learn more link to Top Sites. r=liuche
Explanation of our motivations are added in code comments.

In testing locally, the link I was sent to was:
- https://support.mozilla.org/1/mobile/58.0a1/Android/en-US/activity-stream

Existing code does not use a referrer so I didn't add one:
http://searchfox.org/mozilla-central/rev/56ad02e34d0d36ca4d5ccaa885d26aff270b8ff7/mobile/android/base/java/org/mozilla/gecko/preferences/LinkPreference.java#44

MozReview-Commit-ID: GTY1ku07uWy

--HG--
extra : rebase_source : fea160fdf5cff0ee5bfb99604b0e5ebe59d86ffb
2017-09-22 17:04:53 -07:00
Chenxia Liu f13df1a160 Bug 1402481 - Reverse incorrect sign of margin calculation. r=mcomella
MozReview-Commit-ID: ICS81o8pLOE

--HG--
extra : rebase_source : 9ee338ea1726ff529a77af8a93ba5fda52caa698
2017-09-22 09:12:38 -07:00
Chenxia Liu 9a193dcc02 Bug 1402145 - Use adapter child position rather than view position. r=mcomella
MozReview-Commit-ID: ESi8MMYC1lp

--HG--
extra : rebase_source : 1179df68abae25fddf06983cfea75ff4737a4080
2017-09-22 09:09:23 -07:00
Michael Comella ea35ecdd35 Bug 1400825: Collapse top sites if there are no sites. r=liuche
MozReview-Commit-ID: D0eNQBp6IZB

--HG--
extra : rebase_source : e482335230cb69acf2ca3009ea299cc380ae6200
2017-09-22 13:56:13 -07:00
Sebastian Kaspari 221a875e64 Bug 1400825 - Show option for removing suggested sites from top sites. r=mcomella
MozReview-Commit-ID: LyAqnlMfQvr

--HG--
extra : rebase_source : 330cb57bf3550223cd22ab1b242cbec427a9d1e1
2017-09-22 19:59:08 +02:00
Jim Chen cc4705df59 Bug 1396951 - 6. Remove setLayerView/getLayerView; r=snorp
Remove `GeckoAppShell.setLayerView()/getLayerView()` now that it's no
longer used anywhere.

MozReview-Commit-ID: 6URNFhSs01P

--HG--
extra : rebase_source : bd76d75fe26f9c3d8782475767e5a48fcd2cb9eb
2017-09-22 14:35:23 -04:00
Jim Chen 57cca85e76 Bug 1396951 - 5. Remove getLayerView usage from Robocop code; r=gbrown
Find the Fennec LayerView through `Solo.getView()` and the View id
instead of going through `GeckoAppShell.getLayerView()`.

MozReview-Commit-ID: FVcPM0fYorf

--HG--
extra : rebase_source : 1787cfde739eac742d28244ab29579a789997b81
2017-09-22 14:35:23 -04:00
Jim Chen 4402031ae6 Bug 1396951 - 4. Pass in GeckoView instance when sending a11y event; r=snorp
Pass in a `GeckoView` instance when sending a11y events so we're not
dependent on `GeckoAppShell.getLayerView()`. However, there's likely
more work to be done to make a11y work for any GeckoView.

MozReview-Commit-ID: DBeDOX5c3qY

--HG--
extra : rebase_source : 49d9a06ec90543c49d03f298a7d78ea54bbe0a58
2017-09-22 14:35:23 -04:00
Jim Chen a6188cfc76 Bug 1396951 - 3. Move GeckoAppShell.viewSizeChanged() to GeckoLayerClient; r=rbarker
Let `GeckoLayerClient` directly deal with scroll-to-input on resize,
instead of going through `GeckoAppShell` and relying on
`getLayerView()`. This is a necessary fix to let us remove
`getLayerView()`, and in a follow-up bug we should actually fix
scroll-to-input to work on any GeckoView.

MozReview-Commit-ID: 1xsHh2vg08M

--HG--
extra : rebase_source : 3061623d3ed0309fff42c6dc66d0246e1d3000a3
2017-09-22 14:35:23 -04:00
Jim Chen d4b6b64543 Bug 1396951 - 2. Don't use getLayerView() in GeckoInputConnection; r=esawin
In GeckoInputConnection, use the current view available through
`getView()`, instead of using `GeckoAppShell.getLayerView()`.

MozReview-Commit-ID: Hc9AUz5SNEs

--HG--
extra : rebase_source : c42a81bb9b46f79e0a1b827d16ac7494579017e6
2017-09-22 14:35:22 -04:00
Jim Chen 2216a28dff Bug 1396951 - 1. Add and use HapticFeedbackDelegate; r=snorp
Instead of using `getLayerView()` to perform haptic feedback, this patch
adds a `HapticFeedbackDelegate`, which `GeckoApplication` implements to
call `performHapticFeedback()` on the active view. Also, use
HapticFeedbackDelegate elsewhere in the Fennec codebase where we want to
perform haptic feedback.

MozReview-Commit-ID: GAArA6yJFNF

--HG--
extra : rebase_source : 683520b1b314ff0376a6fc843415a8485650e80b
2017-09-22 14:35:22 -04:00
Sebastian Hengst 2479eaedbf merge mozilla-central to autoland. r=merge a=merge 2017-09-22 11:50:19 +02:00
Sebastian Hengst 79326d87c8 Backed out changeset 5e5ce5633017 (bug 1396951) for frequently failing robocop's testSettingsPages. r=backout a=backout
MozReview-Commit-ID: AGZMQKL3eft
2017-09-22 11:49:14 +02:00
Sebastian Hengst f08b285a28 Backed out changeset 71134284dc36 (bug 1396951)
MozReview-Commit-ID: 1hsJHf7XvbM
2017-09-22 11:48:41 +02:00
Sebastian Hengst 8ac65ca47e Backed out changeset 155c1005c388 (bug 1396951)
MozReview-Commit-ID: Egbc73sWnEB
2017-09-22 11:48:36 +02:00
Sebastian Hengst 7bd9fdc344 Backed out changeset e9bc6e08091b (bug 1396951)
MozReview-Commit-ID: 1vPPNL6uovN
2017-09-22 11:48:30 +02:00
Sebastian Hengst e6da11dbfd Backed out changeset b5a88815b3a6 (bug 1396951)
MozReview-Commit-ID: H7q7JLdOCQS
2017-09-22 11:48:25 +02:00
Sebastian Hengst ee050c207e Backed out changeset 0a367a71ca43 (bug 1396951)
MozReview-Commit-ID: 3UwRalvlkEE
2017-09-22 11:48:19 +02:00
Sebastian Hengst 9e7898d195 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: FKzfDK7mwcx
2017-09-22 11:29:49 +02:00
Phil Ringnalda 9728bc3636 Merge m-c to m-i
MozReview-Commit-ID: LQmIsTRxble
2017-09-21 20:49:43 -07:00
Jim Chen fc16f11c89 Bug 1401737 - 1. Add a diagnostic crash; r=me
Add a diagnostic crash for the unexpected case where
GeckoService.register() is called a second time. We know the stack for
the second call, but we want to know the stack for the first call, so we
introduce this intentional crash. r=me for trivial diagnostic patch
which will be backed out ASAP.

MozReview-Commit-ID: HobtPiVSSTR
2017-09-21 23:41:22 -04:00
Wes Kocher 733c3896f8 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 9mZaPGxxjXd
2017-09-21 17:04:03 -07:00