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

581 Коммитов

Автор SHA1 Сообщение Дата
Kris Maglione ab5a99dd15 Bug 1602898: Rename Window.getWindowGlobalChild() to .windowGlobalChild. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D56609

--HG--
extra : moz-landing-system : lando
2020-01-21 21:32:28 +00:00
Mihai Alexandru Michis 745c94b1df Backed out changeset 006f4e50e8e5 (bug 1602898) for causing multiple failures.
CLOSED TREE
2020-01-21 22:55:37 +02:00
Kris Maglione aa0306477e Bug 1602898: Rename Window.getWindowGlobalChild() to .windowGlobalChild. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D56609

--HG--
extra : moz-landing-system : lando
2020-01-21 18:48:26 +00:00
Cosmin Sabou 9b6e5f8e66 Backed out changeset 4c303f6ec2e6 (bug 1602898) for browser chrome failures on browser_ssb_windowlocation. 2020-01-18 01:06:34 +02:00
Kris Maglione 036e960542 Bug 1602898: Rename Window.getWindowGlobalChild() to .windowGlobalChild. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D56609

--HG--
extra : moz-landing-system : lando
2020-01-17 21:36:10 +00:00
Geoff Lankow 048ed6e9de Bug 1605674 - Stop using window.setTimeout in MockFilePickerInstance. r=kmag
Using window.setTimeout is causing a Thunderbird test to stall for not entirely clear reasons. Use dispatchToMainThread instead.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 21:32:56 +00:00
Masayuki Nakano 0bf0eeeaa0 Bug 970802 - part 1: Add `beforeinput` event tests into existing mochitests r=smaug
This patch adds a lot of `beforeinput` event tests into existing mochitests
which test `input` events.  But this does not add tests of canceling
`beforeinput` event because it requires really complicated path until
implementing `beforeinput` actually.

Note that `beforeinput` event is not fired with `Document.execCommand()`.
Therefore, this patch does not add WPT for testing `beforeinput` event.
And unfortunately, WPT cannot test most cases of the new tests.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 07:14:50 +00:00
Razvan Maries 0df75c8122 Backed out 5 changesets (bug 970802) for xpcshell perma fails. CLOSED TREE
Backed out changeset 5511edd700f7 (bug 970802)
Backed out changeset 1fb9cf2264b6 (bug 970802)
Backed out changeset 6b185296c742 (bug 970802)
Backed out changeset ce6853e64ed6 (bug 970802)
Backed out changeset aa9bd45c09b1 (bug 970802)
2020-01-14 04:41:15 +02:00
Masayuki Nakano 583465bce4 Bug 970802 - part 1: Add `beforeinput` event tests into existing mochitests r=smaug
This patch adds a lot of `beforeinput` event tests into existing mochitests
which test `input` events.  But this does not add tests of canceling
`beforeinput` event because it requires really complicated path until
implementing `beforeinput` actually.

Note that `beforeinput` event is not fired with `Document.execCommand()`.
Therefore, this patch does not add WPT for testing `beforeinput` event.
And unfortunately, WPT cannot test most cases of the new tests.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 09:22:50 +00:00
Masatoshi Kimura ef626b5951 Bug 1448967 - Remove enablePrivilege. r=mccr8,marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D57243

--HG--
rename : testing/firefox-ui/resources/security/enable_privilege.html => js/xpconnect/tests/mochitest/test_enable_privilege.html
extra : moz-landing-system : lando
2020-01-08 23:14:48 +00:00
Kris Maglione 64dd29e2b8 Bug 1596918: Part 2 - Add ESLint support for SpecialPowers.spawn globals. r=Standard8
This patch updates the existing ContentTask.spawn rule to do similar things
for SpecialPowers.spawn calls, only with a slightly different set of globals.

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

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:33 +00:00
Kris Maglione 4e0f1f1f23 Bug 1596918: Part 1c - Make some more globals available to SpecialPowers.spawn tasks. r=mccr8
A number of additional globals are available to ContentTask.spawn tasks
compared to SpecialPowers.spawn tasks. Most of these are available by
accident, as a side-effect of running in a shared frame script global, or
being evaled in the context of the content-task.js frame script, but several
of them are pretty broadly useful, or difficult to obtain from a Sandbox
environment without reaching into arbitrary nearby globals.

This patch adds some of the more useful ones to the default task environment.

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

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:32 +00:00
Kris Maglione d22440c671 Bug 1596918: Part 1b - Allow callers to automatically import JSMs for all SpecialPowers.spawn calls. r=mccr8
Some tests currently use an initial `ContentTask.spawn` call to import certain
modules into the frame script global that subsequent tasks will run in. Since
each `SpecialPowers.spawn` task runs in its own sandbox, this method doesn't
work for them.

This patch adds a helper, `SpecialPowers.addTaskImport`, which allows similar
functionality by automatically importing the given module for any task spawned
by the `SpecialPowers` instance it was called on.

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

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:32 +00:00
Kris Maglione e95b795e86 Bug 1596918: Part 1a - Add support for more assertion/info methods to SpecialPowers.spawn. r=mccr8
ContentTask.spawn supports some common global mochitest assertion methods as
aliases for corresponding Assert methods, along with espected-fail `todo`
variants, and the `info` method for logging messages without triggering
assertions. The easiest way to mass-convert existing callers is to just add
support for these to SpecialPowers.spawn, which this patch does.

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

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:32 +00:00
Daniel Varga 84a601a6d4 Backed out 17 changesets (bug 1596918) for multiple browser-chrome and dev-tools failures. On a CLOSED TREE
Backed out changeset ab87d2c1afae (bug 1596918)
Backed out changeset 775f3b06a687 (bug 1596918)
Backed out changeset 67cc63ef5d7f (bug 1596918)
Backed out changeset 7d290bcd2067 (bug 1596918)
Backed out changeset 048db9f4db7c (bug 1596918)
Backed out changeset 96a79d2ba614 (bug 1596918)
Backed out changeset be770d112dd8 (bug 1596918)
Backed out changeset 302c8ab8391c (bug 1596918)
Backed out changeset 44ef8f20732e (bug 1596918)
Backed out changeset 38c11ebfb8ff (bug 1596918)
Backed out changeset b586fc081374 (bug 1596918)
Backed out changeset 12283166716f (bug 1596918)
Backed out changeset 99b0421015d8 (bug 1596918)
Backed out changeset 97ec49dbbbf3 (bug 1596918)
Backed out changeset ec79478f58f1 (bug 1596918)
Backed out changeset c6d356833bb8 (bug 1596918)
Backed out changeset 5ef6026806c8 (bug 1596918)
2019-12-07 03:12:07 +02:00
Kris Maglione 37df64fb9f Bug 1596918: Part 2 - Add ESLint support for SpecialPowers.spawn globals. r=Standard8
This patch updates the existing ContentTask.spawn rule to do similar things
for SpecialPowers.spawn calls, only with a slightly different set of globals.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 22:13:59 +00:00
Kris Maglione a4d92243c6 Bug 1596918: Part 1c - Make some more globals available to SpecialPowers.spawn tasks. r=mccr8
A number of additional globals are available to ContentTask.spawn tasks
compared to SpecialPowers.spawn tasks. Most of these are available by
accident, as a side-effect of running in a shared frame script global, or
being evaled in the context of the content-task.js frame script, but several
of them are pretty broadly useful, or difficult to obtain from a Sandbox
environment without reaching into arbitrary nearby globals.

This patch adds some of the more useful ones to the default task environment.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 22:13:48 +00:00
Kris Maglione 78e7bc3363 Bug 1596918: Part 1b - Allow callers to automatically import JSMs for all SpecialPowers.spawn calls. r=mccr8
Some tests currently use an initial `ContentTask.spawn` call to import certain
modules into the frame script global that subsequent tasks will run in. Since
each `SpecialPowers.spawn` task runs in its own sandbox, this method doesn't
work for them.

