Closed Bug 1778978 Opened 2 years ago Closed 2 years ago

Perma browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js | There should be page scripts. - false == true - got false, expected true (operator ==) when Gecko 104 merges to Beta on 2022-07-25

Categories

(Firefox :: New Tab Page, defect)

defect

Tracking

()

VERIFIED FIXED
104 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox-esr102 --- unaffected
firefox102 --- unaffected
firefox103 --- unaffected
firefox104 + verified

People

(Reporter: noriszfay, Assigned: barret)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

Central-as-beta simulation

How to run these simulations

Failure log:

[task 2022-07-11T10:54:40.805Z] 10:54:40     INFO - TEST-START | browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js
[task 2022-07-11T10:54:40.834Z] 10:54:40     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f64e8278000 == 10 [pid = 10789] [id = 11]
[task 2022-07-11T10:54:40.836Z] 10:54:40     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 43 (7f64e9754de0) [pid = 10789] [serial = 44] [outer = 0]
[task 2022-07-11T10:54:40.838Z] 10:54:40     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 44 (7f64e8278c00) [pid = 10789] [serial = 45] [outer = 7f64e9754de0]
[task 2022-07-11T10:54:40.859Z] 10:54:40     INFO - GECKO(10694) | [Child 10845, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-07-11T10:54:40.968Z] 10:54:40     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 45 (7f64e827ac00) [pid = 10789] [serial = 46] [outer = 7f64e9754de0]
[task 2022-07-11T10:54:41.535Z] 10:54:41     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 46 (7f64e827dc00) [pid = 10789] [serial = 47] [outer = 7f64e9754de0]
[task 2022-07-11T10:54:41.909Z] 10:54:41     INFO - GECKO(10694) | [Child 10869: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7f0d2c028800) [pid = 10869] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-07-11T10:54:41.912Z] 10:54:41     INFO - GECKO(10694) | [Child 10869: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f0d11142800 == 0 [pid = 10869] [id = 1] [url = about:blank]
[task 2022-07-11T10:54:41.987Z] 10:54:41     INFO - TEST-INFO | started process screentopng
[task 2022-07-11T10:54:42.587Z] 10:54:42     INFO - TEST-INFO | screentopng: exit 0
[task 2022-07-11T10:54:42.588Z] 10:54:42     INFO - Buffered messages logged at 10:54:40
[task 2022-07-11T10:54:42.589Z] 10:54:42     INFO - Entering test bound test_locale_change
[task 2022-07-11T10:54:42.591Z] 10:54:42     INFO - Console message: [JavaScript Error: "TypeError: browser is null" {file: "resource:///actors/ContentSearchParent.jsm" line: 669}]
[task 2022-07-11T10:54:42.591Z] 10:54:42     INFO - receiveMessage@resource:///actors/ContentSearchParent.jsm:669:5
[task 2022-07-11T10:54:42.592Z] 10:54:42     INFO - 
[task 2022-07-11T10:54:42.593Z] 10:54:42     INFO - Console message: [JavaScript Error: "TypeError: browser is null" {file: "resource:///actors/ContentSearchParent.jsm" line: 669}]
[task 2022-07-11T10:54:42.593Z] 10:54:42     INFO - receiveMessage@resource:///actors/ContentSearchParent.jsm:669:5
[task 2022-07-11T10:54:42.593Z] 10:54:42     INFO - 
[task 2022-07-11T10:54:42.595Z] 10:54:42     INFO - Buffered messages logged at 10:54:41
[task 2022-07-11T10:54:42.595Z] 10:54:42     INFO - Simulating restart of the browser
[task 2022-07-11T10:54:42.595Z] 10:54:42     INFO - Intentionally skipping shutdown write
[task 2022-07-11T10:54:42.602Z] 10:54:42     INFO - Waiting for AboutHomeStartupCacheChild to uninit
[task 2022-07-11T10:54:42.602Z] 10:54:42     INFO - AboutHomeStartupCacheChild uninitted
[task 2022-07-11T10:54:42.602Z] 10:54:42     INFO - Waiting for about:home to load
[task 2022-07-11T10:54:42.602Z] 10:54:42     INFO - about:home loaded
[task 2022-07-11T10:54:42.602Z] 10:54:42     INFO - Buffered messages finished
[task 2022-07-11T10:54:42.602Z] 10:54:42     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js | There should be page scripts. - false == true - got false, expected true (operator ==)
[task 2022-07-11T10:54:42.602Z] 10:54:42     INFO - Stack trace:
[task 2022-07-11T10:54:42.603Z] 10:54:42     INFO - @chrome://mochitests/content/browser/browser/components/newtab/test/browser/abouthomecache/head.js:254:12
[task 2022-07-11T10:54:42.603Z] 10:54:42     INFO - execute@resource://specialpowers/SpecialPowersSandbox.jsm:143:12
[task 2022-07-11T10:54:42.603Z] 10:54:42     INFO - _spawnTask@resource://specialpowers/SpecialPowersChild.jsm:1640:15
[task 2022-07-11T10:54:42.603Z] 10:54:42     INFO - receiveMessage@resource://specialpowers/SpecialPowersChild.jsm:298:21
[task 2022-07-11T10:54:42.603Z] 10:54:42     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-07-11T10:54:42.607Z] 10:54:42     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js | Uncaught exception in test - at chrome://mochitests/content/browser/browser/components/newtab/test/browser/abouthomecache/head.js:257 - TypeError: lastScript is undefined
[task 2022-07-11T10:54:42.607Z] 10:54:42     INFO - Stack trace:
[task 2022-07-11T10:54:42.608Z] 10:54:42     INFO - @chrome://mochitests/content/browser/browser/components/newtab/test/browser/abouthomecache/head.js:257:1
[task 2022-07-11T10:54:42.609Z] 10:54:42     INFO - execute@resource://specialpowers/SpecialPowersSandbox.jsm:143:12
[task 2022-07-11T10:54:42.609Z] 10:54:42     INFO - _spawnTask@resource://specialpowers/SpecialPowersChild.jsm:1640:15
[task 2022-07-11T10:54:42.609Z] 10:54:42     INFO - receiveMessage@resource://specialpowers/SpecialPowersChild.jsm:298:21
[task 2022-07-11T10:54:42.614Z] 10:54:42     INFO - Leaving test bound test_locale_change
[task 2022-07-11T10:54:42.615Z] 10:54:42     INFO - GECKO(10694) | MEMORY STAT | vsize 3015MB | residentFast 426MB | heapAllocated 182MB
[task 2022-07-11T10:54:42.616Z] 10:54:42     INFO - TEST-OK | browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js | took 1234ms
[task 2022-07-11T10:54:42.616Z] 10:54:42     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-07-11T10:54:42.617Z] 10:54:42     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/abouthomecache/browser_locale_change.js | Found an unexpected tab at the end of test run: about:home - 
[task 2022-07-11T10:54:42.618Z] 10:54:42     INFO - GECKO(10694) | [Child 10789, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-07-11T10:54:42.619Z] 10:54:42     INFO - GECKO(10694) | [Child 10869: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f0d11143c00 == 1 [pid = 10869] [id = 2]
[task 2022-07-11T10:54:42.620Z] 10:54:42     INFO - GECKO(10694) | [Child 10869: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (7f0d2c0919f0) [pid = 10869] [serial = 5] [outer = 0]
[task 2022-07-11T10:54:42.620Z] 10:54:42     INFO - GECKO(10694) | [Child 10869: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (7f0d11144000) [pid = 10869] [serial = 6] [outer = 7f0d2c0919f0]
[task 2022-07-11T10:54:42.621Z] 10:54:42     INFO - GECKO(10694) | [Child 10845: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (7f7b21892130) [pid = 10845] [serial = 4] [outer = 0] [url = about:blank]
[task 2022-07-11T10:54:42.622Z] 10:54:42     INFO - GECKO(10694) | [Child 10845, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-07-11T10:54:42.623Z] 10:54:42     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f64ea7c8800 == 9 [pid = 10789] [id = 6] [url = about:home]
[task 2022-07-11T10:54:42.623Z] 10:54:42     INFO - checking window state
[task 2022-07-11T10:54:42.624Z] 10:54:42     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f64eacdb800 == 8 [pid = 10789] [id = 4] [url = about:home]
[task 2022-07-11T10:54:42.625Z] 10:54:42     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f64ea7c1c00 == 7 [pid = 10789] [id = 5] [url = about:home]
[task 2022-07-11T10:54:42.626Z] 10:54:42     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f64eacd4800 == 6 [pid = 10789] [id = 3] [url = about:home]
[task 2022-07-11T10:54:42.627Z] 10:54:42     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f64e9722000 == 5 [pid = 10789] [id = 7] [url = about:home]
[task 2022-07-11T10:54:42.628Z] 10:54:42     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 45 (7f64ece83800) [pid = 10789] [serial = 9] [outer = 0] [url = about:home]
[task 2022-07-11T10:54:42.629Z] 10:54:42     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 44 (7f64eacd4c00) [pid = 10789] [serial = 13] [outer = 0] [url = about:blank]
[task 2022-07-11T10:54:42.630Z] 10:54:42     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 43 (7f64ece82c00) [pid = 10789] [serial = 8] [outer = 0] [url = about:blank]
[task 2022-07-11T10:54:42.631Z] 10:54:42     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 42 (7f64ece7ec00) [pid = 10789] [serial = 5] [outer = 0] [url = about:blank]
[task 2022-07-11T10:54:42.631Z] 10:54:42     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 41 (7f64ee074c00) [pid = 10789] [serial = 3] [outer = 0] [url = about:home]
[task 2022-07-11T10:54:42.632Z] 10:54:42     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 40 (7f64f2f44400) [pid = 10789] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-07-11T10:54:42.633Z] 10:54:42     INFO - GECKO(10694) | [Child 10789: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f64e9726800 == 4 [pid = 10789] [id = 8] [url = about:home]
[task 2022-07-11T10:54:42.634Z] 10:54:42     INFO - TEST-START | browser/components/newtab/test/browser/abouthomecache/browser_no_cache.js

Hello, could you take a look at this failure please? It seems to be caused by Bug 1776475 . Thank you!

Flags: needinfo?(brennie)

I've kicked off a try build here with some logging to investigate

The test disables the pref so that it can test the feature's interaction with
Nimbus, but didn't re-enable the pref, so tests after it would break.

Assignee: nobody → brennie
Status: NEW → ASSIGNED
Flags: needinfo?(brennie)

The patch seems to be working on today's beta-sim

Comment on attachment 9285039 [details]
Bug 1778978 - Re-enable abouthomecache pref after running browser_experiments_api_control.js r?emcminn

Beta/Release Uplift Approval Request

  • User impact if declined: None, this is test-only
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This only affects unit tests.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9285039 - Flags: approval-mozilla-beta?
Pushed by brennie@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4669968a20f7
Re-enable abouthomecache pref after running browser_experiments_api_control.js r=emcminn

Comment on attachment 9285039 [details]
Bug 1778978 - Re-enable abouthomecache pref after running browser_experiments_api_control.js r?emcminn

Rejecting beta uplift request for 103.
:barrett it looks like the regressor landed in 104, seems like this can ride the train to beta with 104?

Flags: needinfo?(brennie)
Attachment #9285039 - Flags: approval-mozilla-beta? → approval-mozilla-beta-

Ah yes you're right, sorry I got confused by the bug title

Flags: needinfo?(brennie)
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: