mirror of
https://github.com/servo/servo
synced 2026-05-13 10:27:03 +02:00
Both `Window::load_url` and `ScriptThread::navigate` implement parts of the same navigate algorithm from the HTML spec (https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigate). `ScriptThread::navigate` had only one caller: `Window::load_url`. This merges both methods into a single `navigate` function in `navigation.rs`, which is the appropriate home for navigation logic. All previous callers of `Window::load_url` now call `navigation::navigate` directly. Testing: This is a pure refactor with no behaviour changes, so no new tests are needed. Existing tests cover the navigation paths affected. Fixes: #43494 --------- Signed-off-by: thebabalola <t.babalolajoseph@gmail.com>
172 KiB
172 KiB