dom/animation/moz.build
author Tim Huang <tihuang@mozilla.com>
Thu, 31 Aug 2017 11:14:14 +0800
changeset 453921 b2f55468b241f28678dc5e35e19eb3b5781a1c5c
parent 415253 1d93ac41c2e370b174396196fe905bbf833abdf0
child 456115 ae7be65f3c88e1b46ac19a1b102726261bfdb5f5
permissions -rw-r--r--
Bug 1222285 - Part 2: Making the keyboard events of modifier keys been suppressed when 'privacy.resistFingerprinting' is true. r=arthuredelstein,masayuki This patch makes 'Shift', 'Alt', 'Contorl' and 'AltGraph' been suppressed for content when fingerprinting resistance is enabled. Chrome can still get these events. The reason behind this is that websites can still observe key combinations to tell which keyboard layout is using even we spoof the keyboardEvent.code, keyboardEvent.keyCode and modifier states. For example, the AZERTY France keyboard, the digit keys of it requires the user press the Shift key. So, it is easy to differentiate AZERTY and QWERTY keyboard by observing whether a Shift key generates its own before the digit keys. There are similar issues for 'Alt' and 'AltGraph' as well. MozReview-Commit-ID: 3CwCgvey4lK

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

with Files("**"):
    BUG_COMPONENT = ("Core", "DOM: Animation")

MOCHITEST_MANIFESTS += ['test/mochitest.ini']
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']

EXPORTS.mozilla.dom += [
    'Animation.h',
    'AnimationEffectReadOnly.h',
    'AnimationEffectTiming.h',
    'AnimationEffectTimingReadOnly.h',
    'AnimationTimeline.h',
    'CSSPseudoElement.h',
    'DocumentTimeline.h',
    'KeyframeEffect.h',
    'KeyframeEffectReadOnly.h',
]

EXPORTS.mozilla += [
    'AnimationComparator.h',
    'AnimationPerformanceWarning.h',
    'AnimationPropertySegment.h',
    'AnimationTarget.h',
    'AnimationUtils.h',
    'AnimValuesStyleRule.h',
    'ComputedTiming.h',
    'ComputedTimingFunction.h',
    'EffectCompositor.h',
    'EffectSet.h',
    'Keyframe.h',
    'KeyframeEffectParams.h',
    'KeyframeUtils.h',
    'PendingAnimationTracker.h',
    'PseudoElementHashEntry.h',
    'TimingParams.h',
]

UNIFIED_SOURCES += [
    'Animation.cpp',
    'AnimationEffectReadOnly.cpp',
    'AnimationEffectTiming.cpp',
    'AnimationEffectTimingReadOnly.cpp',
    'AnimationPerformanceWarning.cpp',
    'AnimationTimeline.cpp',
    'AnimationUtils.cpp',
    'AnimValuesStyleRule.cpp',
    'ComputedTimingFunction.cpp',
    'CSSPseudoElement.cpp',
    'DocumentTimeline.cpp',
    'EffectCompositor.cpp',
    'EffectSet.cpp',
    'KeyframeEffect.cpp',
    'KeyframeEffectReadOnly.cpp',
    'KeyframeUtils.cpp',
    'PendingAnimationTracker.cpp',
    'TimingParams.cpp',
]

LOCAL_INCLUDES += [
    '/dom/base',
    '/layout/base',
    '/layout/style',
]

FINAL_LIBRARY = 'xul'