Closed Bug 1739930 Opened 3 years ago Closed 3 years ago

SanityTest.jsm triggers to create 2 compositor sessions

Categories

(Core :: General, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: sotaro, Assigned: sotaro)

References

Details

Attachments

(1 file)

During debugging, I noticed that 2 compositor sessions were created for SanityTest.jsm.

SanityTest.jsm called one Services.ww.openWindow().

Summary: CompositorSession is created for child window → SanityTest.jsm triggers to create 2 compositor sessions for one HWND

Parent widget was created by nsWindowWatcher::OpenWindow(). And then child widget was created since window was pop up.

The child widget does actual rendering of pop up. And CompositorSession of parent widget was created by nsWindow::OnPaint().

Summary: SanityTest.jsm triggers to create 2 compositor sessions for one HWND → SanityTest.jsm triggers to create 2 compositor sessions
Blocks: 1736479
Assignee: nobody → sotaro.ikeda.g

From nsDocumentViewer::ShouldAttachToTopLevel(), content rendering of popup is always done by child widget.

Pushed by sikeda.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/62db00bc54c9 Disable CompositorSession in popup parent widget r=gfx-reviewers,bradwerth
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: