mirror of
https://github.com/servo/servo
synced 2026-05-09 08:32:31 +02:00
There are two times that Servo needs to ask other `Document`s to either focus or blur. - During processing of the "focusing steps". When a new element gains focus this may cause focus to be lost or gained in parent `<iframe>`s. - When calling `focus()` on a DOM Window from another origin. In both of these cases we need to request that a `Document` gain or lose focus via the Constellation, but in the second case we may have a `BrowsingContextId` of the `<iframe>` gaining focus and a `FocusSequence`. This change splits those cases into two kinds of messages. Finally, run the entire focusing steps when calling `window.focus()` instead of going to the constellation immediately. This will be important in a followup changes where messaging order is made more consistent. Testing: This should not change behavior so is covered by existing tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
173 KiB
173 KiB