-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Finding target navigable by name should search in tree order #42343
Copy link
Copy link
Open
Labels
A-content/scriptRelated to the script threadRelated to the script thread
Description
servo/components/script/script_window_proxies.rs
Lines 37 to 47 in 7bf00ec
| pub(crate) fn find_window_proxy_by_name( | |
| &self, | |
| name: &DOMString, | |
| ) -> Option<DomRoot<WindowProxy>> { | |
| for (_, proxy) in self.map.borrow().iter() { | |
| if proxy.get_name() == *name { | |
| return Some(DomRoot::from_ref(&**proxy)); | |
| } | |
| } | |
| None | |
| } |
The spec defines an algorithm for looking up target navigables by name, which we need to implement: https://html.spec.whatwg.org/multipage/document-sequences.html#find-a-navigable-by-target-name
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-content/scriptRelated to the script threadRelated to the script thread