Open Bug 1545496 Opened 5 years ago Updated 8 months ago

Switch geckoview.xhtml to geckoview.html


(GeckoView :: General, task, P3)



(Not tracked)


(Reporter: bgrins, Unassigned)




(2 files)

OS: All → Android
Priority: -- → P3
Assignee: nobody → bgrinstead

Hi Botond, I'm seeing a foundRoot assertion failure ( with the patch from this bug applied: I can reproduce this locally as well (it crashes at startup).

The exact change in this patch that causes the problem is switching from a <xul:window> to an <html:html> element for the root element in the geckoview document ( I'm wondering if you have any insight about why switching the document element would change the behavior at

Flags: needinfo?(botond)

The code that's responsible for making sure have root scrolling metadata (and therefore we don't trip that assertion) is generally nsLayoutUtils::GetRootMetadata(). If, for the page in question, we were getting here in that function, and with this patch we no longer are, that may indicate we need to update that function to account for this change, though it's not immediately clear how.

Flags: needinfo?(botond)

The relevant change here is that the XUL document didn't have a root scroll frame, but the HTML document does. Root scroll frames generate their own metadata, and as a result we don't get scroll metadata on the root layer.

I think that's fine from a correctness point of view, but the assertion in AsyncCompositionManager needs to be adjusted to expect that.

This patch should fix the assertion.

(In reply to Botond Ballo [:botond] from comment #5)

Created attachment 9093746 [details] [diff] [review]
Fix for AsyncCompositionManager assertion

This patch should fix the assertion.

Thank you! I will give this a try.

Blocks: 1579952
No longer blocks: 1540278
Depends on: 1603491
Assignee: bgrinstead → bdahl
No longer blocks: 1579952
Summary: Switch geckoview.xul to geckoview.html → Switch geckoview.xhtml to geckoview.html

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: bdahl → nobody
Severity: normal → S3

Tasks should have severity N/A.

Severity: S3 → N/A
You need to log in before you can comment on or make changes to this bug.