Commit Graph

487289 Commits

Author SHA1 Message Date
ctai
57f4a5fc0f Bug 608634 - Enable test_error_in_video_document.html in all platform. r=jwwang.
Bug 1154802 provided a workaround for this race condition. So enable it in all platform.

MozReview-Commit-ID: BS1iW4O7TsZ

--HG--
extra : rebase_source : ac825a25b195b22106ae70cb412a0b61bd846bfb
2016-08-17 17:34:07 +08:00
ctai
070831d08f Bug 608634 - Fix redundant comments. r=jwwang.
MozReview-Commit-ID: EYW8O9vZipH

--HG--
extra : rebase_source : 301427f859ff50c32bc28e243f1a606e2ad9ef7a
2016-08-17 16:17:14 +08:00
Munro Mengjue Chiang
a365444cc2 Bug 1286429 - MediaDevices ondevicechange mochitest; r=jib
MozReview-Commit-ID: 9Mk1jDzRAEQ

--HG--
extra : rebase_source : 657e31211372be12b92369e56ece1c424a63ad50
2016-08-12 10:40:52 +08:00
Munro Mengjue Chiang
730a993044 Bug 1286429 - Fire fake devicechange event in Camera IPC thread for mochitest; r=jib
MozReview-Commit-ID: 9sDLnMGh3xL

--HG--
extra : rebase_source : 026891d00450b9bfd792708ab3d5d2e730f431f9
2016-08-09 16:37:04 +08:00
Munro Mengjue Chiang
4eb2d3e90d Bug 1286429 - implement mediaDevices.ondevicechange for Mac OSX; r=jib,smaug
MozReview-Commit-ID: D1Jr6I4qPyr

--HG--
extra : rebase_source : 0f4a97da80d25923c9b6f6550b94039aefa88de5
2016-08-12 01:04:49 +08:00
ctai
3fa6c14f4c Bug 1295478 - Enable test_empty_resource.html on Windows debug build. r=jwwang.
MozReview-Commit-ID: KUBRpLqKU5m

--HG--
extra : rebase_source : 7ba580904ca23e8fb1a0f08cab37233e7141e831
2016-08-15 17:22:20 +08:00
Andrew Halberstadt
8c3bcff5a6 Bug 1289805 - Properly normalize all paths so they are absolute, r=smacleod
It's important to use absolute paths so lint errors for the same files don't show up in two
different places. For example, eslint will absolutize a relative path, whereas flake8 will
not.

This patch also makes sure all include/exclude paths are joined to the mozlint 'root' that
was previously calculated from vcs.

MozReview-Commit-ID: KYhC6SEySC3

--HG--
extra : rebase_source : 9b88ee70a997d3f7b6cc0eb849e47931d5726f20
2016-07-19 13:09:38 -04:00
Andrew Halberstadt
560ce6a254 Bug 1289805 - Resolve vcs arguments directly in LintRoller class, r=smacleod
Previously, vcs related stuff was resolved in the cli.py module. But it's possible
for consumers to bypass the cli and instantiate a LintRoller directly. In fact this
is what the mozlint tests do.

Now that we always try to find the vcs root, calling into vcs is no longer optional.
This patch moves the VCSFiles class to a new vcs.py module and makes LintRoller
responsible for instantiating it instead of cli.py.

MozReview-Commit-ID: 5yA3gDZ1UGM

--HG--
extra : rebase_source : 96adc0ca01e8220b0432b64c96c478fc526db756
extra : source : 709c1e521ad3eb466c3434000aed7f71ebf37365
2016-08-10 10:21:43 -04:00
Andrew Halberstadt
ce3f82ffbe Bug 1289805 - Ensure the VCSFiles class returns paths that have been absolutized to the repository root, r=smacleod
This makes sure we return absolute paths from the VCSFiles class. This is done so we don't accidentally normalize
the relative paths onto $CWD in the event the relative path is valid in both places.

MozReview-Commit-ID: 2QIuR2YqFos

--HG--
extra : rebase_source : 2e82b4a5cf9a18856bbcb8d04fdc916ff7e72deb
2016-08-09 14:49:41 -04:00
Andrew Halberstadt
64bfc88f52 Bug 1289805 - Refactor filterpaths to accept all lintargs, r=smacleod
This makes it easier to pass configuration to the filterpaths method. In
the future, 'root' and 'extensions' will both be used here.

