Commit graph

185 commits

Author SHA1 Message Date
Prathiksha
68615f1636 Bug 1192927 - Remove plugins specific code and initialize the flash plugin row in Page Info and support flash in Site Identity. r=Felipe,johannh
MozReview-Commit-ID: 7CLfN4Io0ez

--HG--
extra : rebase_source : 8af54d5a3e4c35113f54b4fcc0ae05b47c0ce60a
2018-02-18 00:20:11 +05:30
Andreea Pavel
1eb964c5f3 Backed out changeset 8e5b1525be69 (bug 1192927) or failing testing\firefox-ui\tests\functional\security\test_no_certificate.py TestNoCertificate.test_no_certificate on a CLOSED TREE 2018-03-02 13:51:15 +02:00
Prathiksha
30e02230c8 Bug 1192927 - Remove plugins specific code and initialize the flash plugin row in Page Info and support flash in Site Identity. r=Felipe,johannh
MozReview-Commit-ID: 3KUbgencO3M

--HG--
extra : rebase_source : d8cbf97c6764fd3700a7cbc6d5dc19565b97bad1
2018-02-18 00:20:11 +05:30
Florian Quèze
c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Jared Wein
b433816cb9 Bug 1436575 - Clean up some of the autofix changes from no-compare-against-boolean-literal. r=standard8
MozReview-Commit-ID: 7Q8YBxEzbHr

--HG--
extra : rebase_source : 577a056f83ba6af6e92e0f2417ab202baa3047a9
2018-02-08 13:15:26 -05:00
Jared Wein
c8d331f4c9 Bug 1436575 - Autofix errors from no-compare-against-boolean-literal. r=standard8
MozReview-Commit-ID: 66sXxnOWDgw

--HG--
extra : rebase_source : a0bf26e37a03a1e77476bdeedfc1af3ebec32f2a
2018-02-08 12:57:31 -05:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Johann Hofmann
2d00c76435 Bug 1167238 - Part 5 - Clean up sanitize.js usage in remaining tests. r=mak
This cleans up all tests that were not moved into the sanitize directory
as part of the previous commit, but still use sanitize.js

MozReview-Commit-ID: 1CVa0ByVYDk

--HG--
extra : rebase_source : 457e8ba671d3f5577c1ce3fe8536c82096a7f36b
2018-01-18 16:06:52 +01:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Sylvestre Ledru
4b189b7baf Bug 1278282 - Update of the tests to reflect the removal of the gtk2 r=lsalzman
MozReview-Commit-ID: Htgc44dCEjX

--HG--
extra : rebase_source : 55ce6a6a72c36cbfdbeef08fe58d11f2053dc35f
2018-01-10 08:55:38 +01:00
Florian Quèze
1158645bdd Bug 592653 - script-generated patch to replace gPrefService with Services.prefs, r=Standard8. 2017-12-19 23:45:10 +01:00
Bill McCloskey
9f4d083047 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-07 12:55:24 -08:00
Andreea Pavel
89531e8dc3 Backed out 9 changesets (bug 1412456) for crashing talos g2 and unexpected network connections in browser-chrome's browser_searchEngine_behaviors.js r=backout a=backout on a CLOSED TREE
Backed out changeset 0c01a98f4fd5 (bug 1412456)
Backed out changeset 27077db47231 (bug 1412456)
Backed out changeset f35ec2a884f8 (bug 1412456)
Backed out changeset 602b30ac3c69 (bug 1412456)
Backed out changeset b1ff1050c589 (bug 1412456)
Backed out changeset f100d953f9eb (bug 1412456)
Backed out changeset d85af60fe259 (bug 1412456)
Backed out changeset 736f38486832 (bug 1412456)
Backed out changeset 13a637602dc2 (bug 1412456)
2017-12-07 12:20:21 +02:00
Bill McCloskey
bef7c122df Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 21:17:05 -08:00
Dorel Luca
eb65c24c7b Backed out 8 changesets (bug 1412456) for ESlint failure on browser_urlbarKeepStateAcrossTabSwitches.js:13:49 r=backout on a CLOSED TREE
Backed out changeset 0e88de036c55 (bug 1412456)
Backed out changeset 49b93f807db0 (bug 1412456)
Backed out changeset 039e980b7dc6 (bug 1412456)
Backed out changeset c7698410ddbd (bug 1412456)
Backed out changeset e56a1ba26b7c (bug 1412456)
Backed out changeset 0c4506e124ac (bug 1412456)
Backed out changeset a7aec2ce903b (bug 1412456)
Backed out changeset 3e9fb71f1e8e (bug 1412456)
2017-12-07 07:09:33 +02:00
Bill McCloskey
be77cf4a01 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 20:46:58 -08:00
Mark Banner
f99ae4c2a9 Bug 1421376 - Change various instances of manually calling getService to use Services.jsm in browser/. r=mossop
MozReview-Commit-ID: FW3X2fkOwK2

