Aliaksandr Kalenik
c437f16cc1
LibWeb: Early return navigation process if navigable has been destroyed
...
If a navigable has been destroyed during a navigation process, we
should early return from it. The introduced checks are not in
the spec because, as explained in
https://github.com/whatwg/html/issues/9690 the spec is not written
with such a level of detail.
2023-09-15 18:27:17 +02:00
Aliaksandr Kalenik
c20123378d
LibWeb: Add unloading of child navigables in "apply the history step"
...
Implements missing step from the spec.
2023-09-15 18:27:17 +02:00
Aliaksandr Kalenik
2445205e9d
LibWeb: Align session history step application code with latest spec
...
Replaces direct "apply the history step" calls with new functions from
the spec:
- "update for navigable creation/destruction"
- "apply the push/replace history step"
- "apply the reload history step"
2023-09-15 18:27:17 +02:00
Aliaksandr Kalenik
d3d2e56a68
LibWeb: Call set_ongoing_navigation()
on navigable instead of this
...
This fixes incorrectly implemented spec when `set_ongoing_navigation()`
is called on `this` (=traversable) instead of `navigable` variable.
2023-09-15 18:27:17 +02:00
Aliaksandr Kalenik
09013583f2
LibWeb: Add Navigable::set_ongoing_navigation()
2023-09-13 21:35:52 +02:00
Andrew Kaster
03eae09619
LibWeb: Implement snapshotting source snapshot params per the spec
2023-08-28 09:47:11 +02:00
Aliaksandr Kalenik
343c709566
LibWeb: Add m_page
in TraversableNavigable
2023-08-22 20:30:06 +02:00
Andreas Kling
5a704453af
LibWeb: Implement "close a top-level traversable"
2023-08-22 20:30:06 +02:00
Aliaksandr Kalenik
d5adb7f10c
LibWeb: Implement "finalize a same-document navigation"
2023-08-20 16:06:56 +02:00
Aliaksandr Kalenik
38c7703fe8
LibWeb: Add allowPOST param in populate_session_history_entry_document
2023-08-14 17:46:46 +02:00
Aliaksandr Kalenik
08788072c1
LibWeb: Add SessionHistoryTraversalQueue
2023-08-14 17:46:46 +02:00
Ali Mohammad Pur
06c6c40df9
LibWeb+LibJS: Move some code around to make CSS/Parser parse faster
...
This makes it possible to include fewer full definitions of things,
which makes the file about 30% faster to compile.
2023-07-11 09:38:37 +03:30
Andreas Kling
40e7f64433
LibWeb: Implement most of "destroy a top-level traversable"
...
Co-authored-by: Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
2023-06-21 16:26:44 +02:00
Aliaksandr Kalenik
ffd5b3da16
LibWeb: Implement reload for navigables
2023-06-20 18:30:27 +02:00
Aliaksandr Kalenik
aafa09e7a5
LibWeb: Implement "traverse the history by delta" for traversables
2023-06-20 17:36:44 +02:00
Aliaksandr Kalenik
c90136d48d
LibWeb: Start fleshing out "apply the history step" for traversables
...
Implements https://html.spec.whatwg.org/multipage/browsing-the-web.html#apply-the-history-step
2023-06-19 21:28:20 +02:00
Aliaksandr Kalenik
caf7fd4f19
LibWeb: Add supporting method to get navigables whose SHE will change
...
Implements https://html.spec.whatwg.org/multipage/browsing-the-web.html#get-all-navigables-whose-current-session-history-entry-will-change-or-reload
2023-06-19 21:28:20 +02:00
Aliaksandr Kalenik
9c1087de8c
LibWeb: Implement "get the used step" for traversable navigables
...
Implements https://html.spec.whatwg.org/multipage/browsing-the-web.html#getting-the-used-step
2023-06-19 21:28:20 +02:00
Aliaksandr Kalenik
5b06e43938
LibWeb: Implement get_the_history_object_length_and_index()
2023-06-19 21:28:20 +02:00
Aliaksandr Kalenik
0444df1a7c
LibWeb: Implement "clear the forward session history" for traversable
...
https://html.spec.whatwg.org/multipage/browsing-the-web.html#clear-the-forward-session-history
2023-05-08 17:53:59 +02:00
Aliaksandr Kalenik
62bc8590ad
LibWeb: Implement "get all used history steps" for traversables
...
https://html.spec.whatwg.org/multipage/browsing-the-web.html#getting-all-used-history-steps
2023-04-28 18:11:44 +02:00
Aliaksandr Kalenik
3c89286467
LibWeb: Implement creation of fresh top-level traversables
...
Co-authored-by: Andreas Kling <kling@serenityos.org>
2023-04-26 15:51:50 +02:00
Andreas Kling
74a6f50c91
LibWeb: Add HTML::TraversableNavigable
...
This is the "traversable navigable" concept from the HTML spec.
Co-authored-by: Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
2023-04-19 18:26:45 +02:00