Closed Bug 1706672 Opened 4 years ago Closed 3 years ago

Intermittent browser/components/originattributes/test/browser/browser_firstPartyIsolation_saveAs.js | Test timed out -

Categories

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

defect

Tracking

()

RESOLVED INCOMPLETE
Fission Milestone Future

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure, Whiteboard: [domsecurity-intermittent])

Attachments

(1 obsolete file)

Filed by: malexandru [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=337282714&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/EtY2Ta_9Rv27DBo45C5KrQ/runs/0/artifacts/public/logs/live_backing.log


[task 2021-04-21T11:39:43.758Z] 11:39:43     INFO - TEST-OK | browser/components/originattributes/test/browser/browser_firstPartyIsolation_js_uri.js | took 1211ms
[task 2021-04-21T11:39:43.767Z] 11:39:43     INFO - checking window state
[task 2021-04-21T11:39:43.786Z] 11:39:43     INFO - TEST-START | browser/components/originattributes/test/browser/browser_firstPartyIsolation_saveAs.js
[task 2021-04-21T11:39:47.752Z] 11:39:47     INFO - GECKO(5496) | JavaScript error: resource:///actors/ContextMenuChild.jsm, line 540: TypeError: doc is null
[task 2021-04-21T11:40:28.813Z] 11:40:28     INFO - TEST-INFO | started process screenshot
[task 2021-04-21T11:40:28.871Z] 11:40:28     INFO - TEST-INFO | screenshot: exit 0
[task 2021-04-21T11:40:28.871Z] 11:40:28     INFO - Buffered messages logged at 11:39:43
[task 2021-04-21T11:40:28.871Z] 11:40:28     INFO - Entering test bound setup
[task 2021-04-21T11:40:28.871Z] 11:40:28     INFO - Setting the prefs.
[task 2021-04-21T11:40:28.871Z] 11:40:28     INFO - Setting MockFilePicker.
[task 2021-04-21T11:40:28.871Z] 11:40:28     INFO - Leaving test bound setup
[task 2021-04-21T11:40:28.872Z] 11:40:28     INFO - Entering test bound test_setup
[task 2021-04-21T11:40:28.872Z] 11:40:28     INFO - Leaving test bound test_setup
[task 2021-04-21T11:40:28.872Z] 11:40:28     INFO - Entering test bound testContextMenuSaveAs
[task 2021-04-21T11:40:28.872Z] 11:40:28     INFO - Open a new tab for testing "Save link as" in context menu.
[task 2021-04-21T11:40:28.872Z] 11:40:28     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.com/browser/browser/components/originattributes/test/browser/file_saveAs.sjs?link=1" line: 0}]
[task 2021-04-21T11:40:28.872Z] 11:40:28     INFO - Buffered messages logged at 11:39:47
[task 2021-04-21T11:40:28.873Z] 11:40:28     INFO - Open the context menu.
[task 2021-04-21T11:40:28.873Z] 11:40:28     INFO - Console message: [JavaScript Error: "TypeError: doc is null" {file: "resource:///actors/ContextMenuChild.jsm" line: 540}]
[task 2021-04-21T11:40:28.873Z] 11:40:28     INFO - handleEvent@resource:///actors/ContextMenuChild.jsm:540:9
[task 2021-04-21T11:40:28.873Z] 11:40:28     INFO - synthesizeMouseAtPoint@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:574:32
[task 2021-04-21T11:40:28.873Z] 11:40:28     INFO - synthesizeMouse/<@resource://testing-common/BrowserTestUtilsChild.jsm:334:34
[task 2021-04-21T11:40:28.873Z] 11:40:28     INFO - wrapHandlingUserInput@resource://gre/modules/E10SUtils.jsm:895:7
[task 2021-04-21T11:40:28.873Z] 11:40:28     INFO - synthesizeMouse@resource://testing-common/BrowserTestUtilsChild.jsm:330:15
[task 2021-04-21T11:40:28.873Z] 11:40:28     INFO - receiveMessage@resource://testing-common/BrowserTestUtilsChild.jsm:149:21
[task 2021-04-21T11:40:28.873Z] 11:40:28     INFO - 
[task 2021-04-21T11:40:28.873Z] 11:40:28     INFO - Buffered messages finished
[task 2021-04-21T11:40:28.873Z] 11:40:28     INFO - TEST-UNEXPECTED-FAIL | browser/components/originattributes/test/browser/browser_firstPartyIsolation_saveAs.js | Test timed out - 
[task 2021-04-21T11:40:28.874Z] 11:40:28     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-04-21T11:40:28.874Z] 11:40:28     INFO - TEST-UNEXPECTED-FAIL | browser/components/originattributes/test/browser/browser_firstPartyIsolation_saveAs.js | Uncaught exception received from previously timed out test - popupshown listener not removed before the end of test
[task 2021-04-21T11:40:28.874Z] 11:40:28     INFO - GECKO(5496) | MEMORY STAT | vsize 2104272MB | vsizeMaxContiguous 69355295MB | residentFast 273MB | heapAllocated 80MB
[task 2021-04-21T11:40:28.874Z] 11:40:28     INFO - TEST-OK | browser/components/originattributes/test/browser/browser_firstPartyIsolation_saveAs.js | took 45079ms
[task 2021-04-21T11:40:28.874Z] 11:40:28     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-04-21T11:40:28.874Z] 11:40:28     INFO - TEST-UNEXPECTED-FAIL | browser/components/originattributes/test/browser/browser_firstPartyIsolation_saveAs.js | Found a tab after previous test timed out: http://example.com/browser/browser/components/originattributes/test/browser/file_saveAs.sjs?link=1 - 
[task 2021-04-21T11:40:28.894Z] 11:40:28     INFO - checking window state
[task 2021-04-21T11:40:28.912Z] 11:40:28     INFO - TEST-START | browser/components/originattributes/test/browser/browser_httpauth.js```
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Blocks: 1713897

Tracking for Fission Milestone "Future" because these test failures all have Fission enabled, but are very rare so far.

Fission Milestone: --- → Future

This test failure happens because a native context menu refuses to close because of unfortunate nesting of native event loops, see bug 1713897 comment 7. I will look for a workaround.

Assignee: nobody → mstange.moz
Status: REOPENED → ASSIGNED
Component: DOM: Security → Widget: Cocoa

In a test app running on 11.3.1, the menu closes correctly and unwinds the stack as expected: https://share.firefox.dev/3cQR24p
Maybe this only occurs on 10.15 and earlier.
Edit: I've run the test app on 10.14 but couldn't trigger the stuckness there either. I can try on 10.15 too, but maybe the test app just doesn't trigger the right conditions.

Blocks: 1713894
Depends on: 1717129
No longer blocks: 1713894
Fission Milestone: MVP → Future

Looks like the Mac part got fixed by bug 1717129, but there are remaining failures on Windows. Let's keep this bug open to track the Windows failures.

Assignee: mstange.moz → nobody
No longer blocks: 1713897
Status: ASSIGNED → NEW
Component: Widget: Cocoa → DOM: Security
No longer depends on: 1717129
Assignee: nobody → mstange.moz
Status: NEW → ASSIGNED
Assignee: mstange.moz → nobody
Status: ASSIGNED → NEW

(In reply to Markus Stange [:mstange] from comment #12)

Looks like the Mac part got fixed by bug 1717129, but there are remaining failures on Windows. Let's keep this bug open to track the Windows failures.

Note that this test is still skipped on Mac, so we don't know that bug 1717129 fixed this test on Mac:

[browser_firstPartyIsolation_saveAs.js]
skip-if =
  fission && os == "mac" && !debug  # Bug 1713897 - new Fission platform triage

https://searchfox.org/mozilla-central/rev/94d6086481754e154b6f042820afab6bc9900a30/browser/components/originattributes/test/browser/browser.ini#82-84

Ah, right. I've put a patch to unskip the test into bug 1713897, so once that lands we can keep an eye on the test.

Depends on: 1713897
Status: NEW → RESOLVED
Closed: 4 years ago3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: