Closed Bug 1175383 Opened 9 years ago Closed 9 years ago

[e10s] TabChild should store PuppetWidget directly instead of nsIWidget

Categories

(Core :: DOM: Content Processes, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

TabChild is now creates PuppetWidget itself and stores it as a pointer to nsIWidget. Some code in it uses static_cast<PuppetWidget*>(mWidget.get()). This is redundant and looks like that not safe.

We should guarantee the widget is PuppetWidget.
OS: Unspecified → All
Hardware: Unspecified → All
Attached patch PatchSplinter Review
I'm not sure if you're a good person to review this, though. Could you review this?
Attachment #8623522 - Flags: review?(bugs)
Comment on attachment 8623522 [details] [diff] [review]
Patch

The static_casts are safe, but this is good anyhow.

Could you file a followup for the nsContentUtils::SendKeyEvent issue.
Attachment #8623522 - Flags: review?(bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/daefa5ea5f98
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: