Bug 1797558 Comment 22 Edit History

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

So I think I found out why this is broken, but what I am not sure about is how.

When creating a new working tab it will eventually create a layout manager
https://searchfox.org/mozilla-central/source/widget/android/nsWindow.cpp#2387

Here is the stack trace:
https://gist.github.com/boek/24ba936c44829286261de5ba393e40ad

When creating a new broken tab the furthest up the stack that it reaches is
```
mozilla::dom::binding_detail::GenericGetter<…>(JSContext *, unsigned int, JS::Value *) BindingUtils.cpp:3169
```
where then it repeatedly bounces around the frames marked with ✅, never reaching the frame above
```
mozilla::dom::FrameLoader_Binding::get_loadContext(JSContext *, JS::Handle<…>, void *, JSJitGetterCallArgs) FrameLoaderBinding.cpp:338
```
So I think I found out why this is broken, but what I am not sure about is how.

When creating a new working tab it will eventually create a layout manager
https://searchfox.org/mozilla-central/rev/c1180ea13e73eb985a49b15c0d90e977a1aa919c/widget/android/nsWindow.cpp#2386

Here is the stack trace:
https://gist.github.com/boek/24ba936c44829286261de5ba393e40ad

When creating a new broken tab the furthest up the stack that it reaches is
```
mozilla::dom::binding_detail::GenericGetter<…>(JSContext *, unsigned int, JS::Value *) BindingUtils.cpp:3169
```
where then it repeatedly bounces around the frames marked with ✅, never reaching the frame above
```
mozilla::dom::FrameLoader_Binding::get_loadContext(JSContext *, JS::Handle<…>, void *, JSJitGetterCallArgs) FrameLoaderBinding.cpp:338
```

Back to Bug 1797558 Comment 22