MozReview-Commit-ID: KYhC6SEySC3

--HG--
extra : rebase_source : 19ddf511ebd24a1a6c21f7c06b67ab64e78e7903
2016-08-09 15:29:49 -04:00
Andrew Halberstadt
5353a06823 Bug 1289805 - Don't pass in --exclude to flake8 paths that contain custom configuration, r=smacleod
This fixes a bug in flake8, where if you pass in --exclude to a path with a custom .flake8 file, that
configuration will be ignored. I'm not sure why this happens.

Prior to this commit series, the 'exclude' paths weren't being passed on to the flake8 linter properly.
This is why the problems hasn't surfaced until now. This is a band-aid fix until a proper (likely
upstream) fix can be landed.

MozReview-Commit-ID: KYhC6SEySC3

--HG--
extra : rebase_source : 0dbf30dcb17c37787c2ddebbb3c7de5f3b63860b
2016-08-09 16:28:13 -04:00
Henry Chang
4c1f039d17 Bug 1284204 - Parse SafeBrowsing V4 updates to TableUpdateV4. r=francois.
MozReview-Commit-ID: 88AEIbosxKl

--HG--
extra : rebase_source : 0cf1c60713a938a72c87d140869a63b2afa12e3f
extra : source : 13292c9abdce368d506d5c4ff79b4b14781e64ad
2016-08-12 11:55:48 +08:00
Fischer.json
8d2008a370 Bug 1037166 - Convert the "Show Update History" dialog on advanced pane to be in-content.r=jaws
MozReview-Commit-ID: kmgB4Sv9KM

--HG--
extra : rebase_source : 8b7edf6c5688321df05f83e7876ae3bb6b09e214
2016-07-29 17:03:05 +08:00
Kilik Kuo
4a988fcb4c Bug 1293861 - Intermittent dom/media/test/test_playback.html | bug506094.ogv, seek.yuv, bug498380.ogv, bug504613.ogv, bug523816.ogv checking networkState - got 2, expected 1. r=jwwang
MozReview-Commit-ID: 50BZ5ctp3wl

--HG--
extra : rebase_source : 9814bcd0098b20da0071ce6bb5ae9f056d09356f
2016-08-17 16:43:11 +08:00
Jimmy Wang
31cf81ec15 Bug 1261299 - Implement nsIClipboard methods in nsClipboard.mm with methods specific for osx. (EmptyClipboard, SetData) methods modified from nsBaseClipboard to also set the current selection cache. r=jimm
MozReview-Commit-ID: D8aRmK6FAai

--HG--
extra : rebase_source : 34137ffbe7da97f6ee2608fbd9ee4e120b0ebe71
2016-08-11 16:43:32 -04:00
Jimmy Wang
4b369489af Bug 1261299 - Add test for checking that the selected content/chrome text is properly sent up to the osx service menu code (nsChildView.mm). r=masayuki
MozReview-Commit-ID: 1gLTyNrxQ7E

--HG--
extra : rebase_source : 3ddd150e6e3963493e67046d8df0d9bcc0273afe
2016-07-08 11:38:16 -04:00
Jimmy Wang
f1deff206d Bug 1261299 - Add testing method GetSelectionAsPlaintext to DomWindowUtils which returns the text selection that was sent to the osx service menu nsChildView.mm. r=masayuki
MozReview-Commit-ID: JFzgyTmFDp2

--HG--
extra : rebase_source : 4bc04539a88d123e3ff70d07303adc759bace5b8
2016-07-08 11:35:39 -04:00
Jimmy Wang
6d8584507f Bug 1261299 - Only update nsClipboard::sSelectionCache in nsSelection.cpp when the selection listener is on the same process as the focused window where the selection occured or became active. r=smaug
MozReview-Commit-ID: KARKdc8G0nI

--HG--
extra : rebase_source : 1a5bc0fcb4ea607c46916df04199fda5161d64ab
2016-08-03 19:08:33 -04:00
Jimmy Wang
a2bf6b970a Bug 1261299 - Update the selection cache on repaint to handle when a pre-existing selection becomes active aka the current selection. r=smaug
MozReview-Commit-ID: HrTQnHd12rg

--HG--
extra : rebase_source : bd727de70576a39da3cd3fab1754330c41add768
2016-07-27 16:05:37 -04:00
Jimmy Wang
a7ba1f9d54 Bug 1261299 - Add EnsureDocument(mPresContext) to EventStateManager::GetFocusedContent() because mDocument is lazily loaded. r=smaug
MozReview-Commit-ID: FGfb709o32f

--HG--
extra : rebase_source : f29037efd2666ba7bfce71d030bccad7188eadc9
2016-07-13 15:11:45 -04:00
Jimmy Wang
5ac347a6ed Bug 1261299 - On e10s in nsChildView for OSX services, determine if there is a current selection (chrome/content). Send the selection to osx service menu. r=masayuki
MozReview-Commit-ID: G5iFo9GhyeA

--HG--
extra : rebase_source : ba6fb2144d67046e4d98c1d56d981f556078ad93
2016-07-08 11:22:42 -04:00
Jimmy Wang
271a7cfaa2 Bug 1261299 - Add method nsCopySupport::ClearSelectionTransferable() to clear the nsClipboard::sSelectionTransferable when you have no content selection. r=mstange
MozReview-Commit-ID: AjUe94N0Iiw

--HG--
extra : rebase_source : bf1bf642212add9227c185a6cfa3f8f94a7f0248
2016-06-08 14:11:39 -04:00
Jimmy Wang
7c6ec2835f Bug 1261299 - Add sSelectionTransferable and to get the current selection (chrome/content) needed for the OSX service menu. r=mstange
MozReview-Commit-ID: 4n5clge2tr8
***
Bug 1261299 - Add sSelectionTransferable and use in e10s to get the content selection needed for the OSX service menu.

MozReview-Commit-ID: HbZ7S4HfFtn

--HG--
extra : rebase_source : 6a520189d735c0c900e08d474ed838a68afbb4f8
2016-07-08 11:21:43 -04:00
Jimmy Wang
6c6d5a3ec1 Bug 1261299 - Add new clipboard kSelectionCache to cache the current selection for OSX service menu. Add a constructor to nsAutoCopyListener which sets the clipboard to copy to. Pass in kSelectionCache for OSX or kSelectionClipboard for linux. r=mstange
MozReview-Commit-ID: B9mzVnJxUjl

--HG--
extra : rebase_source : 5329f87a958dcb372d552b6aa17442ea7f9b9762
2016-06-03 12:04:22 -04:00
Kaku Kuo
5ab464fd77 Bug 1295440 - Make HTMLMediaElement::SeekToNextFrame() reject promise with meaningful information; r=jwwang
MozReview-Commit-ID: Dgi3Ek8K3bR

--HG--
extra : rebase_source : 58d63933906f676a7e7a5ed85cf7e25e3e87dd16
2016-08-17 10:02:10 +08:00
Henrik Skupin
9035999513 Bug 1283791 - Firefox-ui-tests taskcluster tasks have to upload reports (html, xml) as artifacts. r=maja_zf
MozReview-Commit-ID: KNi71IFE3As

--HG--
extra : rebase_source : f14d8db3658d9b160be22926a6aeb7d1b751826e
2016-08-12 13:42:38 +02:00
Wes Kocher
37a02d441d Backed out 6 changesets (bug 1264642) for marionette failures a=backout CLOSED TREE
Backed out changeset f0067001c059 (bug 1264642)
Backed out changeset 078e5c447f21 (bug 1264642)
Backed out changeset 7c60fc4144fb (bug 1264642)
Backed out changeset 9f434697ef2e (bug 1264642)
Backed out changeset 06fc278fcedf (bug 1264642)
Backed out changeset 162098402acc (bug 1264642)
2016-08-17 10:49:25 -07:00
Wes Kocher
6b3d348f17 Backed out 2 changesets (bug 1294358) for xp mda failures a=backout CLOSED TREE
Backed out changeset 886441076b5f (bug 1294358)
Backed out changeset 848141457f25 (bug 1294358)

--HG--
extra : amend_source : 393a51d18d37246cec3617fb3162478cd98b3bb2
2016-08-17 10:06:40 -07:00
Wes Kocher
6f430a404b Backed out changeset 942b01866756 (bug 1295844) for xp mda failures a=backout 2016-08-17 10:06:27 -07:00
JW Wang
ecaa7b7a0d Bug 1295901 - Change the semantics/naming of MediaDecoderReader::ReleaseMediaResources(). r=jya
MozReview-Commit-ID: DyOwNcC2JK5

--HG--
extra : rebase_source : 5b14dfe1df7ed9eab1783fba64ff4a481e520339
2016-08-17 15:03:30 +08:00
Andreas Tolfsen
cf5f3418f9 Bug 1255955 -Run element enabled check before accessibility checks; r=automatedtester
MozReview-Commit-ID: 18OtOKtox3K

--HG--
extra : rebase_source : 2773dbd04f7a728b6b9fcd5db8e57b8abc28abcc
2016-08-13 20:59:14 +02:00
Andreas Tolfsen
50d1d83f2a Bug 1255955 - Simplify element.clickElement complexity; r=automatedtester
MozReview-Commit-ID: IXqgFlS6R6c

--HG--
extra : rebase_source : 77a35e9dcde68ef8c90888bdf6abea470b442296
2016-08-13 20:54:46 +02:00
Andreas Tolfsen
2b8b321b6a Bug 1255955 - Document clickElement and calculateCentreCoords; r=automatedtester
MozReview-Commit-ID: tSC5xRAVAl

--HG--
extra : rebase_source : 2038db7219878edde781a9823a309efcf8d49053
2016-08-13 20:54:15 +02:00
Andreas Tolfsen
010a199980 Bug 1255955 - Add support for interacting with <select> elements; r=automatedtester
This patch introduces support for clicking on <select> and <select
multiple> elements to Marionette.  As <select> elements, especially
<select multiple>, are operating system level concepts usually implemented
with native widget sets, this patch takes the approach of dispatching
generated events.

MozReview-Commit-ID: 9kwOva43AOL

--HG--
extra : rebase_source : dde090ed9487e593bc16f8a7e12365b97ada9735
2016-08-05 18:08:31 +01:00
Andreas Tolfsen
cf92f63f85 Bug 1255955 - Add shorthands for generating common DOM events; r=automatedtester
MozReview-Commit-ID: K5p1SyYMofQ

--HG--
extra : rebase_source : 687d4a15858a6934343c368a8de498afb6be98fc
2016-08-05 18:07:12 +01:00
Andreas Tolfsen
11e8e8c6c2 Bug 1255955 - Add function to dispatch events to event library; r=automatedtester
MozReview-Commit-ID: GBvXy8svoY2

--HG--
extra : rebase_source : a0d4db22becb70f8097198d300bff6f198e9ede4
2016-08-05 18:06:38 +01:00
Andreas Tolfsen
55a23f732e Bug 1255955 - Use correct argument in event.synthesizeMouse; r=automatedtester
MozReview-Commit-ID: AHh99sePoYj

--HG--
extra : rebase_source : 960a54f609e525cab41df5b98d0189648bd490d3
2016-08-05 18:05:45 +01:00
Andreas Tolfsen
6ac6b51209 Bug 1255955 - Fix event.sendMouseEvent to work in privileged space; r=automatedtester
Also fixes assumptions about permitted mouse events.

MozReview-Commit-ID: 33MKL60cKXi

--HG--
extra : rebase_source : 59f838c42a19b3bbedc42fa5a78d84c15ab176a2
2016-08-05 18:05:14 +01:00
Andreas Tolfsen
6cf2139f2d Bug 1255955 - Fix event.parseModifiers_ to not use module argument name; r=automatedtester
MozReview-Commit-ID: v79foxRjUV

--HG--
extra : rebase_source : eeb62400f1e4c1bec69d0b9bfcb5673003e940cc
2016-08-05 18:03:43 +01:00
Andreas Tolfsen
a6a86c1771 Bug 1255955 - Rename a11y functions check* to assert*; r=automatedtester
"Check" is a fine word but with functions which primary purpose is to
throw an error internally we should use "assert" to make the reprecussions
of using them crystal clear.

MozReview-Commit-ID: Kef4R8y8fiV

--HG--
extra : rebase_source : eb22beb7a33e593f34b3d24ecdaaa7f99d8e5f87
2016-08-05 11:43:40 +01:00
Andreas Tolfsen
a0e56a4788 Bug 1255955 - Perform click checks as part of promise; r=automatedtester
Some of the element interactability- and visibility checks were previously
done when interaction.clickElement was called, and not as part of the
resolution of the returned promise.  This could have caused a potential
race condition.

MozReview-Commit-ID: 691V86B4k5w

--HG--
extra : rebase_source : 7a6951d9c29aa5fa3eb3852d3d6d33e65f7d72c4
2016-08-05 11:38:23 +01:00
Andreas Tolfsen
1eec7ff342 Bug 1255955 - Recalculate visibility after scrolling; r=automatedtester
We want to redo the element interactability calculation after scrolling.
Determining if an element is not visible by the old location would
be wrong.

MozReview-Commit-ID: KGaPVmgcqSX

--HG--
extra : rebase_source : 12ac51e5c9947da1082351c4e382cfc95ea8f843
2016-08-05 11:00:19 +01:00
Andreas Tolfsen
26c6e26783 Bug 1255955 - Scroll element into view when not visible; r=automatedtester
The if-condition in the specification compatible interactability check
for interaction.clickElement is wrong.  It should scroll an element into
view when it is _not_ visible.  If it is visible it does not matter.

MozReview-Commit-ID: 2n34QddDkQv

--HG--
extra : rebase_source : efe079de9a1fa930ea2f3d9d8fff59fc9a4e269b
2016-08-05 10:53:06 +01:00
Andreas Tolfsen
38a5c89fb8 Bug 1255955 - Rename checkbox test to not conflict with select tests; r=automatedtester
MozReview-Commit-ID: 3SIFP3mUPhT

--HG--
rename : testing/marionette/harness/marionette/tests/unit/test_selected_chrome.py => testing/marionette/harness/marionette/tests/unit/test_checkbox_chrome.py
extra : rebase_source : 1db1e6816b9bf8efeffa64e77771d1f102b1a234
2016-08-05 10:52:07 +01:00
John Lin
d7cf8502c8 Bug 1257777 - Part 6: Implement remote data decoders and enable/disable them with pref. r=snorp
MozReview-Commit-ID: 54ZEckQHsBI

--HG--
extra : rebase_source : e655067a487aafeccb866877157616036044ba4b
2016-08-05 15:24:46 +08:00
John Lin
d8af0bb89e Bug 1257777 - Part 5: Seperate PDM and data decoders into different files. r=snorp
MozReview-Commit-ID: KP4hAZXLPAU

--HG--
extra : rebase_source : 64f4c8c086d10ce1268945c74c813177b2401d58
2016-08-05 15:24:06 +08:00
John Lin
f5e84e8425 Bug 1257777 - Part 4: Implement remote codec proxy. r=snorp
MozReview-Commit-ID: 3YEfXXkg2Xi

--HG--
extra : rebase_source : b860ff64bd37a76b8a58edfab39dbe4951c21ba7
2016-08-05 15:23:47 +08:00
John Lin
935e9d2aba Bug 1257777 - Part 3: Implement remote codec, manager service, and parcelables. r=jchen
MozReview-Commit-ID: L0bc0wUaQKQ

--HG--
extra : rebase_source : ef1dd9f5db00c3a3c44fd9fd04ae7df80aa29201
2016-08-05 15:18:52 +08:00
John Lin
59e6544bc3 Bug 1257777 - Part 2: Implement async codec using API level 16 MediaCodec. r=esawin
Asynchronous mode was not available until API level 21. To make it transparent to the caller, introduce a wrapper interface that mimics the new API.

MozReview-Commit-ID: 7idq2lQo35I

--HG--
extra : rebase_source : 304c4267547096450712c05ab65163955fcc1f4f
2016-08-05 15:32:55 +08:00
John Lin
5c078510e7 Bug 1257777 - Part 1: AIDL interfaces for remote codec and manager service binders. r=nalexander
MozReview-Commit-ID: DAaJyWcyC0c

--HG--
extra : rebase_source : 95b82faa20a98801f6aaba424b263e8515f425fc
2016-08-05 15:28:04 +08:00