2018-07-30 07:27:32 +03:00
|
|
|
# -*- 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/.
|
|
|
|
|
2018-08-14 20:14:02 +03:00
|
|
|
with Files('**'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'General')
|
|
|
|
|
2018-07-30 22:25:58 +03:00
|
|
|
with Files('Finder*.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
|
|
|
|
|
Bug 1514940 - part 1: Forcibly disable new keyCode/charCode value of keypress events if the document is Confluence r=smaug,Ehsan,kmag
Old Confluence does not aware of conflated model keypress event (see UI Events
spec, https://w3c.github.io/uievents/#determine-keypress-keyCode).
Additionally, Confluence can be hosted with any domains. Therefore, we cannot
use blacklist to disable the conflated model keypress event only on it.
This patch checks whether current or parent document is Confluence with JS
module, called KeyPressEventModelCheckerChild. For kicking this module,
nsHTMLDocument dispatches an custom event, CheckKeyPressEventModel, when it
becomes editable only first time. Finally, if it's a Confluence instance, the
module let PresShell know that we need to use split model keypress event in it.
Differential Revision: https://phabricator.services.mozilla.com/D17907
--HG--
extra : moz-landing-system : lando
2019-02-05 14:35:43 +03:00
|
|
|
with Files('KeyPressEventModelCheckerChild.jsm'):
|
|
|
|
BUG_COMPONENT = ('Core', 'DOM: Events')
|
|
|
|
|
2019-01-28 22:01:40 +03:00
|
|
|
TESTING_JS_MODULES += [
|
|
|
|
'TestChild.jsm',
|
|
|
|
'TestParent.jsm',
|
|
|
|
]
|
|
|
|
|
2018-07-30 07:27:32 +03:00
|
|
|
FINAL_TARGET_FILES.actors += [
|
|
|
|
'AudioPlaybackChild.jsm',
|
2019-08-20 00:17:21 +03:00
|
|
|
'AudioPlaybackParent.jsm',
|
2019-01-04 21:35:09 +03:00
|
|
|
'AutoplayChild.jsm',
|
2019-06-25 23:29:19 +03:00
|
|
|
'AutoplayParent.jsm',
|
2019-05-30 22:01:29 +03:00
|
|
|
'BrowserElementChild.jsm',
|
|
|
|
'BrowserElementParent.jsm',
|
2018-07-30 20:52:29 +03:00
|
|
|
'ControllersChild.jsm',
|
2018-07-30 09:39:17 +03:00
|
|
|
'DateTimePickerChild.jsm',
|
2019-07-04 13:14:41 +03:00
|
|
|
'DateTimePickerParent.jsm',
|
2018-07-30 07:44:48 +03:00
|
|
|
'ExtFindChild.jsm',
|
2018-07-30 07:38:21 +03:00
|
|
|
'FindBarChild.jsm',
|
2019-09-18 02:29:46 +03:00
|
|
|
'FindBarParent.jsm',
|
2018-07-30 22:25:58 +03:00
|
|
|
'FinderChild.jsm',
|
2019-06-08 04:09:46 +03:00
|
|
|
'InlineSpellCheckerChild.jsm',
|
|
|
|
'InlineSpellCheckerParent.jsm',
|
Bug 1514940 - part 1: Forcibly disable new keyCode/charCode value of keypress events if the document is Confluence r=smaug,Ehsan,kmag
Old Confluence does not aware of conflated model keypress event (see UI Events
spec, https://w3c.github.io/uievents/#determine-keypress-keyCode).
Additionally, Confluence can be hosted with any domains. Therefore, we cannot
use blacklist to disable the conflated model keypress event only on it.
This patch checks whether current or parent document is Confluence with JS
module, called KeyPressEventModelCheckerChild. For kicking this module,
nsHTMLDocument dispatches an custom event, CheckKeyPressEventModel, when it
becomes editable only first time. Finally, if it's a Confluence instance, the
module let PresShell know that we need to use split model keypress event in it.
Differential Revision: https://phabricator.services.mozilla.com/D17907
--HG--
extra : moz-landing-system : lando
2019-02-05 14:35:43 +03:00
|
|
|
'KeyPressEventModelCheckerChild.jsm',
|
2019-03-21 16:58:17 +03:00
|
|
|
'PictureInPictureChild.jsm',
|
2018-07-30 09:31:39 +03:00
|
|
|
'PopupBlockingChild.jsm',
|
2018-07-30 08:05:14 +03:00
|
|
|
'PrintingChild.jsm',
|
2018-07-30 20:14:12 +03:00
|
|
|
'PurgeSessionHistoryChild.jsm',
|
2018-07-30 07:59:16 +03:00
|
|
|
'SelectChild.jsm',
|
2018-07-30 09:28:10 +03:00
|
|
|
'SelectionSourceChild.jsm',
|
2019-06-14 19:23:29 +03:00
|
|
|
'SelectParent.jsm',
|
2018-07-30 08:25:48 +03:00
|
|
|
'ThumbnailsChild.jsm',
|
2018-10-03 18:49:33 +03:00
|
|
|
'UAWidgetsChild.jsm',
|
2018-07-30 20:11:41 +03:00
|
|
|
'UnselectedTabHoverChild.jsm',
|
2018-07-30 09:36:12 +03:00
|
|
|
'WebChannelChild.jsm',
|
2018-07-30 22:55:22 +03:00
|
|
|
'WebNavigationChild.jsm',
|
2018-07-30 08:18:52 +03:00
|
|
|
'ZoomChild.jsm',
|
2019-06-26 21:16:42 +03:00
|
|
|
'ZoomParent.jsm',
|
2018-07-30 07:27:32 +03:00
|
|
|
]
|