Closed Bug 1777509 Opened 3 years ago Closed 1 year ago

Add an async version of createContentWindow and use it wherever possible

Categories

(GeckoView Graveyard :: Sandboxing, task, P3)

Unspecified
All

Tracking

(firefox127 fixed)

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: agi, Assigned: m_kato)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fission:android])

Attachments

(1 file, 2 obsolete files)

The GeckoView implementation of createContentWindow spins the event loop to respond synchronously, but its return value is actually put inside a promise for some callers. We should add an async version of it (e.g. createContentWindowAsync) and call it wherever possible to avoid spinning the event loop unnecessarily.

This problem will be made worse with Fission.

This fix won't require any Fenix changes.

Severity: -- → N/A
Priority: -- → P3
Whiteboard: [fission:android]

Moving Android Fission bugs to the new GeckoView::Sandboxing component.

Component: General → Sandboxing
Assignee: nobody → m_kato
Blocks: 1825910

GeckoView's createContentWindow is implemented by JavaScript and Java. To use
callback, we need to access from JavaScript.

The following patch is waiting for review from an inactive reviewer:

ID Title Author Reviewer Status
D197131 Bug 1777509 - Part 1. Make nsIBrowsingContextReadyCallback scriptable. m_kato nika: Back Jan 2, 2024

:m_kato, could you please find another reviewer?

For more information, please visit BugBot documentation.

Flags: needinfo?(m_kato)
Flags: needinfo?(m_kato)

(In reply to Chris Peterson [:cpeterson] from comment #1)

This problem will be made worse with Fission.

Agi said Fission will make this problem worse, so I will track this bug for Android Fission.

Blocks: gv-fission
Attachment #9369952 - Attachment description: Bug 1777509 - Part 1. Make nsIBrowsingContextReadyCallback scriptable. → Bug 1777509 - Don't return browsing context directly when creating new window. r=nika!
Attachment #9369953 - Attachment is obsolete: true
Attachment #9369954 - Attachment is obsolete: true
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/ff4b5833094a Don't return browsing context directly when creating new window. r=nika,geckoview-reviewers,owlish
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Blocks: 1893383
Regressions: 1893565
Type: enhancement → task
Product: GeckoView → GeckoView Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: