Andrew Kaster
9bc1318a78
LibWeb: Consume user activation when showing a picker dialog
2024-05-29 21:30:15 +02:00
Andrew Kaster
a3a74245d6
LibWeb: Implement consume user activation AO
2024-05-29 21:30:15 +02:00
Andrew Kaster
45860e3878
LibWeb: Move consume history-action user activation to Window
2024-05-29 21:30:15 +02:00
Andrew Kaster
9c6ebe21d2
LibWeb: Remove get prefix from activation timestamp getters
2024-05-29 21:30:15 +02:00
Andrew Kaster
2fde20993b
LibWeb: Update show the picker if applicable to latest spec text
2024-05-29 21:30:15 +02:00
Jamie Mansfield
7da449ce01
LibWeb: Check correct activation (spec fix)
...
See:
- d28284f
2024-05-29 09:32:59 -06:00
Jamie Mansfield
34b2a4f7ca
LibWeb: Add getter for history-action activation
2024-05-29 09:32:59 -06:00
Jamie Mansfield
a741f68eb9
LibWeb: Implement "consume history-action user activation"
2024-05-29 09:32:59 -06:00
Jamie Mansfield
30539db2fc
LibWeb: Use Infinity<double> for infinity
...
Co-authored-by: Matthew Olsson <matthewcolsson@gmail.com>
2024-05-29 09:32:59 -06:00
Jamie Mansfield
01bd179eef
LibWeb: Implement UserActivation
2024-05-29 09:32:59 -06:00
Jamie Mansfield
227151b881
LibWeb: Add getter for sticky activation
2024-05-29 09:32:59 -06:00
Tim Ledbetter
bb923983fc
LibWeb: Implement WorkerGlobalScope.importScripts()
...
This method allows workers to synchronously import one or more scripts.
2024-05-29 08:17:18 +02:00
Tim Ledbetter
975a067f58
LibWeb: Align worker ESO getters with the specification
...
The `api_base_url()` and `policy_container()` getters now get their
respective objects from the global scope.
2024-05-29 08:17:18 +02:00
Tim Ledbetter
2d487ee5ab
LibWeb: Add spec comments to WorkerEnvironmentSettingsObject::setup()
...
No behavior change.
2024-05-29 08:17:18 +02:00
Aliaksandr Kalenik
b8d18ebcf7
LibWeb+WebContent: Change event loop to synchronously paint next frame
...
...instead of scheduling repaint timer in PageClient.
This change fixes flickering on Discord that happened because:
- Event loop schedules repainting by activating repaint timer
- `Document::tear_down_layout_tree()` destroys paintable tree
- Repaint timer invokes callback and renders an empty frame because
paintable tree was destroyed
2024-05-28 18:21:18 +02:00
Jamie Mansfield
3095daa7c8
LibWeb: Implement HTMLImageElement.currentSrc
...
Removes some console noise from lner.co.uk :)
2024-05-27 17:34:59 +02:00
Jamie Mansfield
600daea544
LibWeb: Implement HTMLIFrameElement.loading
2024-05-27 17:34:59 +02:00
Jamie Mansfield
9ee061ea14
LibWeb: Implement HTMLImageElement.loading
...
Removes some console noise while loading mmu.ac.uk :)
2024-05-27 17:34:59 +02:00
Jamie Mansfield
c484625631
LibWeb: Add IDL enum for lazy loading attribute
2024-05-27 17:34:59 +02:00
Timothy Flynn
eb3b8f8ee4
LibWeb: Implement EventSource for server-sent events
...
EventSource allows opening a persistent HTTP connection to a server over
which events are continuously streamed.
Unfortunately, our test infrastructure does not allow for automating any
tests of this feature yet. It only works with HTTP connections.
2024-05-26 18:29:24 +02:00
Timothy Flynn
9cc186b929
LibWeb: Implement the "queue a task" steps as a distinct AO
...
This will be needed by EventSource.
2024-05-26 18:29:24 +02:00
Shannon Booth
67b1f4af55
LibWeb: Implement HTMLFormElement.encoding
2024-05-26 07:47:59 +02:00
Shannon Booth
aeb815cc66
LibWeb: Implement HTMLFormElement.enctype
2024-05-26 07:47:59 +02:00
Matthew Olsson
a98ad191c7
Userland: Add ESCAPING annotations to a bunch of places
...
This isn't comprehensive; just a result of a simple grep search.
2024-05-22 21:55:34 -06:00
Matthew Olsson
a5f4c9a632
AK+Userland: Remove NOESCAPE
...
See the next commit for an explanation
2024-05-22 21:55:34 -06:00
Tim Ledbetter
c0e504fbdd
LibWeb: Add some missing [FIXME]
IDL attributes
2024-05-21 19:29:04 +02:00
Tim Ledbetter
58bb5e1f7a
LibWeb: Use [Reflect]
to implement HTMLPreElement.width
2024-05-21 19:28:43 +02:00
Tim Ledbetter
2a7cf1c588
LibWeb: Implement the width
and height
attributes where missing
...
This change adds the `width` and `height` properties to
`HTMLVideoElement` and `HTMLSourceElement`. These properties reflect
their respective content attribute values.
2024-05-21 19:28:43 +02:00
Tim Ledbetter
9f9aa62128
LibWeb: Implement the hspace
and vspace
attributes
...
These properties reflect their respective content attributes.
2024-05-21 19:28:43 +02:00
Timothy Flynn
b5ba60f1d1
LibWeb: Change Fetch's ProcessBodyError to accept a plain JS value
...
This callback is meant to be triggered by streams, which does not always
provide a WebIDL::DOMException. Pass a plain value instead. Of all the
users of this callback, only one actually uses the value, and already
converts the DOMException to a plain value.
2024-05-20 16:57:52 -04:00
Tim Ledbetter
68a1a78a1a
LibWeb: Use FIXME extended attribute where possible
2024-05-19 17:35:25 +02:00
Shannon Booth
4fe0cbcf85
LibWeb: Use 'FIXME' extended attribute where possible
...
This improves the debuggability of many live web pages :^)
2024-05-19 16:24:11 +02:00
Shannon Booth
8d5665ebe1
LibWeb: Add stub for IDBFactory
2024-05-19 16:24:11 +02:00
Matthew Olsson
74aeb57631
LibWeb: Add a few missing visits to m_rel_list members
2024-05-19 09:26:30 +02:00
Tim Ledbetter
272cd30f17
LibWeb: Add missing visit to m_labels
in HTMLElement
2024-05-18 18:29:52 +02:00
Tim Ledbetter
c36ba450be
LibWeb: Generate binding for HTMLObjectElement.contentWindow
attribute
...
This only required adding the appropriate definition to the IDL file,
as `NavigableContainer` already implements the logic that we need.
2024-05-18 18:12:08 +02:00
Tim Ledbetter
2447a25753
LibWeb: Implement the labels
attribute for all labelable elements
...
This returns a `NodeList` of all the labels associated with the given
element.
2024-05-18 18:09:18 +02:00
Tim Ledbetter
3dc86747f0
LibWeb: Implement the HTMLOutputElement.htmlFor
attribute
...
This returns a DOMTokenList that reflects the `for` attribute.
2024-05-18 11:23:20 +02:00
Tim Ledbetter
acc1fa3c62
LibWeb: Generate binding for the HTMLObjectElement.form
attribute
...
This only required adding the appropriate definition to the IDL file,
as `FormAssociatedElement` already implements the logic that we need.
2024-05-18 11:04:04 +02:00
Tim Ledbetter
6bf22075ed
LibWeb: Implement the HTMLLabelElement.form
attribute
...
This returns the form element associated with the given label element's
control or null if the label has no control.
2024-05-18 11:04:04 +02:00
Tim Ledbetter
5296338e7a
LibWeb: Check all elements in same tree to determine labeled control
...
Previously, when looking for the labeled control of a label element, we
were only checking its child elements. The specification says we should
check all elements in the same tree as the label element.
2024-05-18 11:04:04 +02:00
Tim Ledbetter
fc395716e9
LibWeb: Return NonnullGCPtr<DOMTokenList> from relList
getters
2024-05-18 11:03:49 +02:00
Tim Ledbetter
51fc30a191
LibWeb: Implement the HTMLLinkElement.relList
attribute
...
This returns a DOMTokenList that reflects the `rel` attribute.
2024-05-16 08:06:26 +02:00
Tim Ledbetter
fc4e0cf10e
LibWeb: Implement the HTMLFormElement.relList
attribute
...
This returns a DOMTokenList that reflects the `rel` attribute.
2024-05-16 08:06:26 +02:00
Tim Ledbetter
0a3e1846f0
LibWeb: Implement the HTMLAreaElement.relList
attribute
...
This returns a DOMTokenList that reflects the `rel` attribute.
2024-05-16 08:06:26 +02:00
Tim Ledbetter
b7fd39c2e6
LibWeb: Implement the HTMLAnchorElement.relList
attribute
...
This returns a DOMTokenList that reflects the `rel` attribute.
2024-05-16 08:06:26 +02:00
Tim Ledbetter
63246577d2
LibWeb: Use correct type for MessageEventInit.ports
...
This didn't work previously because the IDL generator used the
incorrect type for some types of sequences within dictionaries.
2024-05-16 08:04:01 +02:00
Tim Ledbetter
763b7f0e0c
LibWeb: Implement the HTMLOptionElement.form
attribute
...
This returns the parent form of a HTMLOptionElement or null if the
element has no parent form.
2024-05-16 08:03:13 +02:00
Tim Ledbetter
fe7df98d7d
LibWeb: Use correct IDL definition for CanvasImageData methods
...
It is now possible to pass an optional `ImageDataSettings` object to
the `CanvasImageData.createImageData()` and
`CanvasImageData.getImageData()` methods.
2024-05-16 08:02:59 +02:00
Andrew Kaster
8872008958
LibWeb: Use correct JS_CELL name for WorkerEnvironmentSettingsObject
2024-05-16 08:02:43 +02:00