Andreas Kling
38cb15ff49
LibWeb: Move system visibility state to TraversableNavigable
...
This no longer belongs in BrowsingContext.
2023-09-20 18:29:17 +02:00
Andreas Kling
046ae7fe86
LibWeb: Remove unused BrowsingContext::scroll_to_anchor()
2023-09-20 18:29:17 +02:00
Andreas Kling
94236c2532
LibWeb: Remove unused "frame nesting" tracking from BrowsingContext
2023-09-20 18:29:17 +02:00
Andreas Kling
51caa14381
LibWeb: Remove FrameLoader
...
This class is no longer used, now that we've moved to navigables.
2023-09-20 18:29:17 +02:00
Sam Atkins
9b4ddff6a9
LibWeb: Replace FontStyleValue with ShorthandStyleValue
...
Also, actually include font-variant since we were already parsing it but
throwing it away.
2023-09-20 12:17:16 +01:00
Shannon Booth
b603e860af
LibWeb: Port CharacterData from DeprecatedString to String
...
The existing implementation has some pre-existing issues where it is
incorrectly assumes that byte offsets are given through the IDL instead
of UTF-16 code units. While making these changes, leave some FIXMEs for
that.
2023-09-19 10:54:07 +02:00
Bastiaan van der Plaat
9939b028c6
LibWeb: Add basic Navigator send beacon support
2023-09-18 11:08:26 -06:00
Andreas Kling
0a133ccba4
LibWeb: Remove the HTML blink element
...
Support for this element has been removed from all major engines years
ago already, and it's currently the only reason we have a weird
"visible" flag on Layout::Node (which we toggle on a timer here..)
2023-09-18 14:45:20 +02:00
Bastiaan van der Plaat
8e7d3a6acc
LibWeb: Add missing Canvas Context2D transform functions
2023-09-17 16:48:54 -06:00
Shannon Booth
47616210b6
LibWeb: Add HTML::EventNames::loadend
2023-09-17 16:37:31 -06:00
Tobias Soppa
9267e24741
LibJS+LibWeb: Track SharedArrayBuffers' shared state
...
ArrayBuffer no longer stores a plain ByteBuffer internally, but a
DataBlock instead, which encapsulated the ByteBuffer together with
information if it is shared or not.
2023-09-17 16:29:21 -06:00
Aliaksandr Kalenik
8e832a174e
LibWeb: Update determine_the_origin
to match the latest spec
2023-09-17 21:08:59 +02:00
Shannon Booth
8ce9e51c97
LibWeb: Port Node interface from DeprecatedString to String
...
Which is fortunately quite straight forward :^)
2023-09-17 20:29:18 +02:00
Gabriel Nava
9a61041941
LibWeb: Add CanvasPath arcTo support
...
Adds initial CanvasPath arcTo support for 2D rendering contexts
https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-arcto
2023-09-17 17:22:52 +02:00
Aliaksandr Kalenik
4446858401
LibWeb: Do not crash if parsing failed in load_document()
...
If `load_document()` is called with a response that has a mime type we
can't use to build a document, we should return nullptr as the spec
says, instead of crashing. Also we should not crash if error happened
during parsing.
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
ead311eac7
LibWeb: Delete navigation id check in navigate_to_a_javascript_url
...
Adding this check was a mistake because although the navigation id
changes to null in step 2, it still has to proceed and apply the
history step.
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
6736a76915
LibWeb: Update Window::name()
to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
5d12dea4c9
LibWeb: Update Window::set_name()
to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
c95215f829
LibWeb: Update Window::focus()
to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
e54071ce89
LibWeb: Update Window::parent()
to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
8d82dc3a9f
LibWeb: Update Window::top()
to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
6411fea552
LibWeb: Update focus_chain()
to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
38034237c5
LibWeb: Update run_iframe_load_event_steps to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
9b16e5373d
LibWeb: Process session history queue after initial iframe navigation
...
This is not in the spec, but we need to make sure that "apply the
history step" for initial navigation to about:blank in iframe is
applied before subsequent navigations. Otherwise, "set ongoing
navigation" call during "about:blank" traversal might abort subsequent
ongoing navigation which is not expected to happen.
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
0e0936e1ce
LibWeb: Update Window::frame_element()
to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
67f5c027fe
LibWeb: Use saved navigable pointer in destroy_the_child_navigable
...
During the destruction of a navigable, we need to use the pointer to
the navigable that was saved at the beginning of the function. This
is because `Node::navigable()` will return a nullptr in subsequent
steps after the navigable's document becomes inactive.
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
cf985afdcb
LibWeb: Look for targetStepSHE in parent while creating child navigable
...
Reported issue in the spec https://github.com/whatwg/html/issues/9686
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
cd75b1de3d
LibWeb: Delete discard() in Document and BrowsingContext
...
Those are not used anymore after moving to navigables.
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
180c3e2fef
LibWeb: Remove unused BrowsingContext::close()
...
Was replaced by close_top_level_traversable()
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
bf785fee34
LibWeb: Remove unused BrowsingContext::container_document()
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
1f2ed7effc
LibWeb: Remove outdated version of determine_the_origin()
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
7b91f79817
LibWeb: Delete unused BrowsingContext::is_child_of()
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
6942bdcfce
LibWeb: Update top_level_browsing_context() to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
fda420875d
LibWeb: Delete BrowsingContext::set_active_document()
...
Superseded by Document::make_active()
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
4532584b3a
LibWeb: Remove unused BrowsingContext::create_a_new_browsing_context()
...
Became unused after introducing
create_a_new_browsing_context_and_document() used in navigables.
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
24f97491bf
LibWeb: Delete unused create_a_new_browsing_context_group()
...
Became unused after introducing
create_a_new_browsing_context_group_and_document() used in navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
6665f0db43
LibWeb: Delete unused document_tree_child_browsing_context_count()
...
The function is no longer needed with navigables.
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
605d24ef7d
LibWeb: Update WindowProxy::internal_own_property_keys() for navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
089a23a1f2
LibWeb: Update Window::length()
to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
7daa462ef8
LibWeb: Remove BrowsingContext::create_a_new_top_level_browsing_context
...
This call has been replaced by
`create_a_new_top_level_browsing_context_and_document`
after specification was refactored to use navigables.
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
3171abe92a
LibWeb: Call Document::set_window() from Document::make_active()
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
24b3e315a0
LibWeb: Remove unused navigation methods in BrowsingContext
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
912cf89727
LibWeb: Update HTMLIFrameElement to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
623d1a78da
LibWeb: Update HTMLObjectElement to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
3634749d98
LibWeb: Update Window::open_impl()
to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
1e54026269
LibWeb: Update History::go()
to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
dd9eca254e
LibWeb: Update WindowProxy::internal_get_own_property
for navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
d45f2a4952
LibWeb: Update Location::replace()
to use navigables
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
acff244335
LibWeb: Use navigate()
instead of did_set_location_href
in Location
2023-09-16 16:53:32 +02:00
Aliaksandr Kalenik
083e4a3f30
LibWeb: Update Location::reload()
to use navigables
2023-09-16 16:53:32 +02:00