Bug 1414776 - [fxui] Reset security.mixed_content.upgrade_display_content preference for mixed content test.
MozReview-Commit-ID: IOIFyH5ilPp
--- a/testing/firefox-ui/tests/functional/security/test_mixed_content_page.py
+++ b/testing/firefox-ui/tests/functional/security/test_mixed_content_page.py
@@ -7,23 +7,26 @@ from marionette_harness import Marionett
class TestMixedContentPage(PuppeteerMixin, MarionetteTestCase):
def setUp(self):
super(TestMixedContentPage, self).setUp()
self.marionette.set_pref('security.mixed_content.upgrade_display_content', False)
+
self.locationbar = self.browser.navbar.locationbar
self.identity_popup = self.locationbar.identity_popup
self.url = 'https://mixed.badssl.com'
def tearDown(self):
try:
+ self.marionette.clear_pref('security.mixed_content.upgrade_display_content')
+
self.identity_popup.close(force=True)
finally:
super(TestMixedContentPage, self).tearDown()
def test_mixed_content(self):
with self.marionette.using_context('content'):
self.marionette.navigate(self.url)