Commit Graph

20582 Commits

Author SHA1 Message Date
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
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
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