Bug: Perma /browser/browser_feature_callout.js | Uncaught exception in test - undefined - timed out after 50 tries. sometimes followed by Assertion failure: cache->PreservingWrapper(), at <.>/DOMJSProxyHandler.cpp:91 when Gecko 106 merges to Beta on 2022-09-19
Status: VERIFIED
Priority: --
Resolution: FIXED
Created: 2022-09-03 15:59:37+00:00
Resolved: 2022-09-09 12:42:51+00:00

[Tracking Requested - why for this release]:

[Central-as-beta simulation:](https://treeherder.mozilla.org/jobs?repo=try&group_state=expanded&resultStatus=retry%2Ctestfailed%2Cbusted%2Cexception%2Cusercancel%2Crunnable&revision=6ff358e88899819dac8764fdd56d7efcad1b26f9&selectedTaskRun=GGBs1f6GRcKyK8Kazf7mtA.0) 
[How to run these simulations:](https://wiki.mozilla.org/Sheriffing/How_To/Beta_simulations#TRUNK_AS_EARLY_BETA)

[Failure log:](https://treeherder.mozilla.org/logviewer?job_id=389386924&repo=try&lineNumber=14175)

```
[task 2022-09-03T14:08:13.653Z] 14:08:13     INFO - TEST-START | browser/components/firefoxview/tests/browser/browser_feature_callout.js
[task 2022-09-03T14:08:13.663Z] 14:08:13     INFO - GECKO(3628) | [Parent 8424: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 1b8056c4c00 == 23 [pid = 8424] [id = 22]
[task 2022-09-03T14:08:13.677Z] 14:08:13     INFO - GECKO(3628) | [Parent 8424: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 57 (1b811d05a40) [pid = 8424] [serial = 57] [outer = 0]
[task 2022-09-03T14:08:13.677Z] 14:08:13     INFO - GECKO(3628) | [Parent 8424: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 58 (1b8056c1400) [pid = 8424] [serial = 58] [outer = 1b811d05a40]
[task 2022-09-03T14:08:13.689Z] 14:08:13     INFO - GECKO(3628) | [Child 8828, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-09-03T14:08:13.717Z] 14:08:13     INFO - GECKO(3628) | [Parent 8424: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 59 (1b8073a0000) [pid = 8424] [serial = 59] [outer = 1b811d05a40]
[task 2022-09-03T14:08:13.742Z] 14:08:13     INFO - GECKO(3628) | [Parent 8424, Main Thread] WARNING: Failed to retarget HTML data delivery to the parser thread.: file /builds/worker/checkouts/gecko/parser/html/nsHtml5StreamParser.cpp:1234
[task 2022-09-03T14:08:14.089Z] 14:08:14     INFO - GECKO(3628) | [Child 9212: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1dc48366c00 == 1 [pid = 9212] [id = 0] [url = about:blank]
<...>
[task 2022-09-03T14:08:21.350Z] 14:08:21     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_feature_callout.js | Second tab's Feature Callout shows the tour screen saved in the user pref - 
[task 2022-09-03T14:08:21.351Z] 14:08:21     INFO - Buffered messages finished
[task 2022-09-03T14:08:21.351Z] 14:08:21     INFO - TEST-UNEXPECTED-FAIL | browser/components/firefoxview/tests/browser/browser_feature_callout.js | Uncaught exception in test - undefined - timed out after 50 tries.
[task 2022-09-03T14:08:21.352Z] 14:08:21     INFO - Leaving test bound feature_callout_syncs_across_visits_and_tabs
[task 2022-09-03T14:08:21.352Z] 14:08:21     INFO - Entering test bound feature_callout_closes_on_dismiss
[task 2022-09-03T14:08:21.352Z] 14:08:21     INFO - GECKO(3628) | Assertion failure: cache->PreservingWrapper(), at /builds/worker/checkouts/gecko/dom/bindings/DOMJSProxyHandler.cpp:91
[task 2022-09-03T14:08:21.399Z] 14:08:21     INFO -  Initializing stack-fixing for the first stack frame, this may take a while...
[task 2022-09-03T14:08:26.676Z] 14:08:26     INFO - GECKO(3628) | #01: mozilla::dom::CheckExpandoObject(JSObject*, JS::Value const&) [dom/bindings/DOMJSProxyHandler.cpp:91]
[task 2022-09-03T14:08:26.679Z] 14:08:26     INFO - GECKO(3628) | #02: mozilla::dom::DOMProxyHandler::GetExpandoObject(JSObject*) [dom/bindings/DOMJSProxyHandler.cpp:310]
[task 2022-09-03T14:08:26.680Z] 14:08:26     INFO - GECKO(3628) | #03: mozilla::dom::HTMLDocument_Binding::DOMProxyHandler::get(JSContext*, JS::Handle<JSObject *>, JS::Handle<JS::Value>, JS::Handle<JS::PropertyKey>, JS::MutableHandle<JS::Value>) const [s3:gecko-generated-sources-l1:024ef5a859df8cea9ca4ce938dbfc6a967886568fa897ef233d6f4d7bfe79fbaa0515ebb6454a45a588110f2dd1748d2de391e222666f3b3efcb0a29e99d1206/dom/bindings/HTMLDocumentBinding.cpp::725]
[task 2022-09-03T14:08:26.681Z] 14:08:26     INFO - GECKO(3628) | #04: js::Proxy::getInternal(JSContext*, JS::Handle<JSObject *>, JS::Handle<JS::Value>, JS::Handle<JS::PropertyKey>, JS::MutableHandle<JS::Value>) [js/src/proxy/Proxy.cpp:480]
[task 2022-09-03T14:08:26.681Z] 14:08:26     INFO - GECKO(3628) | #05: js::Proxy::get(JSContext*, JS::Handle<JSObject *>, JS::Handle<JS::Value>, JS::Handle<JS::PropertyKey>, JS::MutableHandle<JS::Value>) [js/src/proxy/Proxy.cpp:488]
[task 2022-09-03T14:08:26.683Z] 14:08:26     INFO - GECKO(3628) | #06: js::GetProperty(JSContext*, JS::Handle<JSObject *>, JS::Handle<JS::Value>, js::PropertyName*, JS::MutableHandle<JS::Value>) [js/src/vm/ObjectOperations-inl.h:125]
[task 2022-09-03T14:08:26.683Z] 14:08:26     INFO - GECKO(3628) | #07: js::GetProperty(JSContext*, JS::Handle<JS::Value>, JS::Handle<js::PropertyName *>, JS::MutableHandle<JS::Value>) [js/src/vm/Interpreter.cpp:4719]
[task 2022-09-03T14:08:26.684Z] 14:08:26     INFO - GECKO(3628) | #08: Interpret(JSContext*, js::RunState&) [js/src/vm/Interpreter.cpp:3029]
[task 2022-09-03T14:08:26.684Z] 14:08:26     INFO - GECKO(3628) | #09: js::RunScript(JSContext*, js::RunState&) [js/src/vm/Interpreter.cpp:430]
[task 2022-09-03T14:08:26.685Z] 14:08:26     INFO - GECKO(3628) | #10: js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) [js/src/vm/Interpreter.cpp:578]
[task 2022-09-03T14:08:26.685Z] 14:08:26     INFO - GECKO(3628) | #11: js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) [js/src/vm/Interpreter.cpp:645]
[task 2022-09-03T14:08:26.686Z] 14:08:26     INFO - GECKO(3628) | #12: JS_CallFunctionValue(JSContext*, JS::Handle<JSObject *>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) [js/src/vm/CallAndConstruct.cpp:53]
[task 2022-09-03T14:08:26.686Z] 14:08:26     INFO - GECKO(3628) | #13: nsXPCWrappedJS::CallMethod(unsigned short, nsXPTMethodInfo const*, nsXPTCMiniVariant*) [js/xpconnect/src/XPCWrappedJSClass.cpp:1003]
[task 2022-09-03T14:08:26.687Z] 14:08:26     INFO - GECKO(3628) | #14: PrepareAndDispatch(nsXPTCStubBase*, unsigned int, unsigned long long*, unsigned long long*, double*) [xpcom/reflect/xptcall/md/win32/xptcstubs_x86_64.cpp:168]
[task 2022-09-03T14:08:26.688Z] 14:08:26     INFO - GECKO(3628) | #15: XRE_GetBootstrap [Z:\task_166220858199514\build\application\firefox\xul.dll + 0x92335d9]
[task 2022-09-03T14:08:26.688Z] 14:08:26     INFO - GECKO(3628) | #16: nsPrefBranch::NotifyObserver(char const*, void*) [modules/libpref/Preferences.cpp:2839]
[task 2022-09-03T14:08:26.689Z] 14:08:26     INFO - GECKO(3628) | #17: NotifyCallbacks(nsTString<char> const&, PrefWrapper const*) [modules/libpref/Preferences.cpp:1815]
[task 2022-09-03T14:08:26.690Z] 14:08:26     INFO - GECKO(3628) | #18: pref_SetPref(nsTString<char> const&, mozilla::PrefType, mozilla::PrefValueKind, PrefValue, bool, bool, bool) [modules/libpref/Preferences.cpp:1777]
[task 2022-09-03T14:08:26.690Z] 14:08:26     INFO - GECKO(3628) | #19: mozilla::Preferences::SetCString(char const*, nsTSubstring<char> const&, mozilla::PrefValueKind) [modules/libpref/Preferences.cpp:5047]
[task 2022-09-03T14:08:26.691Z] 14:08:26     INFO - GECKO(3628) | #20: nsPrefBranch::SetCharPrefNoLengthCheck(char const*, nsTSubstring<char> const&) [modules/libpref/Preferences.cpp:2279]
[task 2022-09-03T14:08:26.691Z] 14:08:26     INFO - GECKO(3628) | #21: XRE_GetBootstrap [Z:\task_166220858199514\build\application\firefox\xul.dll + 0x9233582]
[task 2022-09-03T14:08:26.692Z] 14:08:26     INFO - GECKO(3628) | #22: CallMethodHelper::Call() [js/xpconnect/src/XPCWrappedNative.cpp:1179]
[task 2022-09-03T14:08:26.692Z] 14:08:26     INFO - GECKO(3628) | #23: XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) [js/xpconnect/src/XPCWrappedNative.cpp:1125]
[task 2022-09-03T14:08:26.693Z] 14:08:26     INFO - GECKO(3628) | #24: XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) [js/xpconnect/src/XPCWrappedNativeJSOps.cpp:965]
[task 2022-09-03T14:08:26.693Z] 14:08:26     INFO - GECKO(3628) | #25: CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&) [js/src/vm/Interpreter.cpp:458]
[task 2022-09-03T14:08:26.694Z] 14:08:26     INFO - GECKO(3628) | #26: js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) [js/src/vm/Interpreter.cpp:546]
[task 2022-09-03T14:08:26.695Z] 14:08:26     INFO - GECKO(3628) | #27: Interpret(JSContext*, js::RunState&) [js/src/vm/Interpreter.cpp:3374]
[task 2022-09-03T14:08:26.695Z] 14:08:26     INFO - GECKO(3628) | #28: js::RunScript(JSContext*, js::RunState&) [js/src/vm/Interpreter.cpp:430]
[task 2022-09-03T14:08:26.696Z] 14:08:26     INFO - GECKO(3628) | #29: js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) [js/src/vm/Interpreter.cpp:578]
[task 2022-09-03T14:08:26.697Z] 14:08:26     INFO - GECKO(3628) | #30: js::jit::DoCallFallback(JSContext*, js::jit::BaselineFrame*, js::jit::ICFallbackStub*, unsigned int, JS::Value*, JS::MutableHandle<JS::Value>) [js/src/jit/BaselineIC.cpp:1586]
[task 2022-09-03T14:08:26.697Z] 14:08:26     INFO - GECKO(3628) | #31: ??? (???:???)
[task 2022-09-03T14:08:26.698Z] 14:08:26     INFO - GECKO(3628) | [GPU 4276, IPC I/O Child] WARNING: [85EDCB057C6CAA44.1D7749645FE84B62]: Ignoring message 'EVENT_MESSAGE' to peer 1.1 due to a missing broker: file /builds/worker/checkouts/gecko/ipc/glue/NodeController.cpp:352
[task 2022-09-03T14:08:26.699Z] 14:08:26     INFO - GECKO(3628) | [GPU 4276, IPC I/O Child] WARNING: [85EDCB057C6CAA44.1D7749645FE84B62]: Ignoring message 'EVENT_MESSAGE' to peer 1.1 due to a missing broker: file /builds/worker/checkouts/gecko/ipc/glue/NodeController.cpp:352
[task 2022-09-03T14:08:26.700Z] 14:08:26     INFO - GECKO(3628) | [GPU 4276, IPC I/O Child] WARNING: [85EDCB057C6CAA44.1D7749645FE84B62]: Ignoring message 'EVENT_MESSAGE' to peer 1.1 due to a missing broker: file /builds/worker/checkouts/gecko/ipc/glue/NodeController.cpp:352
[task 2022-09-03T14:08:26.700Z] 14:08:26     INFO - GECKO(3628) | [GPU 4276, IPC I/O Child] WARNING: [85EDCB057C6CAA44.1D7749645FE84B62]: Ignoring message 'EVENT_MESSAGE' to peer 1.1 due to a missing broker: file /builds/worker/checkouts/gecko/ipc/glue/NodeController.cpp:352
[task 2022-09-03T14:08:26.701Z] 14:08:26     INFO - GECKO(3628) | [GPU 4276, Main Thread] WARNING: Shutting down GPU process early due to a crash!: file /builds/worker/checkouts/gecko/gfx/ipc/GPUParent.cpp:669
[task 2022-09-03T14:08:26.701Z] 14:08:26     INFO - GECKO(3628) | [GPU 4276, IPC I/O Child] WARNING: [85EDCB057C6CAA44.1D7749645FE84B62]: Ignoring message 'EVENT_MESSAGE' to peer 1.1 due to a missing broker: file /builds/worker/checkouts/gecko/ipc/glue/NodeController.cpp:352
[task 2022-09-03T14:08:26.702Z] 14:08:26     INFO - GECKO(3628) | [GPU 4276, IPC I/O Child] WARNING: [85EDCB057C6CAA44.1D7749645FE84B62]: Ignoring message 'EVENT_MESSAGE' to peer 1.1 due to a missing broker: file /builds/worker/checkouts/gecko/ipc/glue/NodeController.cpp:352
[task 2022-09-03T14:08:26.702Z] 14:08:26     INFO - GECKO(3628) | [Child 5724, IPC I/O Child] WARNING: [40245279B48DC1E7.3C57731630DE2D21]: Ignoring message 'EVENT_MESSAGE' to peer 1.1 due to a missing broker: file /builds/worker/checkouts/gecko/ipc/glue/NodeController.cpp:352
[task 2022-09-03T14:08:26.703Z] 14:08:26     INFO - GECKO(3628) | Exiting due to channel error.
[task 2022-09-03T14:08:26.703Z] 14:08:26     INFO - TEST-INFO | Main app process: exit 1
[task 2022-09-03T14:08:26.704Z] 14:08:26    ERROR - TEST-UNEXPECTED-FAIL | ShutdownLeaks | process() called before end of test suite
[task 2022-09-03T14:08:26.704Z] 14:08:26     INFO - TEST-INFO | Confirming we saw 40 DOCSHELL created and 26 destroyed log strings.
[task 2022-09-03T14:08:26.705Z] 14:08:26     INFO - TEST-INFO | Confirming we saw 108 DOMWINDOW created and 60 destroyed log strings.
[task 2022-09-03T14:08:26.705Z] 14:08:26     INFO - Buffered messages finished
[task 2022-09-03T14:08:26.705Z] 14:08:26    ERROR - TEST-UNEXPECTED-FAIL | browser/components/firefoxview/tests/browser/browser_feature_callout.js | application terminated with exit code 1
[task 2022-09-03T14:08:26.706Z] 14:08:26     INFO - runtests.py | Application ran for: 0:00:23.141762
```