Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
Hiroyuki Ikezoe 5f958f80c7 Bug 1486971 - Test for dynamically change of the prefers-reduced-motion setting on MacOSX. r=froydnj,mstange
The framework to simulate the setting change works as following;

 - nsIDOMWindowUtils.setPrefersReducedMotion() calls an IPC function which ends
   up calling nsChildView::SetPrefersReducedMotion() in the parent process

 - nsChildView::SetPrefersReducedMotion() sets the given value into
   nsLookAndFeel::mPrefersReducedMotionCached just like we set the value queried
   via NSWorkspace.accessibilityDisplayShouldReduceMotion in the parent process
   and send a notification which is the same notification MacOSX sends when the
   system setting changed

 - Normally the cached value is cleared before quering new values since the
   cache value is stale, but in this case the value is up-to-date one, so
   nsChildView::SetPrefersReducedMotion() tells that we don't need to clear the
   cache, and nsIDOMWindowUtils.resetPrefersReducedMotion() resets that state
   of 'we don't need to clear the cache'

There are two test cases with the framework in this commit, one is just setting
the value and checking the value queried by window.matchMedia.  The other one is
receiving 'change' event and checking the value of the event target.

Note that to make this test works the patch for bug 1478212 is necessary since
the test runs in an iframe.

Depends on D5003

Differential Revision: https://phabricator.services.mozilla.com/D5004

--HG--
extra : moz-landing-system : lando
2018-09-15 01:00:07 +00:00
.cargo Bug 1468950 - Update serde_derive patch for changes in WR PR 2819. r=Gankro 2018-06-21 08:15:40 -04:00
.vscode Bug 1482693 - Recommend the official Rust VisualStudio Code extension r=gps,jya 2018-08-13 21:21:34 +00:00
accessible Bug 1490402 - Use UTF-8 strings (in place of UTF-16) for font family/face names in the system font list, to reduce memory footprint. r=lsalzman 2018-09-12 20:34:57 +01:00
browser Bug 1491233 - Enable LTO in mac devedition mozconfig r=froydnj 2018-09-14 17:41:25 +00:00
build Bug 1491140 - Count non-elfhacked relocations size when comparing to original size r=froydnj 2018-09-14 13:16:25 +00:00
caps Bug 1487032 - Store origin/site info in CompartmentPrivate. r=bholley 2018-09-11 09:01:14 +00:00
chrome Bug 1488445 - Remove and replace obsolete ESLint rules. r=mossop 2018-09-04 18:08:43 +00:00
config Bug 1490567 Update ffi build to handle x86 MinGW-clang builds r=glandium 2018-09-14 02:08:17 +00:00
db Bug 1485765 - use a compile-time determined endianness on aarch64 windows for sqlite; r=asuth 2018-08-27 12:47:36 -04:00
devtools Merge inbound to mozilla-central. a=merge 2018-09-14 12:53:25 +03:00
docshell Bug 1490828 - Handle mPersist in the nsSHEntry copy constructor. r=nika 2018-09-14 11:09:19 +10:00
dom Bug 1486971 - Test for dynamically change of the prefers-reduced-motion setting on MacOSX. r=froydnj,mstange 2018-09-15 01:00:07 +00:00
editor Bug 1490882 - Fix a bug of test_middle_click_paste.html r=m_kato 2018-09-14 07:20:04 +00:00
embedding Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian 2018-01-29 15:20:18 -08:00
extensions Bug 1490212 - Follow-up: Remove NS_{JA,RU,UK}*DETECTOR_CID defines. r=hsivonen 2018-09-14 01:07:00 +03:00
gfx Bug 1491141. Don't include old Tesla devices in webrender.qualified r=mstange 2018-09-14 22:35:34 +00:00
gradle/wrapper Bug 1476165 - Part 2: Update Android Gradle plugin to version 3.1.0. r=nalexander,snorp 2018-07-17 13:20:19 +01:00
hal Bug 1488401 - Remove the remnants of the DiskSpaceWatcher r=asuth,janv,smaug 2018-09-13 06:40:51 +00:00
image Merge inbound to mozilla-central. a=merge 2018-09-14 06:31:31 +03:00
intl Bug 1491209 - Do not inject last fallback locale into requested locales. r=jfkthame 2018-09-14 10:15:40 +00:00
ipc Bug 1486971 - Test for dynamically change of the prefers-reduced-motion setting on MacOSX. r=froydnj,mstange 2018-09-15 01:00:07 +00:00
js Bug 1188256 part 6 - Expose PromiseDebugging to plain mochitest via SpecialPowers. r=bzbarsky 2018-09-14 22:43:54 +00:00
layout Bug 1486971 - Test for dynamically change of the prefers-reduced-motion setting on MacOSX. r=froydnj,mstange 2018-09-15 01:00:07 +00:00
media bug 1490674: rsdparsa: relax log crate dependency version; r=drno 2018-09-14 12:28:00 +01:00
memory Bug 1480457-Correct typedef so it matches an earlier typedef r=aklotz 2018-08-30 23:05:59 +03:00
mfbt Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-14 01:18:29 +03:00
mobile Bug 1480852 Crash in android.os.TransactionTooLargeException: data parcel size 1053364 bytes at android.os.BinderProxy.transactNative(Native Method) r=jchen 2018-09-14 11:24:33 +00:00
modules Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-14 01:17:10 +03:00
mozglue Bug 1480834 - 3. Fix linker compile errors under x86-64; r=glandium 2018-09-13 12:09:25 -04:00
netwerk Bug 1489121 - Fix the stream ID check when counting TRR streams. r=nwgh 2018-09-13 14:48:46 +00:00
nsprpub Bug 1477680, NSPR 4.20 RTM, no code change, only version number, r=me 2018-08-28 16:21:01 +02:00
other-licenses Bug 1488217 build correctly snappy on big endian platforms r=glandium 2018-09-03 14:10:10 +00:00
parser Bug 1488659 - Part 1: Remove the XPCOM registrations for character detector classes; r=hsivonen 2018-09-10 07:59:42 -04:00
python Bug 1490549 - Make configure choose clang by default on all platforms r=froydnj 2018-09-14 18:01:23 +00:00
security bug 748809 - remove nsIAssociatedContentSecurity and nsISecurityInfoProvider r=mayhemer,jrmuizel 2018-09-13 17:13:43 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=mtabara 2018-09-13 12:14:37 +00:00
servo Bug 1489529 - Update comments to no longer point to nsRuleNode. r=emilio 2018-09-12 17:37:37 +10:00
startupcache Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
storage Bug 1489147 - Remove the XPCOM component registration for nsXPConnect; r=mccr8 2018-09-06 16:39:35 -04:00
taskcluster Bug 1491307: make retrigger-mochitest its own action r=tomprince 2018-09-14 16:25:46 +00:00
testing Bug 1188256 part 7 - Have Element.requestFullscreen return a Promise. r=smaug 2018-09-14 22:44:21 +00:00
third_party bug 1490674: vendor rust dependencies; r=me 2018-09-14 12:28:02 +01:00
toolkit Bug 1305705 - Don`t unregister langpacks on shutdown. r=aswan 2018-09-14 22:37:25 +00:00
tools Backed out changeset aae4f349fa58 (bug 1479503) per developer's request on IRC a=backout 2018-09-14 16:35:23 +03:00
uriloader Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-14 01:18:29 +03:00
view Bug 1487190 - Update bugzilla metadata in moz.build files to reflect Layout components reorganization in bug 1484408. r=heycam 2018-09-05 11:16:02 +00:00
widget Bug 1486971 - Test for dynamically change of the prefers-reduced-motion setting on MacOSX. r=froydnj,mstange 2018-09-15 01:00:07 +00:00
xpcom Bug 1490973 - Avoid repeatedly calling Append() in NS_UnescapeURL(). r=froydnj 2018-09-13 20:49:31 +00:00
xpfe/appshell Bug 1488628 - Change some nsIWebNavigation method arguments from wstring to AString. r=nika 2018-09-05 13:42:16 +10:00
.arcconfig Bug 1460463 - Update .arcconfig to make history mutable; r=gps 2018-05-09 23:49:52 +00:00
.clang-format
.clang-format-ignore Bug 1489449 - Add prio and other thirdparty libs to the list of thirdparty code r=janx 2018-09-07 12:08:25 +00:00
.cron.yml Bug 1477021 - Schedule pipfile updates to run once per week. r=sfraser 2018-07-27 15:12:36 +00:00
.eslintignore Bug 1489980 - Enable ESLint for editor/ - Manual fixes. r=masayuki 2018-09-13 07:59:47 +00:00
.eslintrc.js Bug 1486739 - Enable ESLint rule comma-dangle for browser/, services/, taskcluster/ and toolkit/ directories. r=mossop 2018-08-31 06:06:08 +00:00
.flake8 Backed out changeset aae4f349fa58 (bug 1479503) per developer's request on IRC a=backout 2018-09-14 16:35:23 +03:00
.gdbinit Bug 1486903 - Add "ftl" command to dump frame subtree to .gdbinit. r=Ehsan 2018-08-28 20:20:21 +00:00
.gdbinit_python
.gitignore Bug 1484708 - Update .gitignore rules and add js/src/obj-*. r=ted.mielczarek 2018-08-20 09:03:00 +03:00
.hgignore Backed out changeset aae4f349fa58 (bug 1479503) per developer's request on IRC a=backout 2018-09-14 16:35:23 +03:00
.hgtags No bug - Tagging mozilla-central 034c5ef24e98b0ce85fa849face079f568eb397c with FIREFOX_NIGHTLY_63_END a=release DONTBUILD CLOSED TREE 2018-09-04 11:10:28 -07:00
.lldbinit Bug 1481555: Use lldb's python API to summarise nsAtoms. r=froydnj 2018-08-08 15:11:22 +00:00
.mailmap NO BUG - Use ato's new address. r=me 2018-02-26 15:59:29 +00:00
.taskcluster.yml Backed out changeset 79d78bba6f68 (bug 1486970) for braking backfiling and add new jobs tasks. CLOSED TREE 2018-09-13 22:10:20 +03:00
.trackerignore Bug 1486468 - Add .trackerignore file to avoid GNOME Tracker indexing mozilla-central files. r=ahal 2018-08-27 16:45:03 +02:00
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS Bug 1481409 - Use HTTPS protocol for Mozilla's Credits link in AUTHORS file r=mossop 2018-08-13 16:39:30 +00:00
build.gradle Bug 1485439 - Pre: Upgrade Android Gradle plugin. r=nalexander 2018-09-04 22:33:00 +02:00
Cargo.lock bug 1490674: upgrade to log 0.4.5; r=froydnj 2018-09-14 12:28:01 +01:00
Cargo.toml Bug 1474871 - Link dump_syms against rustc-demangle. r=ted 2018-07-12 10:23:12 +09:00
client.mk Bug 1461836 - Write out complete configure dependencies from configure for consumption by make and non-make backends. r=mshal 2018-05-21 14:01:50 -07:00
client.py
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2018-09-04 11:15:27 -07:00
configure.in
configure.py Bug 1461836 - Write out complete configure dependencies from configure for consumption by make and non-make backends. r=mshal 2018-05-21 14:01:50 -07:00
GNUmakefile
gradle.properties Bug 1453413 - Use aapt2 to build Firefox for Android. r=mcomella 2018-04-11 09:59:22 -07:00
gradlew
LEGAL
LICENSE
mach
Makefile.in Bug 1473821 - The MOZ_PGO_INSTRUMENTED environment variable is not used anymore so remove all remaining mentions of it r=gps 2018-08-17 16:40:10 +00:00
moz.build Bug 1346026 - Vendor pipenv 2018.5.18 and transient dependencies; r=ahal 2018-05-17 19:06:20 +01:00
moz.configure Backed out changeset aae4f349fa58 (bug 1479503) per developer's request on IRC a=backout 2018-09-14 16:35:23 +03:00
mozilla-config.h.in Bug 1463637: Remove mozilla-config.h hacks for Hunspell extra includes. r=ted 2018-05-22 20:36:39 -07:00
old-configure.in Bug 1480834 - 4. Specify -Werror for pthread_cond_timedwait_monotonic_np check; r=glandium 2018-09-13 12:09:25 -04:00
package-lock.json Bug 1456078 - Upgrade ESLint to version 5.3.0, and eslint-plugin-html to 4.0.5. r=mossop 2018-08-07 14:46:19 +00:00
package.json Bug 1456078 - Upgrade ESLint to version 5.3.0, and eslint-plugin-html to 4.0.5. r=mossop 2018-08-07 14:46:19 +00:00
Pipfile Bug 1490128: upgrade json-e==2.7.0 r=davehunt 2018-09-11 21:14:52 +00:00
Pipfile.lock Bug 1490128: upgrade json-e==2.7.0 r=davehunt 2018-09-11 21:14:52 +00:00
README.txt Bug 1460030 - Update the nightly URL in the README.txt file r=kohei 2018-05-08 21:22:10 +02:00
settings.gradle Bug 1444546 - Part 2: Build annotationProcessors with Gradle. r=jchen 2018-02-22 16:11:14 -08:00
test.mozbuild

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly