Bug 1680637 Comment 9 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Backed out 3 changesets (bug 1680637, bug 1682395) for browser/base/content/* failures.

Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&fromchange=7509aacc91b609dd6ccbc1bdffc5594cd4f878c4&searchStr=browser%2Cchrome&selectedTaskRun=YRJ8gy8jS7y0sLIKWci4XA.0&tochange=f493f8c4736ffa35a02dd0ff7ae96da61b15cc8b

Backout link: https://hg.mozilla.org/integration/autoland/rev/f493f8c4736ffa35a02dd0ff7ae96da61b15cc8b

Failure log: https://treeherder.mozilla.org/logviewer?job_id=326382944&repo=autoland&lineNumber=1786

```
[task 2021-01-11T19:02:40.887Z] 19:02:40     INFO - TEST-START | browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js
[task 2021-01-11T19:03:25.911Z] 19:03:25     INFO - TEST-INFO | started process screenshot
[task 2021-01-11T19:03:25.982Z] 19:03:25     INFO - TEST-INFO | screenshot: exit 0
[task 2021-01-11T19:03:25.982Z] 19:03:25     INFO - Buffered messages logged at 19:02:40
[task 2021-01-11T19:03:25.982Z] 19:03:25     INFO - Entering test bound closeLastTabInWindow
[task 2021-01-11T19:03:25.982Z] 19:03:25     INFO - Buffered messages logged at 19:02:41
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - Wait tab event: load
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - Tab event received: load
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - Buffered messages finished
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js | Test timed out - 
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - GECKO(1388) | MEMORY STAT | vsize 2104228MB | vsizeMaxContiguous 69398365MB | residentFast 271MB | heapAllocated 87MB
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - TEST-OK | browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js | took 45052ms
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - checking window state
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-01-11T19:03:25.984Z] 19:03:25     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js | Found a browser window after previous test timed out - 
[task 2021-01-11T19:03:25.984Z] 19:03:25     INFO - GECKO(1388) | JavaScript error: chrome://global/content/elements/browser-custom-element.js, line 1642: Error: permitUnload is already running for this tab.
[task 2021-01-11T19:03:25.984Z] 19:03:25     INFO - GECKO(1388) | must wait for focus
[task 2021-01-11T19:03:25.984Z] 19:03:25     INFO - GECKO(1388) | JavaScript error: chrome://global/content/elements/browser-custom-element.js, line 1696: uncaught exception: undefined
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - Console message: [JavaScript Error: "Error: permitUnload is already running for this tab." {file: "chrome://global/content/elements/browser-custom-element.js" line: 1642}]
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - asyncPermitUnload@chrome://global/content/elements/browser-custom-element.js:1642:15
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - permitUnload@chrome://global/content/elements/browser-custom-element.js:1676:14
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - CanCloseWindow@chrome://browser/content/browser.js:7869:36
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - canClose@chrome://browser/content/browser.js:6252:12
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - Tester_waitForWindowsState@chrome://mochikit/content/browser-test.js:460:13
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - nextTest@chrome://mochikit/content/browser-test.js:819:10
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - permitUnload@chrome://global/content/elements/browser-custom-element.js:1690:21
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - _beginRemoveTab@chrome://browser/content/tabbrowser.js:3446:40
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - removeTab@chrome://browser/content/tabbrowser.js:3340:15
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - on_click@chrome://browser/content/tabbrowser-tab.js:431:20
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - handleEvent@chrome://global/content/customElements.js:466:27
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - closeLastTabInWindow@chrome://mochitests/content/browser/browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js:40:24
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - 
[task 2021-01-11T19:03:26.019Z] 19:03:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-01-11T19:03:26.019Z] 19:03:26     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js | Uncaught exception received from previously timed out test - at chrome://mochitests/content/browser/browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js:42 - ReferenceError: ok is not defined
[task 2021-01-11T19:03:26.019Z] 19:03:26     INFO - Stack trace:
[task 2021-01-11T19:03:26.019Z] 19:03:26     INFO - closeLastTabInWindow@chrome://mochitests/content/browser/browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js:42:3
[task 2021-01-11T19:03:26.044Z] 19:03:26     INFO - TEST-START | browser/base/content/test/general/browser_bug1299667.js
[task 2021-01-11T19:03:28.053Z] 19:03:28     INFO - GECKO(1388) | MEMORY STAT | vsize 2104219MB | vsizeMaxContiguous 69398365MB | residentFast 269MB | heapAllocated 88MB
[task 2021-01-11T19:03:28.053Z] 19:03:28     INFO - TEST-OK | browser/base/content/test/general/browser_bug1299667.js | took 2010ms
[task 2021-01-11T19:03:28.072Z] 19:03:28     INFO - checking window state
[task 2021-01-11T19:03:28.082Z] 19:03:28     INFO - TEST-START | browser/base/content/test/general/browser_bug356571.js
[task 2021-01-11T19:03:28.132Z] 19:03:28     INFO - GECKO(1388) | MEMORY STAT | vsize 2104219MB | vsizeMaxContiguous 69398365MB | residentFast 270MB | heapAllocated 88MB
[task 2021-01-11T19:03:28.132Z] 19:03:28     INFO - TEST-OK | browser/base/content/test/general/browser_bug356571.js | took 49ms
[task 2021-01-11T19:03:28.151Z] 19:03:28     INFO - checking window state
[task 2021-01-11T19:03:28.161Z] 19:03:28     INFO - TEST-START | browser/base/content/test/general/browser_bug380960.js
[task 2021-01-11T19:03:28.241Z] 19:03:28     INFO - GECKO(1388) | MEMORY STAT | vsize 2104219MB | vsizeMaxContiguous 69398365MB | residentFast 270MB | heapAllocated 89MB
[task 2021-01-11T19:03:28.241Z] 19:03:28     INFO - TEST-OK | browser/base/content/test/general/browser_bug380960.js | took 80ms
...
```

Also seeing the following starting to perma fail with the backed out changes: 
https://treeherder.mozilla.org/logviewer?job_id=326382947&repo=autoland&lineNumber=2330
Backed out 3 changesets (bug 1680637, bug 1682395) for browser/base/content/* failures.

Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&fromchange=7509aacc91b609dd6ccbc1bdffc5594cd4f878c4&searchStr=browser%2Cchrome&selectedTaskRun=YRJ8gy8jS7y0sLIKWci4XA.0&tochange=f493f8c4736ffa35a02dd0ff7ae96da61b15cc8b

Backout link: https://hg.mozilla.org/integration/autoland/rev/f493f8c4736ffa35a02dd0ff7ae96da61b15cc8b

Failure log: https://treeherder.mozilla.org/logviewer?job_id=326382944&repo=autoland&lineNumber=1786

```
[task 2021-01-11T19:02:40.887Z] 19:02:40     INFO - TEST-START | browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js
[task 2021-01-11T19:03:25.911Z] 19:03:25     INFO - TEST-INFO | started process screenshot
[task 2021-01-11T19:03:25.982Z] 19:03:25     INFO - TEST-INFO | screenshot: exit 0
[task 2021-01-11T19:03:25.982Z] 19:03:25     INFO - Buffered messages logged at 19:02:40
[task 2021-01-11T19:03:25.982Z] 19:03:25     INFO - Entering test bound closeLastTabInWindow
[task 2021-01-11T19:03:25.982Z] 19:03:25     INFO - Buffered messages logged at 19:02:41
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - Wait tab event: load
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - Tab event received: load
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - Buffered messages finished
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js | Test timed out - 
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - GECKO(1388) | MEMORY STAT | vsize 2104228MB | vsizeMaxContiguous 69398365MB | residentFast 271MB | heapAllocated 87MB
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - TEST-OK | browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js | took 45052ms
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - checking window state
[task 2021-01-11T19:03:25.983Z] 19:03:25     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-01-11T19:03:25.984Z] 19:03:25     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js | Found a browser window after previous test timed out - 
[task 2021-01-11T19:03:25.984Z] 19:03:25     INFO - GECKO(1388) | JavaScript error: chrome://global/content/elements/browser-custom-element.js, line 1642: Error: permitUnload is already running for this tab.
[task 2021-01-11T19:03:25.984Z] 19:03:25     INFO - GECKO(1388) | must wait for focus
[task 2021-01-11T19:03:25.984Z] 19:03:25     INFO - GECKO(1388) | JavaScript error: chrome://global/content/elements/browser-custom-element.js, line 1696: uncaught exception: undefined
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - Console message: [JavaScript Error: "Error: permitUnload is already running for this tab." {file: "chrome://global/content/elements/browser-custom-element.js" line: 1642}]
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - asyncPermitUnload@chrome://global/content/elements/browser-custom-element.js:1642:15
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - permitUnload@chrome://global/content/elements/browser-custom-element.js:1676:14
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - CanCloseWindow@chrome://browser/content/browser.js:7869:36
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - canClose@chrome://browser/content/browser.js:6252:12
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - Tester_waitForWindowsState@chrome://mochikit/content/browser-test.js:460:13
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - nextTest@chrome://mochikit/content/browser-test.js:819:10
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - permitUnload@chrome://global/content/elements/browser-custom-element.js:1690:21
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - _beginRemoveTab@chrome://browser/content/tabbrowser.js:3446:40
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - removeTab@chrome://browser/content/tabbrowser.js:3340:15
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - on_click@chrome://browser/content/tabbrowser-tab.js:431:20
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - handleEvent@chrome://global/content/customElements.js:466:27
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - closeLastTabInWindow@chrome://mochitests/content/browser/browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js:40:24
[task 2021-01-11T19:03:26.009Z] 19:03:26     INFO - 
[task 2021-01-11T19:03:26.019Z] 19:03:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-01-11T19:03:26.019Z] 19:03:26     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js | Uncaught exception received from previously timed out test - at chrome://mochitests/content/browser/browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js:42 - ReferenceError: ok is not defined
[task 2021-01-11T19:03:26.019Z] 19:03:26     INFO - Stack trace:
[task 2021-01-11T19:03:26.019Z] 19:03:26     INFO - closeLastTabInWindow@chrome://mochitests/content/browser/browser/base/content/test/general/browser_beforeunload_duplicate_dialogs.js:42:3
[task 2021-01-11T19:03:26.044Z] 19:03:26     INFO - TEST-START | browser/base/content/test/general/browser_bug1299667.js
[task 2021-01-11T19:03:28.053Z] 19:03:28     INFO - GECKO(1388) | MEMORY STAT | vsize 2104219MB | vsizeMaxContiguous 69398365MB | residentFast 269MB | heapAllocated 88MB
[task 2021-01-11T19:03:28.053Z] 19:03:28     INFO - TEST-OK | browser/base/content/test/general/browser_bug1299667.js | took 2010ms
[task 2021-01-11T19:03:28.072Z] 19:03:28     INFO - checking window state
[task 2021-01-11T19:03:28.082Z] 19:03:28     INFO - TEST-START | browser/base/content/test/general/browser_bug356571.js
[task 2021-01-11T19:03:28.132Z] 19:03:28     INFO - GECKO(1388) | MEMORY STAT | vsize 2104219MB | vsizeMaxContiguous 69398365MB | residentFast 270MB | heapAllocated 88MB
[task 2021-01-11T19:03:28.132Z] 19:03:28     INFO - TEST-OK | browser/base/content/test/general/browser_bug356571.js | took 49ms
[task 2021-01-11T19:03:28.151Z] 19:03:28     INFO - checking window state
[task 2021-01-11T19:03:28.161Z] 19:03:28     INFO - TEST-START | browser/base/content/test/general/browser_bug380960.js
[task 2021-01-11T19:03:28.241Z] 19:03:28     INFO - GECKO(1388) | MEMORY STAT | vsize 2104219MB | vsizeMaxContiguous 69398365MB | residentFast 270MB | heapAllocated 89MB
[task 2021-01-11T19:03:28.241Z] 19:03:28     INFO - TEST-OK | browser/base/content/test/general/browser_bug380960.js | took 80ms
...
```

Also seeing the following starting to perma fail with the backed out changes: 
https://treeherder.mozilla.org/logviewer?job_id=326382947&repo=autoland&lineNumber=2330
https://treeherder.mozilla.org/logviewer?job_id=326382922&repo=autoland&lineNumber=12781

Back to Bug 1680637 Comment 9