Closed Bug 1306644 Opened 8 years ago Closed 8 years ago

Avoid unnecessary sync IPC round trip for TakeFocusForClickFromTap

Categories

(Core :: DOM: Content Processes, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox49 --- unaffected
firefox50 --- unaffected
firefox51 --- wontfix
firefox52 --- fixed

People

(Reporter: kats, Assigned: kats)

References

Details

Attachments

(1 file)

Right now the PBrowser::HandleTap message is sent from TabParent to TabChild and then if the tap type is eSingleTap, TabChild turns around and sends a TakeFocusForClickFromTap message back to the parent via PRenderFrame. This seems like a wasted sync IPC message since TabParent could just do this directly before sending the HandleTap message to the child. That should be equivalent.
Comment on attachment 8796600 [details]
Bug 1306644 - Have TabParent call TakeFocusForClickFromTap rather than doing it over a sync IPC roundtrip.

https://reviewboard.mozilla.org/r/82400/#review81036
Attachment #8796600 - Flags: review?(dvander) → review+
Had to rebase around bug 1302736, which added a eSecondTap type as well which also does the TakeFocusForClickFromTap dance. The rebase was straightforward enough so I'm just going to land it.
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9eb7d99a0bb2
Have TabParent call TakeFocusForClickFromTap rather than doing it over a sync IPC roundtrip. r=dvander
https://hg.mozilla.org/mozilla-central/rev/9eb7d99a0bb2
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: