Closed Bug 1629451 Opened 5 years ago Closed 5 years ago

WARNING: Attempting to get a displayport from a content with no primary frame!: file /z/moz/l/layout/base/nsLayoutUtils.cpp, line 791

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: heycam, Assigned: heycam)

Details

Attachments

(1 file)

I get this warning on startup with a debug build:

WARNING: Attempting to get a displayport from a content with no primary frame!: file /z/moz/l/layout/base/nsLayoutUtils.cpp, line 791

I think we can avoid it by skipping the second GetHighResolutionDisplayPort call too when there is no scroll frame.

Pushed by cmccormack@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f7d31ba38b76 Return earlier from SetDisplayPortMargins to avoid a warning in the second GetHighResolutionDisplayPort call. r=tnikkel
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: