Closed Bug 1312632 Opened 8 years ago Closed 5 years ago

Intermittent test_mixed_script_content_blocking.py TestMixedScriptContentBlocking.test_mixed_content_page | TimeoutException: Timed out after 5.0 seconds with message: Insecure {plugin|script one|stylesheet} has been unblocked

Categories

(Testing :: Firefox UI Tests, defect)

Version 3
defect
Not set
normal

Tracking

(firefox52 wontfix, firefox56 affected)

RESOLVED INVALID
Tracking Status
firefox52 --- wontfix
firefox56 --- affected

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: bulk-close-intermittents, intermittent-failure)

Looks like disabling protection by clicking the button didn't work in this case and protection is still enabled: [task 2016-10-25T01:40:58.426243Z] 01:40:58 INFO - TEST-UNEXPECTED-ERROR | test_mixed_script_content_blocking.py TestMixedScriptContentBlocking.test_mixed_content_page | TimeoutException: Timed out after 5.0 seconds with message: Insecure script one has been unblocked [task 2016-10-25T01:40:58.426448Z] 01:40:58 INFO - Traceback (most recent call last): [task 2016-10-25T01:40:58.426640Z] 01:40:58 INFO - File "/home/worker/workspace/build/venv/local/lib/python2.7/site-packages/marionette/marionette_test/testcases.py", line 163, in run [task 2016-10-25T01:40:58.426708Z] 01:40:58 INFO - testMethod() [task 2016-10-25T01:40:58.426855Z] 01:40:58 INFO - File "/home/worker/workspace/build/tests/firefox-ui/tests/functional/security/test_mixed_script_content_blocking.py", line 86, in test_mixed_content_page [task 2016-10-25T01:40:58.426948Z] 01:40:58 INFO - self.expect_protection_disabled() [task 2016-10-25T01:40:58.427164Z] 01:40:58 INFO - File "/home/worker/workspace/build/tests/firefox-ui/tests/functional/security/test_mixed_script_content_blocking.py", line 70, in expect_protection_disabled [task 2016-10-25T01:40:58.427293Z] 01:40:58 INFO - self._expect_protection_status(False) [task 2016-10-25T01:40:58.427484Z] 01:40:58 INFO - File "/home/worker/workspace/build/tests/firefox-ui/tests/functional/security/test_mixed_script_content_blocking.py", line 63, in _expect_protection_status [task 2016-10-25T01:40:58.427564Z] 01:40:58 INFO - message=("%s has been %s" % (description, state)) [task 2016-10-25T01:40:58.427726Z] 01:40:58 INFO - File "/home/worker/workspace/build/venv/local/lib/python2.7/site-packages/marionette_driver/wait.py", line 151, in until
Summary: Intermittent test_mixed_script_content_blocking.py TestMixedScriptContentBlocking.test_mixed_content_page | TimeoutException: Timed out after 5.0 seconds with message: Insecure script one has been unblocked → Intermittent test_mixed_script_content_blocking.py TestMixedScriptContentBlocking.test_mixed_content_page | TimeoutException: Timed out after 5.0 seconds with message: Insecure {plugin|script one} has been unblocked
Mass wontfix for bugs affecting firefox 52.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Yesterday the patch for bug 1414776 was still on central, but got backed out later. So we should keep an eye on that failure before trying to land the patch again.
Blocks: 1414776
Summary: Intermittent test_mixed_script_content_blocking.py TestMixedScriptContentBlocking.test_mixed_content_page | TimeoutException: Timed out after 5.0 seconds with message: Insecure {plugin|script one} has been unblocked → Intermittent test_mixed_script_content_blocking.py TestMixedScriptContentBlocking.test_mixed_content_page | TimeoutException: Timed out after 5.0 seconds with message: Insecure {plugin|script|stylesheet} has been unblocked
Summary: Intermittent test_mixed_script_content_blocking.py TestMixedScriptContentBlocking.test_mixed_content_page | TimeoutException: Timed out after 5.0 seconds with message: Insecure {plugin|script|stylesheet} has been unblocked → Intermittent test_mixed_script_content_blocking.py TestMixedScriptContentBlocking.test_mixed_content_page | TimeoutException: Timed out after 5.0 seconds with message: Insecure {plugin|script one|stylesheet} has been unblocked
The problem in all those cases is that the browser doens't display any content inside the tab. It's just a gray area. See this screenshot for example: https://taskcluster-artifacts.net/TQYjAyqLQEu9_a6dcGHrxQ/0/public/test_info/report.html So the test is clicking the "Disable protection for now" button (https://searchfox.org/mozilla-central/source/testing/marionette/puppeteer/firefox/firefox_puppeteer/ui/browser/toolbars.py#570), which then triggers a page load. This works fine, and the tab shows the document title, but the page stays empty, see above. At this state we can still access the DOM and retrieve the element under test: https://treeherder.mozilla.org/logviewer.html#?job_id=200337336&repo=try&lineNumber=7279-7280 But checking for it's color CSS property it always returns `rgb(0, 136, 0)`, which indicates that the content blocking hasn't been disabled. Maybe this action sometimes ends-up in a weird state? Johann, do you have an idea?
Flags: needinfo?(jhofmann)
I'm not sure if the "gray area" in that screenshot has a lot of significance, I often see that in mochitest screenshots from automation. Is there a way to locally reproduce this?
Flags: needinfo?(jhofmann)

The test will be removed on bug 1573393.

Depends on: 1573393
Status: REOPENED → RESOLVED
Closed: 7 years ago5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.