Open Bug 2081017 Opened 1 month ago Updated 1 month ago

[WPT] Several navigation API WPTs hits "should have done initial reflow by now: 'mDidInitialize'" assertion on GeckoView with fission

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

defect

Tracking

()

People

(Reporter: m_kato, Unassigned)

References

(Blocks 1 open bug)

Details

When running several navigation API WPTs on GeckoView with fission, it hits the following assertion.

10-09 02:08:50.852 23050 23050 D GeckoSession: handleMessage GeckoView:LocationChange uri=http://web-platform.test:8000/navigation-api/navigation-methods/navigate-state-repeated-await.html
10-09 02:08:50.861 23266 23284 I Gecko   : [Child 23266, Main Thread] ###!!! ASSERTION: should have done initial reflow by now: 'mDidInitialize', file checkouts/gecko/layout/base/PresShell.cpp:3764
10-09 02:08:50.861 23266 23284 W Isolated Web Content: [JavaScript Warning: "Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content." {file: "http://web-platform.test:8000/foo" line: 0}]

At least, I found that this issue occurred on the following, at least.

  • /navigation-api/navigation-methods/navigate-state-repeated-await.html
  • /navigation-api/navigation-methods/navigate-state-repeated.html
  • /navigation-api/navigation-methods/return-value/reload-intercept.html

When NavigateEvent::Finish before layout is started (PresShell::Initialize isn't called yet), this issue seems to occur.

Also, this assertion occurs on Firefox desktop by ./mach wpt /navigation-api/navigation-methods/navigate-state-repeated-await.html. But test harness doesn't catch it (bug?).

 0:14.53 TEST_START: /navigation-api/navigation-methods/navigate-state-repeated-await.html
 0:14.55 INFO Setting pref layout.disable-pixel-alignment to true
 0:14.56 INFO Setting pref network.dns.disableIPv6 to true
 0:14.58 INFO Setting pref layout.css.tree-counting-functions.enabled to true
 0:14.59 INFO Setting pref layout.css.supports.at-rule.enabled to true
 0:14.60 INFO Setting pref dom.forms.html_color_picker.enabled to true
 0:14.61 INFO Setting pref dom.navigation.webidl.enabled to true
 0:14.62 INFO Setting pref dom.navigation.api.strict.enabled to true
 0:14.65 pid:2520228 ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /tmp/tmpshwuf_k7/runtests_leaks_2519676_tab_pid2521705.log
 0:14.77 pid:2520228 ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /tmp/tmpshwuf_k7/runtests_leaks_2519676_tab_pid2521734.log
 0:14.92 pid:2520228 [Child 2521734, Main Thread] ###!!! ASSERTION: should have done initial reflow by now: 'mDidInitialize', file layout/base/PresShell.cpp:3764
 0:15.01 INFO Got content assert count 1
 0:15.01 ASSERT: Assertion count 1, expected 0 assertions

I guess that ScrollToBeginningOfDocument should return immediately if DidInitialize is false. Because layout isn't started and it means that scroll position is top.

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.