--HG--
extra : rebase_source : f71e053e18017d675d4ea4d758e2552adcf5adc6
2017-11-28 19:21:33 +00:00
Dan Banner
b2e847755c Bug 1367704 - Enable the semi ESLint rule across the tree. r=standard8
MozReview-Commit-ID: GrlcOI9K2hJ

--HG--
extra : rebase_source : 6574cf3c67eb11733ffd9999c260f71c8551abc4
2017-05-28 19:57:46 +01:00
Gabriele Svelto
bc53261f5a Bug 1152811 - Re-enable browser_pluginCrashReportNonDeterminism.js; r=mconley
MozReview-Commit-ID: FgGqZG11V1H

--HG--
extra : rebase_source : 4b965c71156699f736f9bc0db25a52a8aae98636
2017-11-15 11:20:21 +01:00
Gabriele Svelto
7134a83dc0 Bug 1416028 - Prevent browser_pluginCrashedCommentAndURL.js from leaking crash dump files; r=mconley
This patch also checks for I/O errors when deleting leftover crashdump files
in the test harness and reports them if the files couldn't be deleted. This
won't prevent tests from leaking crash dumps if they're not written correctly,
but it will make their presence visible and won't cause the harness to hang if
it cannot delete them.

MozReview-Commit-ID: FLvBJxEKkH5

--HG--
extra : rebase_source : 6a0242b670ceabc2307c5345b0ea7108857a10d2
extra : source : 95b1010395826d06cdc77cbf43faf7d8681504eb
2017-11-06 16:16:13 +01:00
Felipe Gomes
6035c62637 Bug 1409148 - Add test to ensure that the plugin overlay is displayed in the correct style. r=johannh
MozReview-Commit-ID: Hn9HtnJvbyC

--HG--
extra : rebase_source : 5f269236f2068bf93e31741c487a40b524779814
2017-11-10 14:05:05 -02:00
Felipe Gomes
20db5d5395 Bug 1409148 - Add dynamic sizing on the plugin overlay. r=dthayer,johannh
MozReview-Commit-ID: 9cxCs9GeJY8

--HG--
extra : rebase_source : 01058d3f077244826a30e9ab2c1a9ecd490c9efe
2017-11-10 14:05:04 -02:00
Sebastian Hengst
9d26579fa1 Backed out 6 changesets (bug 1409148) for failing mochitest caps/tests/mochitest/test_bug292789.html on Android. r=backout on a CLOSED TREE
Backed out changeset 6fe2a24e51ca (bug 1409148)
Backed out changeset 0b032b6e0655 (bug 1409148)
Backed out changeset 78eebd668bf1 (bug 1409148)
Backed out changeset acfd8cf8c4ec (bug 1409148)
Backed out changeset 4d486418cd55 (bug 1409148)
Backed out changeset 0da5d54d003c (bug 1409148)

--HG--
rename : toolkit/themes/shared/plugins/plugin-blocked.svg => browser/themes/shared/notification-icons/plugin-blocked.svg
rename : toolkit/themes/shared/plugins/plugin.svg => browser/themes/shared/notification-icons/plugin.svg
2017-11-10 02:59:06 +02:00
Felipe Gomes
1acca47aff Bug 1409148 - Add test to ensure that the plugin overlay is displayed in the correct style. r=johannh
MozReview-Commit-ID: E9AkKe21JSq

--HG--
extra : rebase_source : ff5af1d40724fccc737a22db398a4dc0335987cb
2017-11-09 20:17:04 -02:00
Felipe Gomes
dbd9f85e9d Bug 1409148 - Add dynamic sizing on the plugin overlay. r=dthayer,johannh
MozReview-Commit-ID: 75jMomIPAuA

--HG--
extra : rebase_source : 1b87147f0a3cf85e1356f5f3dd798bc1aa2a75ab
2017-11-09 18:39:54 -02:00
Andreea Pavel
62b7374667 Backed out 6 changesets (bug 1409148) for ESlint failure at browser/base/content/test/plugins/browser_CTP_overlay_styles.js:73 r=backout
Backed out changeset 86e066b54fc3 (bug 1409148)
Backed out changeset bd2913f16345 (bug 1409148)
Backed out changeset 331d0da78f3e (bug 1409148)
Backed out changeset 86d7f89e9cfb (bug 1409148)
Backed out changeset 9159635ae827 (bug 1409148)
Backed out changeset 59532da5ffff (bug 1409148)

--HG--
rename : toolkit/themes/shared/plugins/plugin-blocked.svg => browser/themes/shared/notification-icons/plugin-blocked.svg
rename : toolkit/themes/shared/plugins/plugin.svg => browser/themes/shared/notification-icons/plugin.svg
extra : rebase_source : 62b608b3daa611c3b06c3912e9b84db0cb6710ba
2017-11-09 23:42:41 +02:00
Felipe Gomes
6fe8468b8c Bug 1409148 - Add test to ensure that the plugin overlay is displayed in the correct style. r=johannh
MozReview-Commit-ID: BsxyPbml3l6

--HG--
extra : rebase_source : 078cb4aa0d44d51880cb0f51baaf2a2227a8cb5b
2017-11-09 18:39:57 -02:00
Felipe Gomes
db6bd6c5cf Bug 1409148 - Add dynamic sizing on the plugin overlay. r=dthayer,johannh
MozReview-Commit-ID: 75jMomIPAuA

--HG--
extra : rebase_source : 1b87147f0a3cf85e1356f5f3dd798bc1aa2a75ab
2017-11-09 18:39:54 -02:00
Doug Thayer
de9d4008af Bug 1398972 - Plugin doorhanger test cleanup r=Felipe
MozReview-Commit-ID: BNIFILtPWwP

--HG--
extra : rebase_source : 43cac9498a570a38737c9c8c59735c9586c6999a
2017-10-31 11:40:20 -07:00
Gabriele Svelto
84b68b502d Bug 1393800 - Have mochitests expecting crashes wait for the crashes to be recorded before clean up; r=mconley
This patch includes a bunch of somewhat related fixes, these are:

- Ensuring that when a mochitest calls SimpleTest.expectChildProcessCrash()
  the harness will wait for the crashes to be recorded before deleting the
  dump files. This involves a message round-trip between the content and
  parent process so to minimize its performance impact on all the non-crashing
  tests it is done only when required.
- As an additional optimization, the SimpleTest harness will not send a
  message to the content process anymore whenever it receives an
  ipc:content-shutdown event, instead it does it only for abnormal shutdowns.
- Manually fixing remaining mochitests causing crashes to wait for crashes to
  be recorded before finishing and deleting the dump files.
- Modifying BrowserTestUtils.crashBrowser() so that it optionally does not
  delete the dump files, this is useful for tests that submit their dumps and
  thus delete them on their own.


MozReview-Commit-ID: 4SLJ8BjJ18n

--HG--
extra : source : b5452a41bb962c6929292c5c538e19ac28d84fe7
2017-08-25 12:47:09 +02:00
Felipe Gomes
141837449a Bug 1405655 - Only hide Flash Activation overlay UI if the entire plugin is covered. r=dthayer
As opposed to right now where we hide if any of the corners or the center of the plugin is covered.

MozReview-Commit-ID: 9mOVXYyV1Il

--HG--
extra : rebase_source : 3a6bcd34e939924ef068b0c3d3230c1f9391a3a4
2017-10-17 12:10:31 -02:00
Dan Banner
7caa92d5d8 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Sebastian Hengst
d2ecd83816 Backed out changeset 4b675a7f0743 (bug 1333126) 2017-08-20 20:10:56 +02:00
Carl Corcoran
ca2d011a97 Bug 1333126: plugin crash tests now wait properly for crash handling; r=gsvelto
MozReview-Commit-ID: 70AvBYhCKnE

--HG--
extra : rebase_source : 78ff19d2bf6d119a3d6d488fa198a5f6731dcf5e
2017-08-18 11:25:05 +02:00
Masatoshi Kimura
8b713b2b0f Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC

--HG--
extra : rebase_source : 412880ea27766118c38498d021331a3df6bccc70
2017-08-04 17:49:22 +09:00
Christoph Kerschbaumer
ee712ab23e Bug 1381755: Updating the data: URI inheritance security model renders test browser_CTP_data_urls.js superfluous. r=bsmedberg 2017-07-24 20:34:29 +02:00
Benjamin Smedberg
264330b206 Bug 1377036 tests - fix tests to set correct prefs for infobar tests, r=felipe
MozReview-Commit-ID: FMCP2Vecl3F

--HG--
extra : rebase_source : 75c5795d1ac9103170f6742a57c006da3257ee17
2017-06-29 15:33:17 -07:00
Gabriele Svelto
4289f3ebf7 Bug 1294025 - Ensure the test waits long enough for the success condition to be fullfilled; r=bsmedberg
MozReview-Commit-ID: 8ZerlrOgZa7

--HG--
extra : source : 6dba821aaf0469d142c6f91d4c90983aa08c237c
2017-06-15 15:16:12 +02:00
Gabriele Svelto
a51632396e Bug 1294025 - Disable browser_CTP_crashreporting.js on Linux debug builds; r=me
MozReview-Commit-ID: Dl1v53VA5OW

--HG--
extra : source : b54749bd1aeb387be7783f1bd5f347682b022de9
2017-06-14 15:00:53 +02:00
Benjamin Smedberg
a34411d4f9 Bug 1369755 test followup - the infobar no longer shows plugin-specific data, so this subtest is no longer relevant r=trivial 2017-06-09 11:48:40 -04:00
Gabriele Svelto
3148018ed7 Bug 1359326 - Run the minidump analyzer directly from the CrashService code; r=bsmedberg
This patch removes the C++ code used to run the minidump analyzer when a
content process crashes, and replaces it with JS code within the CrashService
object. This removes the need for a separate shutdown blocker in C++ code and
allows end-to-end testing of the crash service functionality. Additionally
the exception handler code can be simplified since it's now only used to run
the crash reporter client.

The test added to test_crash_service.js covers computing the minidump SHA256
hash (bug 1322611) and of the minidump analyzer itself (bug 1280477).

MozReview-Commit-ID: LO5w839NHev
2017-05-11 14:03:50 +02:00
Chris Pearce
abe687ad09 Bug 1334111 - Test for EME persistentState being rejected in Private Browsing mode. r=Gijs
MozReview-Commit-ID: Hyy9yDuIToX

--HG--
extra : rebase_source : 268f9e0eee2a84ee6988ef35afe2eecf57d377d6
2017-05-29 14:04:58 +12:00
Chris Pearce
f655fd10eb Bug 1366167 - Test for Enable DRM prompt. r=Gijs
We recently accidentally broke the "Enable DRM" prompt without realising, so
this adds a test that if EME is disabled and is attempted to be used we we
prompt the user to enable EME.

It is important we don't regress this feature as without it users with DRM
disabled (which is our Linux popuation by default) may try to playback DRM
protected video and it won't work and there won't be an obvious way to make it
work.

MozReview-Commit-ID: D4X7D4wkwRy

--HG--
extra : rebase_source : d0c7bf45c0a3b4ffb517a3b7c008230bd750fc8d
2017-05-19 15:44:15 +12:00
Felipe Gomes
b5204da9bc Bug 1364505 - Write tests for plugin favor-fallback mode. r=qDot
MozReview-Commit-ID: AefeRMb9t9q

--HG--
rename : layout/generic/crashtests/simple_blank.swf => browser/base/content/test/plugins/plugin_simple_blank.swf
2017-05-16 22:56:22 -03:00
Christoph Kerschbaumer
e4f38c8d7c Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +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