Closed Bug 1486939 Opened 8 years ago Closed 6 years ago

GeckoSession shouldn't allow multiple consumers to hold the GeckoDisplay

Categories

(GeckoView :: General, enhancement, P3)

59 Branch
enhancement

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: snorp, Assigned: snorp)

Details

Attachments

(1 obsolete file)

Right now GeckoSession.acquireDisplay() is essentially a getter. This isn't very safe, since we could have many callers trying to set surfaces, etc. It also betrays the "acquire" naming, which normally means the caller will get exclusive rights.
This also ensures GeckoSession only listens to the currently acquired GeckoDisplay. I'd like to put a bunch more tests in DisplayTests to ensure the right stuff goes into the provided Surface, etc.
Assignee: nobody → snorp
Comment on attachment 9004708 [details] Bug 1486939 - Enforce exclusive ownership of GeckoDisplay r=jchen,droeh Jim Chen [:jchen] [:darchons] has approved the revision.
Attachment #9004708 - Flags: review+
Attachment #9004708 - Attachment is obsolete: true
Product: Firefox for Android → GeckoView
Version: Firefox 59 → 59 Branch
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: