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

1599 Коммитов

Автор SHA1 Сообщение Дата
Marcos Caceres 095622d6de Bug 1265279 - Web Manifest: Implement window.oninstall. r=baku
* Add tests for window.oninstall
* Teach manifestMessages how to fire install event
* Test that the install event fired from Parent process
2016-05-30 18:52:00 +02:00
Masayuki Nakano a58a540708 Bug 1251063 PuppetWidget should cache InputContext which is set with SetInputContext() and use it in GetInputContext() only when it is the widget which has active input context in the process r=smaug
PuppetWidget::GetInputContext() needs to communicate with its parent process with synchronous IPC. This is very expensive for focus move.

Currently, IMEStateManager uses nsIWidget::GetInputContext() only for checking the IME enabled state.  Therefore, it's enough to cache input context when nsIWidget::SetInputContext() is called.  Then, we can avoid to communicate with synchronous IPC with PuppetWidget::GetInputContext() in most cases.

This patch makes IMEStateManager stores the last widget which sets input context.  When PuppetWidget uses its input context cache, it should check if it is the last widget to set input context with IMEStateManager since an input context may be shared with other widgets and another one may have update the input context.  I.e., PuppetWidget's input context cache may be already outdated after IMEStateManager sets input context with another widget.

This patch gives up to support retrieving IME open state from child process. However, perhaps, this is not necessary for everybody including add-on developers because the only user of IME open state in child process is nsIDOMWindowUtils. So, add-ons can send IME open state from chrome process instead.  If this decision is wrong, unfortunately, we should support it again in another bug.  It's easy to support with creating another nsIWidget::GetInputContext() or adding additional argument to it.

MozReview-Commit-ID: B2d2CCTsPKj

--HG--
extra : rebase_source : 4117330ba7871753176da960063b612e96f11752
2016-05-28 11:27:56 +09:00
Bill McCloskey 291c555f34 Bug 1262671 - void** -> PickleIterator (r=froydnj) 2016-05-27 09:57:38 -07:00
Xidorn Quan a0c4bff836 Bug 931445 part 3 - Reset synth centering pointer when unlocking pointer. r=smaug
MozReview-Commit-ID: LcStCmm4iRV

--HG--
extra : source : e27b7ceefe72c64cd72774522c2cebe884bf3d08
2016-05-27 17:13:05 +10:00
Xidorn Quan adf9f94c38 Backed out 4 changesets (bug 931445) for e10s mochitest failures
Backed out changeset 5a92875424b0
Backed out changeset 79ba5815f9aa
Backed out changeset b084784405ef
Backed out changeset 67bf9ee17564

--HG--
extra : rebase_source : 9604d138e1d333d7bcf6edc8b886340b8371524d
2016-05-27 16:08:41 +10:00
Xidorn Quan 3dd5fb9587 Bug 931445 part 3 - Reset synth centering pointer when unlocking pointer. r=smaug
MozReview-Commit-ID: LcStCmm4iRV

--HG--
extra : rebase_source : f679431c8d30a211e776fd7a1c652767a0da62e6
extra : source : e27b7ceefe72c64cd72774522c2cebe884bf3d08
2016-05-27 11:09:58 +10:00
Matt Woodrow a8bd22981b Bug 881832 - Fix test_bug602962.xul to not assume that resizes have finished flushing when the resize event fires. r=tnikkel 2016-05-12 12:09:50 +12:00
Boris Zbarsky 49a90cb122 Bug 1268852. Change <label> elements to not be form-associated anymore. r=bkelly,hsivonen,surkov
The web platform tests changes are just a cherrypick of
https://github.com/w3c/web-platform-tests/pull/2926 so I don't have to add
failure annotations until the next test uplift.

I've audited our uses of nsIFormControl, and this patch looks to me like it
preserves existing behavior in all but the following cases:

1)  nsXBLPrototypeHandler::DispatchXBLCommand, the case of scrolling when space
is pressed while something inside a <label> is focused.  We used to not scroll
in this situation; I think this is a bug, so I'm changing that behavior to
scroll instead.

2)  In Accessible::RelationByType for the RelationType::DEFAULT_BUTTON case,
when mContent is a <label> we used to return its form's default submit element.
Now we will just return Relation().
2016-05-26 19:39:03 -04:00
Kartikaya Gupta 5bb2f43706 Bug 1203140 - Don't add touch listener areas to dispatch-to-content regions unless touch events are enabled. r=smaug
MozReview-Commit-ID: 1EI8hrzOcBz
2016-05-24 11:24:31 -04:00
Kartikaya Gupta 5e8020956e Bug 1203140 - Add a pref cache for the touch events pref, as it can get called a lot. r=smaug
MozReview-Commit-ID: EQD3oxFaInO
2016-05-24 11:24:30 -04:00
Masayuki Nakano 38e54402b2 Bug 1272599 part.2 Rename KeyboardEvent.key values, "MozHomeScreen" and "MozCameraFocusAdjust" to "GoHome" and "CameraFocus" except on B2G r=smaug
KEYCODE_HOME was temporarily named as "MozHomeScreen" and KEYCODE_FOCUS was temprarily named as "MozCameraFocusAdjust" since they were not defined by the spec. However, in the latest spec, they are defined as "GoHome" and "CameraFocus". So, it is the time to rename them.

However, these temporary key names are still used by Gaia. Until it's fixed, we should keep using the temporary names only on B2G.

MozReview-Commit-ID: 9ILtZdf6EUQ

--HG--
extra : rebase_source : f673ca6e128705af3071dafbd7ab1eb8e310297d
2016-05-20 21:29:10 +09:00
Masayuki Nakano 18d7f8212d Bug 1272599 part.1 Rename KeyboardEvent.key value, "MozPhoneCall" to "Call" r=smaug
Android's KEYCODE_CALL was temporarily named as "MozPhoneCall" since proper key name was not defined in the spec. However, now, it's defined as "Call" in the latest spec. Therefore, we should rename this key name.

Note that this isn't available on Android because the key event is never fired on applications. However, this key may be useful on B2G. Although, the key is not used by current Gaia.

MozReview-Commit-ID: GF4STYrGMig

--HG--
extra : rebase_source : 7d94c0a3c47d9ba1fadc4de475d71967d6281545
2016-05-20 21:00:20 +09:00
Masayuki Nakano 4205d9edae Bug 1272578 part.3 Rename key name VolumeMute to AudioVolumeMute except on B2G r=smaug
VolumeMute was renamed to AudioVolumeMute in the latest draft and Chromium uses the new name. Therefore, we need to update this but Gaia uses the old name. So, we shouldn't rename on B2G until Gaia is fixed.

Note that this patch changes tests but they are not used by B2G. Therefore, just replacing with new name is enough.

Only forms.js is necessary #ifdef because the main purpose of forms.js is for B2G's IME framework. However, it's available on the other platforms if chrome needs to use it.

MozReview-Commit-ID: KSkcPbIovin

--HG--
extra : rebase_source : 4ff5d92b000599806367b002fd08aa5ae858ee4d
2016-05-21 00:57:18 +09:00
Masayuki Nakano 65d3998d32 Bug 1272578 part.2 Rename key name VolumeUp to AudioVolumeUp except on B2G r=smaug
VolumeUp was renamed to AudioVolumeUp in the latest draft and Chromium uses the new name. Therefore, we need to update this but Gaia uses the old name. So, we shouldn't rename on B2G until Gaia is fixed.

Note that this patch changes tests but they are not used by B2G. Therefore, just replacing with new name is enough.

Only forms.js is necessary #ifdef because the main purpose of forms.js is for B2G's IME framework. However, it's available on the other platforms if chrome needs to use it.

MozReview-Commit-ID: KzLVL5Y2dIN

--HG--
extra : rebase_source : d7a70f556684cdc99989e408e0e87a04e2da43d9
2016-05-21 00:55:48 +09:00
Masayuki Nakano 97f043ea9e Bug 1272578 part.1 Rename key name VolumeDown to AudioVolumeDown except on B2G r=smaug
VolumeDown was renamed to AudioVolumeDown in the latest draft and Chromium uses the new name. Therefore, we need to update this but Gaia uses the old name. So, we shouldn't rename on B2G until Gaia is fixed.

Note that this patch changes tests but they are not used by B2G. Therefore, just replacing with new name is enough.

Only forms.js is necessary #ifdef because the main purpose of forms.js is for B2G's IME framework. However, it's available on the other platforms if chrome needs to use it.

MozReview-Commit-ID: cq98qJnS8M

--HG--
extra : rebase_source : 98653e5427d9d4720d19011673cbb0f9cdf36f1a
2016-05-21 00:52:03 +09:00
Phil Ringnalda db3e2c7d7f Back out 8 changesets (bug 931445, bug 1274104, bug 1270386) for frequent e10s APZ mochitest failures starting with test_group_mouseevents.html
CLOSED TREE

Backed out changeset 6db35dcc6885 (bug 1274104)
Backed out changeset 0c2fc088a46d (bug 1274104)
Backed out changeset 17786141f3ac (bug 1274104)
Backed out changeset f7c6b58dddc1 (bug 1274104)
Backed out changeset 67407d1829a3 (bug 1270386)
Backed out changeset 82d2c5404d84 (bug 931445)
Backed out changeset 0921152b9f08 (bug 931445)
Backed out changeset f73352ab6f99 (bug 931445)
2016-05-23 18:42:32 -07:00
Phil Ringnalda 6bb0bc4494 Back out 6 changesets (bug 881832) for failures in test_Debugger.Source.prototype.element.html
CLOSED TREE

Backed out changeset fac50ce10b07 (bug 881832)
Backed out changeset 32e01c144cd4 (bug 881832)
Backed out changeset 779f5336b81e (bug 881832)
Backed out changeset 95efd250e29f (bug 881832)
Backed out changeset 7fe79f07189f (bug 881832)
Backed out changeset 8ee1824f2a57 (bug 881832)
2016-05-23 18:34:49 -07:00
Gijs Kruitbosch 29525495be Bug 1272414 - rip out qemu/browser/b2g flags from marionette manifests, r=AutomatedTester
MozReview-Commit-ID: 9RjGgykh0pR

--HG--
extra : rebase_source : a5bc5e888cc24e05fb4b5843c3738aa5456aea80
2016-05-19 17:23:26 +01:00
Makoto Kato 04efbe5905 Bug 1177943 - Part 2. Add cmd_lookUpDictionary content command. r=masayuki
To get selected word on contnet process, I create new contnet command to look up dictionary.  Then, call nsIWidget's method to show looking up dictionary.

About fetched length, see https://www.chromium.org/developers/design-documents/system-dictionary-pop-up-architecture for OSX 10.6's design

MozReview-Commit-ID: Ic2r6hboEEw
2016-05-02 11:41:20 +09:00
Nicholas Nethercote 07762f2f32 Bug 1274888 - Add a null check in mozilla::EventStateManager::GetContentViewer. r=ting.
--HG--
extra : rebase_source : dd70f3147d66725afae5210b5ca962d4cba7ec9f
2016-05-23 13:27:41 +10:00
Xidorn Quan 51163cb576 Bug 931445 part 3 - Reset synth centering pointer when unlocking pointer. r=smaug
MozReview-Commit-ID: LcStCmm4iRV

--HG--
extra : source : e827730f9b70078e275da1163adc6746fe792399
2016-05-23 09:03:32 +10:00
Matt Woodrow 0e74313039 Bug 881832 - Fix test_bug602962.xul to not assume that resizes have finished flushing when the resize event fires. r=tnikkel 2016-05-12 12:09:50 +12:00
Olli Pettay 4b7dc9c164 Bug 1273511 - Optimize EventListenerManager::AddEventListenerByType, r=masayuki
--HG--
extra : rebase_source : b41e8d1df8ac6c1159348654b6827ea9239d8c5e
2016-05-20 12:15:05 +03:00
Masayuki Nakano 02cb827ee5 Bug 1272592 Merge "MediaSelect" key value into "LaunchMediaPlayer" r=smaug
"MediaSelect" is merged into "LanuchMediaPlayer" in the spec since there is no difference between them and "LaunchMediaPlayer" explains the meaning clearer.

This patch removes "MediaSelect" key value and maps all keys which are mapped to "MediaSelect" to "LaunchMediaPlayer".

MozReview-Commit-ID: IEZhV4p6Qag
2016-05-19 20:47:32 +09:00
Masayuki Nakano 96669928f1 Bug 1232919 part.1 Reorganize KeyNameList.h with the latest UI Evnets KeyboardEvent key value spec, add new key values and drop legacy key values which are never used internally r=smaug
This patch reorganizes KeyNameList.h with the latest UI Events KeyboardEvent key values spec.

