Commit graph

14 commits

Author SHA1 Message Date
Mark Banner
691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Brian Grinstead
4995c61b0f Bug 1482667 - Migrate mochitest-browser tests in browser/ to use element variations of firstChild, etc;r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3530

--HG--
extra : moz-landing-system : lando
2018-08-17 16:45:52 +00:00
Chris Pearce
4a6ff21ab5 Bug 1473671 - Don't store persistent block permission if ESC pressed while showing permission doorhanger. r=florian
While showing a doorhanger permisison prompt, if the user presses the ESC key
we call the secondary action callback, passing in whether any checkbox on
the popup notification was checked.

In the case of an autoplay-media permission prompt, we have a "remember"
checkbox, which is checked by default. So pressing ESC means the user will
remember a "block" result for the current site.

We believe that users don't expect pressing ESC to result in a remembered
decision, they expect pressing ESC to avoid making a decision. So we want to
ignore the checkbox when ESC is pressed for autoplay-media.

So this patch adds a new PopupNotification behaviour which reports the source
of event which caused the action callback to be called. This enables the ESC
key press to ignore storing a permission.

Note: the change here to not store a permission on ESC press applies to all
permissions, not just autoplay-media.


MozReview-Commit-ID: IUWFN8LG9VF

--HG--
extra : rebase_source : b004bc211177a7bfb6dcea563d75db9a6750b214
2018-07-17 14:45:17 +12:00
Kris Maglione
313b707b2e Bug 1443964: Part 3 - Remove no-cpows-in-tests rule. r=mconley
The shims that this rule tests for no longer exist.

MozReview-Commit-ID: DMgP7Hczavc

--HG--
extra : rebase_source : 765ddd5c62c9449c07ed050e44d86a3bd5c0ae64
extra : amend_source : 627a7694ac07182200f876901ded7a34721cd228
2018-03-07 19:31:28 -08:00
Masayuki Nakano
cf83ee7bb4 Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug
Note that this patch also replaces legacy VK_* with KEY_*, and replaces
synthesizeKey() for inputting some characters with sendString() because
it's better and clearer what it does and it sets shiftKey state properly.

MozReview-Commit-ID: De4enbjux3T

--HG--
extra : rebase_source : 2296b84bff8e22f01eeb48cd8614fac5db11136a
2018-02-15 04:15:39 +09:00
Mark Banner
01008c7d57 Bug 1412778 - Enable ESLint rule no-cpows-in-tests across the whole tree. r=florian
MozReview-Commit-ID: 8pidN7x6MYh

--HG--
extra : rebase_source : 6a0d6800091231fc1535223bd7fc6df0ba40d47b
2017-10-30 09:55:39 +00:00
Florian Quèze
16530fa1e3 Bug 1353542 - smaller script-generated patch converting remaining generators that are likely tasks (actual generators were identified by hand and whitelisted), r=Mossop. 2017-05-12 14:45:01 +02:00
Florian Quèze
5e3539e504 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Johann Hofmann
d4e59cfee3 Bug 1354761 - Avoid calling goNext inside BTU.withNewTab in browser_popupNotification_keyboard.js. r=Nihanth
This was likely the cause of intermittent failures reporting dangling tabs at the end of the test.

MozReview-Commit-ID: Cq07ALUGiFI

--HG--
extra : rebase_source : 92abf61b4e4638629c4cc0bbfd98dd7a60e7c68d
2017-04-20 15:20:21 +02:00
Johann Hofmann
a1d1669ab0 Bug 1334496 - Part 2 - Test that content elements stay focused when showing a popup notification. r=Paolo
MozReview-Commit-ID: 2CQ1NNauJ7f

--HG--
extra : rebase_source : ccae9db2d090fd9ab967159bb5a136a9c54ad02b
2017-03-08 11:57:07 +01:00
Johann Hofmann
d9c8f7d70b Bug 1334496 - Part 1 - Add an autofocus option to PopupNotifications.show. r=Paolo
MozReview-Commit-ID: DrJOjUWJJOD

--HG--
extra : rebase_source : 75f395dcadd1134fe7ca6169533ffaa4c65a1485
2017-02-17 14:56:23 +01:00
Johann Hofmann
c6de4ab37c Bug 1340112 - Move focus into popupnotification panels when selected via keyboard. r=florian
MozReview-Commit-ID: 3DSugKa3cQ3

--HG--
extra : rebase_source : 02eb026c8d6bf40e231fda37f364f893dbcd9e8b
2017-02-16 15:39:07 +01:00
Johann Hofmann
7585aacec4 Bug 1328740 - Focus popup notification panels on anchor icon keypress. r=florian
MozReview-Commit-ID: 1s0RzGJGVCX

--HG--
extra : rebase_source : 298f9f224ca195599ee6f4b42648821b1cc078f3
2017-01-18 23:12:35 +01:00
Johann Hofmann
dde83f87bb Bug 1320719 - The Esc key should deny permission requests for persistent prompts. r=florian
MozReview-Commit-ID: 3qj0pub48q9

--HG--
extra : rebase_source : dd673fe21a890cfbb48447ecedfccefe1f54c09f
2016-12-09 15:04:01 -10:00