This patch adds a helper, `SpecialPowers.addTaskImport`, which allows similar
functionality by automatically importing the given module for any task spawned
by the `SpecialPowers` instance it was called on.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 22:13:41 +00:00
Kris Maglione 92946a07a2 Bug 1596918: Part 1a - Add support for more assertion/info methods to SpecialPowers.spawn. r=mccr8
ContentTask.spawn supports some common global mochitest assertion methods as
aliases for corresponding Assert methods, along with espected-fail `todo`
variants, and the `info` method for logging messages without triggering
assertions. The easiest way to mass-convert existing callers is to just add
support for these to SpecialPowers.spawn, which this patch does.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 22:13:38 +00:00
Brad Werth b724f12298 Bug 1599304: Make SpecialPowers.Focus check for availability of this.manager.rootFrameLoader before dereferencing it. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D54648

--HG--
extra : moz-landing-system : lando
2019-11-26 22:31:20 +00:00
Gabriele Svelto 9283d5f034 Bug 1598258 - Add a list of additional minidumps to the event delivered when a plug-in crashes r=froydnj
This patch adds a new field to the `plugin-crashed` event that holds the list
of additional minidumps associated with a crash report. The test
infrastructure is modified to use it which also fixes a race when processing
the .extra file. The reftest machinery has also been modified to take the new
field into account.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 07:30:23 +00:00
Gabriele Svelto 3233e4e9ef Bug 1598005 - Remove the useless browserDumpID field from the plug-in crash events r=froydnj,baku
Differential Revision: https://phabricator.services.mozilla.com/D53977

--HG--
extra : moz-landing-system : lando
2019-11-21 12:29:58 +00:00
Razvan Maries b90bde90fc Backed out changeset 1603f5abc56e (bug 1420363) for perma fails on test_busy_hang.xul. CLOSED TREE
--HG--
extra : rebase_source : 02c0d2f9f92f0a01ef57e4f9b38a008f6bc0eb50
2019-11-16 13:00:43 +02:00
Gabriele Svelto fb2b45f492 Bug 1420363 - Write crash annotations as JSON r=froydnj,agi
This patch rolls up all the required changes for this purpose. Since the
whole crash reporting flow must understand the new format it's not possible
to land this as separate patches as individually they would be broken. This
patch includes the following changes:

* Changes to the crash reporting machinery to write out annotations as JSON,
  these includes changes to the DLL blocklist code that must be run at crash
  time.
* Modifications to the crash reporter client so that it can read and
  submit the new format; this includes platform-specific changes to the
  Breakpad libraries it uses for submitting crashes.
* Modifications to the minidump-analyzer to understand and process the new
  format correctly.
* Modifications to the crash manager to understand and process the new format
  correctly.
* Modifications to GeckoView's crash handler to understand and submit the
  new format correctly.
* Added new tests to cover the new format and modified existing ones to
  accomodate the new one.

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

--HG--
extra : moz-landing-system : lando
2019-11-16 08:29:07 +00:00
Christoph Kerschbaumer e8e2dc31b7 Bug 1584998: Make x-frame-options work with fission enabled. r=jkt,farre,johannh,flod
Differential Revision: https://phabricator.services.mozilla.com/D50588

--HG--
extra : moz-landing-system : lando
2019-10-31 08:28:35 +00:00
Razvan Maries dc147d06b0 Backed out changeset 5f185a11889b (bug 1584998) for perma fails on browser_bug593387.js. CLOSED TREE 2019-10-30 23:26:01 +02:00
Christoph Kerschbaumer 36376205fb Bug 1584998: Make x-frame-options work with fission enabled. r=jkt,farre,johannh
Differential Revision: https://phabricator.services.mozilla.com/D50588

--HG--
extra : moz-landing-system : lando
2019-10-30 17:54:36 +00:00
Daniel Varga 617d42c7ed Backed out changeset ac8f6632f7e0 (bug 1584998) on request by dev. On a CLOSED TREE 2019-10-30 19:33:29 +02:00
Christoph Kerschbaumer 9c55479432 Bug 1584998: Make x-frame-options work with fission enabled. r=jkt,farre,johannh
Differential Revision: https://phabricator.services.mozilla.com/D50588

--HG--
extra : moz-landing-system : lando
2019-10-30 14:47:19 +00:00
Rob Wu 20949d82c8 Bug 1591102 - Let SpecialPowers.pushPermissions wait until the permissions have been applied r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D50486

--HG--
extra : moz-landing-system : lando
2019-10-25 03:25:39 +00:00
Christoph Kerschbaumer 61c17da3e9 Bug 1584993: Make CSP frame-ancestors work with fission enabled. r=jkt,farre,valentin
Differential Revision: https://phabricator.services.mozilla.com/D49147

--HG--
extra : moz-landing-system : lando
2019-10-22 10:57:43 +00:00
Bogdan Tara e1b6bc2222 Backed out changeset 8705284b50d4 (bug 1584993) for test_report_uri_missing_in_report_only_header.html failures CLOSED TREE 2019-10-22 13:25:49 +03:00
Christoph Kerschbaumer 2d974555d2 Bug 1584993: Make CSP frame-ancestors work with fission enabled. r=jkt,farre,valentin
Differential Revision: https://phabricator.services.mozilla.com/D49147

--HG--
extra : moz-landing-system : lando
2019-10-22 08:53:47 +00:00
Kris Maglione 3dfef17d14 Bug 1587580 - Use the actual source filename and line number for SpecialPowers.spawn callback. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D48758

--HG--
extra : moz-landing-system : lando
2019-10-09 21:05:46 +00:00
Neil Deakin ec8b2c4f13 Bug 1573836, make autocomplete component fission compatible, r=mak,MattN
Differential Revision: https://phabricator.services.mozilla.com/D47093

--HG--
rename : toolkit/modules/AutoCompletePopupContent.jsm => toolkit/actors/AutoCompleteChild.jsm
rename : toolkit/components/satchel/AutoCompletePopup.jsm => toolkit/actors/AutoCompleteParent.jsm
extra : moz-landing-system : lando
2019-10-09 19:02:57 +00:00
Nika Layzell 6ac2292c72 Bug 1581925 - Part 2: Use {chrome/content}-document-global-created topic to create SpecialPowers actor, r=kmag
This replaces the old DOMWindowCreated event, and allows SpecialPowers to still
be instantiated for each new chrome document.

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

--HG--
extra : moz-landing-system : lando
2019-10-07 19:35:06 +00:00
Kris Maglione 147f1b5141 Bug 1586119: Part 2 - Fix some more tests to almost work under Fission. r=mccr8
These still fail or timeout because of missing platform features, but at least
the tests will pass once those platform features are fixed after this.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 21:50:34 +00:00
Brindusan Cristian 35cc00a25c Backed out 2 changesets (bug 1581925) for devtools failures at browser_toolbox_textbox_context_menu.js. CLOSED TREE
Backed out changeset f79a5830bfef (bug 1581925)
Backed out changeset 2e3b0b1cebea (bug 1581925)
2019-10-02 03:04:43 +03:00
Nika Layzell 5ae1be845f Bug 1581925 - Part 2: Use {chrome/content}-document-global-created topic to create SpecialPowers actor, r=kmag
This replaces the old DOMWindowCreated event, and allows SpecialPowers to still
be instantiated for each new chrome document.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 19:32:49 +00:00
Mike Conley 8c8031be61 Bug 1580848 - Add ContentTaskUtils to SpecialPowers.spawn execution scope. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D45745

--HG--
extra : moz-landing-system : lando
2019-09-13 09:13:06 +00:00
Kris Maglione fb8619c074 Bug 1563578: Make browser_getActor_filter.js Fission-compatible.
Differential Revision: https://phabricator.services.mozilla.com/D36974

--HG--
extra : moz-landing-system : lando
2019-08-22 20:28:36 +00:00
Kris Maglione a7bea0cda2 Bug 1574296: Support assertions in nested SpecialPowers.span calls. r=mccr8
Prior to this patch, assertions in SpecialPowers.spawn callbacks only work
when the caller was in a window with a SimpleTest harness.

This patch fixes that by registering a default assertion handler at the start
of a test, and sending assertions from any task without its own harness to
said default handler.

MANUAL PUSH: Contains complex rename operations that I don't trust Lando to
handle correctly.

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

--HG--
extra : rebase_source : b0b72ce166647621a50aad0af8f130c0d89e3829
extra : source : 41b6d03a870caa7c4be2146ce8c8d84efdb20e79
2019-08-15 14:21:37 -07:00
Kris Maglione dc9ce953b0 Bug 1561705: Part 5b - Merge SpecialPowersAPIParent.jsm and SpecialPowersParent.jsm. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D42182

--HG--
rename : testing/specialpowers/content/SpecialPowersAPIParent.jsm => testing/specialpowers/content/SpecialPowersParent.jsm
extra : rebase_source : ca8c57dee3026febf8120e055ac4c3f76e41cc3c
extra : source : f9d136ac0e61af3b30eae8ad6a59730c2563aae1
2019-08-14 16:41:41 -07:00
Kris Maglione cbe4a6ea57 Bug 1561705: Part 5a - Remove SpecialPowersParent.jsm in preparation for merge with SpecialPowersAPIParent.jsm. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D42184

--HG--
extra : rebase_source : 14e911bc6130a6b11e2e75515fc9d1adddae53fe
extra : source : 40a1794e0c0ec4d13533b2343a66448502e2b8b2
2019-08-15 12:55:27 -07:00
Kris Maglione ca3b3d51a6 Bug 1561705: Part 4b - Merge SpecialPowersAPI.jsm and SpecialPowersChild.jsm. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D42181

--HG--
rename : testing/specialpowers/content/SpecialPowersAPI.jsm => testing/specialpowers/content/SpecialPowersChild.jsm
extra : rebase_source : 040edb6a48c8972c12ef8ef1f412c407260a78bd
extra : source : dad7319f1f6cf3ebaa3f4f68fb3124492311a017
2019-08-14 16:32:59 -07:00
Kris Maglione 40ad7fbfc9 Bug 1561705: Part 4a - Remove SpecialPowersChild.jsm in preparation for merge with SpecialPowersAPI.jsm. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D42183

--HG--
extra : rebase_source : dd3eee64acc4a393a2204b488d87554be2d2e314
extra : source : 7c7d41b7baca9755a3a44f2c35c84b5c2352eb93
2019-08-15 12:54:30 -07:00
Kris Maglione 214bc6110f Bug 1561705: Part 3 - Get rid of remaining ChromePowers.js consumers. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D42180

--HG--
extra : rebase_source : 4992d6ec6926e9052c2760765fb2f1a07f4a46d0
extra : source : cbe56a9fce5238a9bfdd0a2d226dc319380490b4
2019-08-14 16:18:32 -07:00
Kris Maglione 467bd404f5 Bug 1561705: Part 2 - Use regular SpecialPowers actor for browser chrome tests. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D42179

--HG--
extra : rebase_source : 319e389d7c38d919b2c5d474aa8417f443f94fb4
extra : source : 080ff558e41aad0cf05ca896c7f98bf4c9a2e7e9
2019-08-14 16:14:02 -07:00
Abdoulaye O. Ly 55e51c578b Bug 1562990 - Remove 'audioMuted' and 'audioVolume' properties from nsIDOMWindowUtils. r=NeilDeakin,alwu,farre
While working on porting the (audio-playback indicators) bug 1562990 to fission, we saw the potential to delete some methods in nsIDOMWindowUtils because they were not used anymore in our codebase except in a couple of tests files. So now, we should only mute/unmute or change the volume in the parent process. As such, interfaces are added in SpecialPowers to change media muted or volume state from content processes.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 21:17:21 +00:00
Jan Varga aa80f82948 Bug 1570644 - Part 2: Fix a regression caused by bug 1541557 part 7; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D42465

--HG--
extra : rebase_source : 6043020519037ae58a4164467c519a1ab7bfc7bc
2019-08-19 10:26:31 +02:00