Closed Bug 1629350 Opened 5 years ago Closed 5 years ago

startup warning: NS_ENSURE_TRUE(mPresShell) failed

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: heycam, Assigned: heycam)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

There is a warning on startup in builds with MOZ_WAYLAND defined:

WARNING: NS_ENSURE_TRUE(mPresShell) failed: file /z/moz/l/layout/base/nsPresContext.cpp, line 844

This happens when under nsPresContext::Init, when the newly created refresh driver attempts to call into GetRootWidget() here:

https://searchfox.org/mozilla-central/rev/8ed108064bf1c83e508208e069a90cffb4045977/layout/base/nsRefreshDriver.cpp#1043

At this point, the pres context doesn't have a pres shell.

The widget-specific vsync stuff was added in bug 1542808. The warning only seems to fire in content processes, so I want to null check the pres shell to avoid the warning.

This tends to happen in content processes only, but per the commit
message from bug 1542808, we don't provide a widget-specific vsync
source in content processes currently.

Regressed by: 1542808
Has Regression Range: --- → yes
Keywords: regression

Bugbug thinks this bug is a defect, but please change it back in case of error.

Type: enhancement → defect
Priority: -- → P3
Pushed by cmccormack@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/760a694ec6ef Don't warn when trying to get a widget-specific vsync source. r=lsalzman
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: