Closed Bug 1855588 Opened 2 years ago Closed 1 year ago

Intermittent dom/security/test/mixedcontentblocker/test_windowOpen.html | single tracking bug

Categories

(Core :: DOM: Security, defect, P5)

defect

Tracking

()

RESOLVED INCOMPLETE
Tracking Status
firefox120 --- wontfix

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: intermittent-failure, intermittent-testcase, regression, Whiteboard: [domsecurity-intermittent] [domsecurity-active][stockwell disabled])

Attachments

(2 files, 1 obsolete file)

Filed by: ctuns [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=430561649&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/arHF3DvhTDm1bJd6sgTHUA/runs/1/artifacts/public/logs/live_backing.log


[task 2023-09-28T00:26:32.653Z] 00:26:32     INFO - TEST-START | dom/security/test/mixedcontentblocker/test_windowOpen.html
[task 2023-09-28T00:26:33.298Z] 00:26:33     INFO - GECKO(8542) | JavaScript error: resource://gre/modules/XULStore.sys.mjs, line 60: Error: Can't find profile directory.
[task 2023-09-28T00:26:34.024Z] 00:26:34     INFO - TEST-INFO | started process screentopng
[task 2023-09-28T00:26:34.338Z] 00:26:34     INFO - TEST-INFO | screentopng: exit 0
[task 2023-09-28T00:26:34.338Z] 00:26:34     INFO - TEST-UNEXPECTED-FAIL | dom/security/test/mixedcontentblocker/test_windowOpen.html | error thrown for failed iframe load should be from test1's iframe. - got undefined, expected "http://test1.example.com/tests/dom/security/test/mixedcontentblocker/file_windowOpen.html"
[task 2023-09-28T00:26:34.338Z] 00:26:34     INFO - SimpleTest.is@https://example.com/tests/SimpleTest/SimpleTest.js:509:14
[task 2023-09-28T00:26:34.339Z] 00:26:34     INFO - window.onmessage@https://example.com/tests/dom/security/test/mixedcontentblocker/test_windowOpen.html:31:7
[task 2023-09-28T00:26:34.339Z] 00:26:34     INFO - EventHandlerNonNull*@https://example.com/tests/dom/security/test/mixedcontentblocker/test_windowOpen.html:28:1
[task 2023-09-28T00:26:34.339Z] 00:26:34     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-09-28T00:26:34.339Z] 00:26:34     INFO - TEST-UNEXPECTED-FAIL | dom/security/test/mixedcontentblocker/test_windowOpen.html | http iframe should be blocked from loading in child https window. - got "loaded", expected "blocked"
[task 2023-09-28T00:26:34.339Z] 00:26:34     INFO - SimpleTest.is@https://example.com/tests/SimpleTest/SimpleTest.js:509:14
[task 2023-09-28T00:26:34.339Z] 00:26:34     INFO - window.onmessage@https://example.com/tests/dom/security/test/mixedcontentblocker/test_windowOpen.html:32:7
[task 2023-09-28T00:26:34.340Z] 00:26:34     INFO - EventHandlerNonNull*@https://example.com/tests/dom/security/test/mixedcontentblocker/test_windowOpen.html:28:1
[task 2023-09-28T00:26:34.340Z] 00:26:34     INFO - TEST-PASS | dom/security/test/mixedcontentblocker/test_windowOpen.html | messages from test1 iframe should be http. 

I think this was caused by Bug 1801501, can you please take a look?
Thanks!

Flags: needinfo?(jewilde)

I'll take care of it, thanks Cristian!

Assignee: nobody → jewilde
Status: NEW → ASSIGNED
Flags: needinfo?(jewilde)
Whiteboard: [domsecurity-intermittent] → [domsecurity-intermittent] [domsecurity-active]
Attachment #9355715 - Attachment description: WIP: Bug 1855588 - Check for docShell access in MCB window open test; r=ckerschb → Bug 1855588 - Check for docShell access in MCB window open test; r=ckerschb

Hi June, there is another error on the same file path, and it turns out to be permafailing:
https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&searchStr=windows%2C11%2Cx86%2C22h2%2Cwebrender%2Copt%2Cmochitests%2Ctest-windows11-32-2009-qr%2Fopt-mochitest-plain%2C1&revision=b781e655236dff9086d1be5c4b59b0263a9cee56&selectedTaskRun=CjjV7rZWQC-kCZxfc0Mqjg.0

Failure line: TEST-UNEXPECTED-FAIL | dom/security/test/mixedcontentblocker/test_windowOpen.html | uncaught exception - SecurityError: Permission denied to access property "docShell" on cross-origin object at get/<@resource://testing-common/WrapPrivileged.sys.mjs:264:25

Flags: needinfo?(jewilde)
Summary: Intermittent dom/security/test/mixedcontentblocker/test_windowOpen.html | single tracking bug → Permafailing dom/security/test/mixedcontentblocker/test_windowOpen.html | single tracking bug

This bug has been marked as a regression. Setting status flag for Nightly to affected.

Pushed by jewilde@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4293a7745d24 Check for docShell access in MCB window open test; r=ckerschb

Thanks Natalia! This patch should take care of both the intermittents and that permafail

Flags: needinfo?(jewilde)
Flags: needinfo?(jewilde)

Looking now, thanks Cristian!

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 120 Branch → ---
Pushed by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7f7fc0d8a169 Temporarily disable test_windowOpen.html on !debug because of permafailures until a fix is in place. a=test-only.
Keywords: leave-open
Whiteboard: [domsecurity-intermittent] [domsecurity-active][stockwell disable-recommended] → [domsecurity-intermittent] [domsecurity-active][stockwell disabled]

This bug has been marked as a regression. Setting status flag for Nightly to affected.

June, want to have another go at fixing this test? It was disabled because of the failure rate.

Flags: needinfo?(jewilde)
Flags: needinfo?(jewilde)

This should take care of more of the intermittents, but likely not all due to how we structure the mixed content blocker tests.
I'd like to land this to get a sense of how many intermittents are remaining and if it's still a high volume disabling the test again by adding skip if = "!debug" # Bug 1855588 back in

Flags: needinfo?(jewilde)
Pushed by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/80b460bd8e0e Fix more test_windowOpen intermittents in opt builds; r=ckerschb
Summary: Permafailing dom/security/test/mixedcontentblocker/test_windowOpen.html | single tracking bug → Intermittent dom/security/test/mixedcontentblocker/test_windowOpen.html | single tracking bug
Whiteboard: [domsecurity-intermittent] [domsecurity-active][stockwell disabled] → [domsecurity-intermittent] [domsecurity-active]

Thanks, Cosmin. I don't think I'll be able to take this one any further than this

Assignee: jewilde → nobody
Flags: needinfo?(jewilde)
Whiteboard: [domsecurity-intermittent] [domsecurity-active][stockwell disable-recommended] → [domsecurity-intermittent] [domsecurity-active][stockwell disabled]
Attachment #9387299 - Attachment is obsolete: true
Status: REOPENED → RESOLVED
Closed: 2 years ago1 year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: