Closed Bug 925058 Opened 6 years ago Closed 6 years ago

[e10s] Re-focus browser elements after changing the remote attribute

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
Firefox 27

People

(Reporter: dvander, Assigned: dvander)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

When we transition the "remote" state of a browser element, it gets removed from the DOM, so it loses focus. Navigating from about:newtab to, say, google.com won't bring focus to the search box.

This patch changes _updateBrowserRemoteness() to check if the element was in focus, and re-sends the focus event if necessary.
Attachment #815038 - Flags: review?(felipc)
Attachment #815038 - Flags: review?(felipc) → review+
https://hg.mozilla.org/mozilla-central/rev/bb73bada10de
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 27
You need to log in before you can comment on or make changes to this bug.