Additionally adding new key values:
* "Hyper"
* "Super"
* "Key11"
* "Key12"
* "AudioBassBoostToggle"
* "AudioTrebleDown"
* "AudioTrebleUp"
* "MicrophoneToggle"
* "MicrophoneVolumeDown"
* "MicrophoneVolumeUp"
* "MicrophoneVolumeMute"
* "SpeechCorrectionList"
* "SpeechInputToggle"
* "LaunchContacts"
* "LaunchPhone"
* "AppSwitch"
* "Call"
* "CameraFocus"
* "EndCall"
* "GoBack"
* "GoHome"
* "HeadsetHook"
* "LastNumberRedial"
* "Notification"
* "MannerMode"
* "VoiceDial"
* "TV3DMode"
* "TVAntennaCable"
* "TVAudioDescription"
* "TVAudioDescriptionMixDown"
* "TVAudioDescriptionMixUp"
* "TVContentsMenu"
* "TVDataService"
* "TVInput"
* "TVInputComponent1"
* "TVInputComponent2"
* "TVInputComposite1"
* "TVInputComposite2"
* "TVInputHDMI1"
* "TVInputHDMI2"
* "TVInputHDMI3"
* "TVInputHDMI4"
* "TVInputVGA1"
* "TVMediaContext"
* "TVNetwork"
* "TVNumberEntry"
* "TVRadioService"
* "TVSatellite"
* "TVSatelliteBS"
* "TVSatelliteCS"
* "TVSatelliteToggle"
* "TVTerrestrialAnalog"
* "TVTerrestrialDigital"
* "TVTimer"
* "DVR"
* "MediaAudioTrack"
* "MediaSkipBackward"
* "MediaSkipForward"
* "MediaStepBackward"
* "MediaStepForward"
* "MediaTopMenu"
* "NavigateIn"
* "NavigateNext"
* "NavigateOut"
* "NavigatePrevious"

Remove deprecated and unused key values:
* "Separator"
* "MediaSkip"

Pending to remove:
* "MozHomeScreen" (Bug 1272599)
* "MozCameraFocusAdjust" (Bug 1272599)
* "MozPhoneCall" (Bug 1272599)
* "OS" (Bug 1232918)
* "MediaSelect" (Bug 1272592)

MozReview-Commit-ID: wrX1UAh8zF

--HG--
extra : rebase_source : 5ebf5b9f0c006d1ee0643510310052654d4f06d9
2016-05-18 13:15:27 +09:00
Trevor Saunders 72bac46477 bug 1271436 - use nsIDocShellTreeItem::GetWindow() more r=smaug 2016-05-17 18:16:07 -04:00
kshitija 43bdd72262 Bug 1259666 - Part 3- change displayPanFeedback to mDisplayPanFeedback - r=masayuki
MozReview-Commit-ID: LWOiakDEEx7

--HG--
extra : rebase_source : 4208b4cf8fe8593fec5be3de36bf4dfe0b5b87a8
2016-05-14 18:03:50 -07:00
kshitija 81668a7fc9 Bug 1259666 - Part 2 - Change panDirection to mPanDirection - r=masayuki
MozReview-Commit-ID: JVLB0Z6JUFc

--HG--
extra : rebase_source : a39f0973d8c71dbbff1540449b596357f0ed5f70
2016-04-29 03:34:46 -07:00
kshitija 118598553f Bug 1259666 part 1 - rename variable and definition change - r=masayuki
MozReview-Commit-ID: 1FWJypkoqYz

--HG--
extra : rebase_source : b3faef1abb72e8230ac70a963be96c19392632d4
2016-04-21 19:32:59 -07:00
Masayuki Nakano 1252a7bf75 Bug 1254755 part.5 Rename WidgetKeyboardEvent::isChar to WidgetKeyboardEvent::mIsChar r=smaug
MozReview-Commit-ID: 58mri5IP3dV

--HG--
extra : rebase_source : fadfc0eb40c2ea9a3a60ba54b0ae7c5cae94f96e
2016-05-12 18:31:05 +09:00
Masayuki Nakano e2fb1c839c Bug 1254755 part.4 Rename WidgetKeyboardEvent::location to WidgetKeyboardEvent::mLocation r=smaug
MozReview-Commit-ID: CjT7izri6Vq

--HG--
extra : rebase_source : 1e82d581b8bf1cce3d3154402f3bb435f7a004f6
2016-05-12 18:17:22 +09:00
Masayuki Nakano 8a70a17c6a Bug 1254755 part.2 Rename WidgetKeyboardEvent::charCode to WidgetKeyboardEvent::mCharCode r=smaug
And mCharCode shouldn't be compared with NS_VK_*, nsIDOMKeyEvent::DOM_VK_*. Additionally, when it's compared with a character constant, cast isn't necessary.

MozReview-Commit-ID: JMT614copjG

--HG--
extra : rebase_source : 69ee3c589e5a71c814ec9a40ac3aab39c789c11d
2016-05-13 16:06:18 +09:00
Masayuki Nakano 3359bad586 Bug 1254755 part.1 Rename WidgetKeyboardEvent::keyCode to WidgetKeyboardEvent::mKeyCode r=smaug
And also WidgetKeyboardEvent::mKeyCode should be compared with NS_VK_* rather than nsIDOMKeyEvent::DOM_VK_*.

MozReview-Commit-ID: IKjQ1nr8XYe

--HG--
extra : rebase_source : 83125cd2523f6b70759f621470aad23b00aae8ae
2016-05-12 17:13:49 +09:00
Chris Peterson 353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Kartikaya Gupta d671429ba2 Bug 1266066 - Add a console warning for attempts to preventDefault() from a passive listener. r=smaug
MozReview-Commit-ID: G1nzkUxMEuE
2016-05-12 14:51:02 -04:00
Kartikaya Gupta b867e298b4 Bug 1266066 - Ignore passive event listeners for APZ purposes. r=botond,smaug
MozReview-Commit-ID: 1F41jHsVOyY
2016-05-12 14:50:58 -04:00
Kartikaya Gupta a412581b20 Bug 1266066 - Implement DOM support for the 'passive' event listener flag. r=smaug
MozReview-Commit-ID: EvSCDxYC7g6
2016-05-12 14:50:22 -04:00
Andrew McCreight 6c277c9ba0 Bug 1026713 - Give DOMEventTargetHelper classes proper names in the CC log. r=smaug 2016-05-12 10:54:34 -07:00
Masayuki Nakano 3e4ceded8b Bug 1259661 part.9 Rename WidgetMouseEvent::clickCount to WidgetMouseEvent::mClickCount r=smaug
MozReview-Commit-ID: 5tC8UqcfLek

--HG--
extra : rebase_source : a336f9d8676c74804e2c00eebec4f2a30d7a11b3
2016-05-10 23:29:14 +09:00
Masayuki Nakano 1663e01f1f Bug 1259661 part.6 Rename WidgetMouseEvent::exit to WidgetMouseEvent::mExitFrom r=smaug
MozReview-Commit-ID: FHUaUOE5eIB

--HG--
extra : rebase_source : f4ff5a5f662054ab161805dc37b9e7b6d6b97d96
2016-05-12 11:42:08 +09:00
Masayuki Nakano 0902859a3a Bug 1259661 part.4 Rename WidgetMouseEvent::reason to WidgetMouseEvent::mReason r=smaug
MozReview-Commit-ID: JaE0S7BIgVF

--HG--
extra : rebase_source : 2d0f80e49dfd09cecc7ab3c85d2496308055d434
2016-05-12 11:36:41 +09:00
Takahiro Aoyagi 75f4ef756f Bug 1259669 Rename WidgetCommandEvent::command to WidgetCommandEvent::mCommand r=masayuki
--HG--
extra : rebase_source : 75298d438e6c6c77113ba252c955bc084f216015
2016-05-12 13:28:31 +09:00
Masayuki Nakano a369570d88 Backout bug 1259669 due to commited with wrong user name
--HG--
extra : rebase_source : eec830244783ded2e16bbe1e123849fbab0b3c8e
2016-05-12 13:23:43 +09:00
Phil Ringnalda c6417cc01e Back out 5 changesets (bug 881832) for failures in browser_html_tooltip-02.js
Backed out changeset 117e8e24d714 (bug 881832)
Backed out changeset 8a0d5df41cfb (bug 881832)
Backed out changeset 6b3c5e185b04 (bug 881832)
Backed out changeset 11106afdcbe7 (bug 881832)
Backed out changeset d711b7c19a43 (bug 881832)
2016-05-11 21:08:08 -07:00
Matt Woodrow 96fd641cc2 Bug 881832 - Fix test_bug602962.xul to not assume that resizes have finished flushing when the resize event fires. r=tnikkel
--HG--
extra : rebase_source : 435b12ae6f61e63d2f0cb421a7a06e50ed2f2e14
2016-05-12 12:09:50 +12:00
Jeff Gilbert 80f726ea0b Bug 1271478 - Implement WebGLContextCreationError. - r=jrmuizel,smaug,mtseng 2016-05-11 16:45:43 -07:00
Neil Deakin a4ee9d8df2 Bug 1249522, when a file is present, only specify file type, r=smaug 2016-05-11 10:04:19 -04:00
Neil Deakin 405358d4b3 Bug 1101975, handle access keys in content process before menus, r=masayuki 2016-05-11 08:56:42 -04:00
Ting-Yu Chou 437d8e5aa9 Bug 1245068 - Do not rely on focus manager to get the toplevel window as the focused window may be null in content process. r=enndeakin 2016-05-10 13:54:36 +08:00
Ryan VanderMeulen 3b7fc0b68e No bug - Enable some e10s that pass and add some more annotations to ones that don't. 2016-05-09 17:01:16 -04:00