ladybird/Tests/LibWeb/Text/input/HTML
Andreas Kling 9164c9784d LibGfx: Treat PNG files with invalid frame data as transparent
If we have a valid PNG header with geometry info etc, we should still
display it as *something*, even if the image data itself is missing or
corrupted.

This matches the behavior of other browsers, and is something that
Cloudflare Turnstile checks for.

To achieve this, we split the PNG decoder's initialization into two
steps: "everything except reading frame data" and "reading frame data".
If the latter step fails, we yield a transparent bitmap with the
geometry from the PNG's IHDR chunk.
2024-12-19 16:49:28 +01:00
..
ModuleLoading LibWeb: Ensure requests modules is not empty before indexing into it 2024-12-01 15:49:16 +01:00
a-element-set-protocol-on-href.html LibWeb: Actually perform "update the href steps" 2024-08-08 14:59:42 +01:00
anchor-element-url-invalid-unicode-pathname.html LibURL+Everywhere: Only percent decode URL paths when actually needed 2024-08-05 09:58:13 +02:00
background-shorthand.html LibWeb: Support shorthands when setting style attribute 2024-10-31 12:23:03 +00:00
beforeunload.html LibWeb: Move some classes from the DOM namespace to the HTML namespace 2024-11-02 11:16:45 -04:00
button-attributes.html LibWeb: Ensure enumerated attributes are always limited to known values 2024-03-22 11:29:57 +01:00
canvas-getImageData-oblong.html LibWeb: Fix CRC2D.getImageData() when width != height 2024-04-15 11:27:34 +02:00
canvas-putImageData-unpremultiplied.html LibWeb: Make new ImageData() use unpremultiplied color data 2024-08-20 20:39:09 +02:00
CanvasRenderingContext2D-get-image-data-correctness.html LibWeb: Use bitmap's alpha type instead of assuming unpremultiplied 2024-08-07 18:51:12 +02:00
click-label-to-focus-text-input.html LibWeb: Don't crash on clicking a label with an associated text input 2024-05-28 08:07:05 +02:00
click-label-with-display-none-checkbox.html LibWeb: Look for labeled control in DOM tree instead of layout tree 2024-03-23 12:46:37 +01:00
CloseWatcher-detached-iframe.html LibWeb: Fix CloseWatcher constructor for detached iframes 2024-10-15 08:41:54 -04:00
cross-origin-window-properties.html LibWeb: Stub out missing cross origin properties on the window object 2024-04-02 07:46:16 +02:00
cross-origin-WindowProxy-postMessage.html LibWeb: Don't swallow args when forwarding cross-origin WindowProxy call 2024-10-03 20:49:45 +02:00
crossOrigin-attribute.html LibWeb: Implement HTMLImageElement.crossOrigin 2024-06-05 05:42:47 +01:00
custom-elements-throw-in-constructor.html LibWeb: Report exceptions from custom element upgrades to global object 2024-11-24 00:15:59 +00:00
data-transfer.html LibWeb: Convert some sync tests to be async 2024-10-03 07:07:28 -04:00
datalist-element.html LibWeb: Add datalist element options property 2024-04-24 15:23:45 +02:00
DedicatedWorkerGlobalScope-instanceof-worker.js BindingsGenerator: Handle global interfaces without named properties 2024-10-12 19:21:59 +02:00
DedicatedWorkerGlobalScope-instanceof.html BindingsGenerator: Handle global interfaces without named properties 2024-10-12 19:21:59 +02:00
dimension-attributes.html LibWeb: Map dimension attributes for table elements 2024-10-02 09:50:54 +02:00
dir-slot-auto-directionality.html LibWeb: Don't crash when determining slot element auto directionality 2024-09-10 15:59:01 -04:00
document-close-iframe-load-event.html LibWeb: Fire iframe load event on document close 2024-10-08 06:55:01 +02:00
document-readyState-is-initially-complete.html LibWeb: Make default document readiness be "complete" 2024-11-20 16:20:28 +01:00
document-write-flush-character-insertions.html LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
DOMParser-parseFromString-document-url.html LibWeb: Use the correct document URL in DOMParser.parseFromString() 2024-10-17 19:16:08 +02:00
drag-and-drop.html LibWeb: Implement the DataTransfer files attribute 2024-08-19 13:29:19 +02:00
Element-checkVisibility.html LibWeb: Implement Element::check_visibility 2024-07-20 09:14:50 +01:00
Element-insertAdjacentHTML-documentElement.html LibWeb: Allow Element.insertAdjacentHTML on the document element 2024-05-27 17:33:29 +02:00
fetchPriority-attribute.html LibWeb: Test fetchPriority attribute on all elements 2024-06-08 08:01:42 +02:00
form-add-dynamic-formdata.html LibWeb: Allow FormData entry list to be mutated within a FormDataEvent 2024-11-21 20:25:26 +01:00
form-element-enctype.html LibWeb: Implement HTMLFormElement.encoding 2024-05-26 07:47:59 +02:00
form-image-submission.html Tests/LibWeb: Move assets used by multiple test types into Assets/ 2024-11-05 14:02:07 +00:00
form-implicit-submission.html LibWeb: Implement implicit submission of HTMLFormElement 2024-02-03 15:30:16 -07:00
Form-indexed-property-access.html LibWeb: Implement named and indexed property access for HTMLFormElement 2024-01-12 09:11:18 +01:00
Form-named-property-access.html LibWeb: Reset form association when any element with an ID changes 2024-02-03 15:30:16 -07:00
formAction-attribute.html LibWeb: Implement HTMLInputElement.formAction 2024-09-08 09:45:57 +02:00
FormAssociatedElement-set-selectionDirection.html LibWeb: Follow spec steps to set the selectionDirection attribute value 2024-10-04 19:42:33 +02:00
FormData-append-blob-with-type.html LibWeb: Do not blindly create File objects when adding FormData entries 2024-03-14 10:10:33 +01:00
FormData-append-with-emoji-in-name.html LibWeb: Don't crash on FormData.append() with emoji in name 2023-12-04 00:04:04 +01:00
get-innerHTML-xml.html LibWeb: Make innerHTML for XML nodes actually return inner HTML 2024-07-14 11:49:31 +02:00
get-innerHTML.html LibWeb: Remove FIXMe's for HTML attribute serialization steps 2023-11-11 08:50:25 +01:00
History-pushState-change-query.html LibWeb: Allow changing the query of file:// URL via history.pushState() 2024-08-06 16:33:23 +02:00
History-scrollRestoration.html LibWeb: Implement history.scrollRestoration 2024-10-02 17:08:17 -06:00
href-invalid.html LibWeb: Avoid dereferencing an empty optional URL 2024-12-11 09:33:46 -08:00
href-iso-2022-jp-url-encoding.html LibWeb/HTML: Encoding parse a URL when setting a href URL 2024-12-11 09:48:17 +01:00
HTMLAllCollection-basic.html LibWeb/Tests: Add a basic set of tests for document.all 2024-04-01 14:41:00 +02:00
HTMLElement-click.html LibWeb: Fire a pointer event on synthetic clicks 2024-04-08 14:25:08 +02:00
HTMLElement-isContentEditable.html LibWeb: Add HTMLElement::is_content_editable() 2024-02-25 10:17:25 +01:00
HTMLElement-labels.html LibWeb: Implement the labels attribute for all labelable elements 2024-05-18 18:09:18 +02:00
HTMLElement-offsetFoo-in-table-cell.html LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
HTMLFormElement-action.html LibWeb: Resolve HTMLFormElement.action relative to document base URL 2024-09-08 09:45:57 +02:00
HTMLFrameElement-add-remove.html LibWeb: Abort early processing frame/iframe attrs for null navigables 2024-11-04 09:54:32 +00:00
HTMLFrameElement-load.html LibWeb: Implement HTMLFrameElement as a NavigableContainer 2024-11-04 09:54:32 +00:00
HTMLInputElement-blur.html LibWeb: Don't crash when input with no associated text node loses focus 2024-11-04 10:08:34 +00:00
HTMLInputElement-cloning-steps.html LibWeb: Implement cloning steps for HTMLInputElement 2024-08-25 09:48:19 +02:00
HTMLInputElement-invalid-time-digits.html LibWeb: Don't crash when parsing HTMLInputElement invalid time values 2024-08-20 23:30:35 +01:00
HTMLInputElement-radio-groups.html LibWeb: Don't group radio buttons from different trees together 2024-09-11 07:59:29 +02:00
HTMLInputElement-select-crash.html LibWeb: Don't attempt to set selection if control has no selectable text 2024-09-09 11:04:07 +02:00
HTMLInputElement-type-state-change.html LibWeb: Treat dates and times with repeated separators as invalid 2024-09-10 15:59:30 -04:00
HTMLInputElement-valueAsNumber.html LibWeb: Make input type state change handling specification compliant 2024-09-10 16:12:58 +01:00
HTMLLabelElement-form.html LibWeb: Implement the HTMLLabelElement.form attribute 2024-05-18 11:04:04 +02:00
HTMLMediaElement-addTextTrack.html LibWeb: Convert some sync tests to be async 2024-10-03 07:07:28 -04:00
HTMLObjectElement-contentWindow.html LibWeb: Generate binding for HTMLObjectElement.contentWindow attribute 2024-05-18 18:12:08 +02:00
HTMLObjectElement-form.html LibWeb: Generate binding for the HTMLObjectElement.form attribute 2024-05-18 11:04:04 +02:00
HTMLOptionElement-form.html LibWeb: Implement the HTMLOptionElement.form attribute 2024-05-16 08:03:13 +02:00
HTMLOrSVGElement-nonce.html LibWeb: Implement HTMLOrSVGElement.nonce 2024-10-31 10:46:21 +01:00
HTMLOutputElement-htmlfor.html LibWeb: Implement the HTMLOutputElement.htmlFor attribute 2024-05-18 11:23:20 +02:00
HTMLProgressElement-detached.html LibWeb: Don't crash when modifying detached progress element attributes 2024-03-18 11:16:35 +01:00
HTMLProgressElement-large-max-value.html LibWeb: Don't crash when parsing large floating point number values 2024-10-31 08:05:25 +01:00
HTMLProgressElement-set-attributes.html LibWeb: Limit HTMLProgressElement.max to positive values 2024-08-19 09:02:21 +02:00
HTMLScriptElement-supports-importmap.html LibWeb: Support "importmap" scripts 2024-04-15 10:11:54 +02:00
HTMLSelectElement-can-select-option-in-JS.html Tests: Add test for selection option in <select> 2024-07-26 09:15:39 +01:00
HTMLSelectElement-options-available-after-add.html Tests: Add tests for <select> element behavior 2024-07-25 16:58:12 +02:00
HTMLSelectElement-options-available-at-load.html Tests: Add tests for <select> element behavior 2024-07-25 16:58:12 +02:00
HTMLSelectElement-value-change-trigger-onchange.html LibWeb: Don't trigger onchange event when setting <select> value 2024-10-08 19:03:51 +02:00
HTMLSelectElement-with-detached-option.html LibWeb: Don't crash when updating a select with detached option elements 2024-03-23 20:56:26 +01:00
HTMLTableCellElement-cellIndex-attribute.html LibWeb: Implement HTMLTableCellElement.cellIndex 2024-08-07 00:53:38 +01:00
HTMLTextAreaElement-cloning-steps.html LibWeb: Implement cloning steps for HTMLTextAreaElement 2024-08-25 09:48:19 +02:00
HTMLTrackElement-kind-attribute.html LibWeb: Implement the HTMLTrackElement.kind attribute 2024-06-30 13:08:42 +02:00
HTMLTrackElement-readyState-attribute.html LibWeb: Implement HTMLTrackElement.readyState 2024-08-06 07:57:33 +01:00
iframe-load-event-for-bad-xml.html Tests/LibWeb: Fix iframe-load-event-for-bad-xml.html test 2024-04-18 21:17:01 +02:00
iframe-reload-on-src-or-srcdoc-change.html LibWeb: Only reload iframe on src/srcdoc attribute changes, not all 2024-01-01 18:41:14 +01:00
iframe-successfully-loads-in-shadow-root.html LibWeb: Make iframe insertion steps check the shadow including root 2024-11-13 14:40:02 +01:00
image-bitmap-from-invalid-types-no-crash.html LibWeb: Add CanvasImageSource to ImageBitmapSource typedef 2024-12-06 13:10:27 +00:00
ImageData-create-with-size.html LibWeb: Fix new ImageData(width, height) when width != height 2024-04-15 11:27:34 +02:00
img-metrics-in-load-event-handlers.html LibWeb: Mark image elements for layout before firing their load event 2024-11-20 19:04:37 +01:00
img-src-in-innerHTML-crash.html LibWeb: Let Document have a direct GCPtr to its containing Web::Page 2023-12-15 22:04:46 +01:00
import-maps-1.js LibWeb: Implement multiple import map support 2024-12-10 12:01:45 +00:00
import-maps-2.js LibWeb: Implement multiple import map support 2024-12-10 12:01:45 +00:00
import-maps-invalid.html LibWeb: Don't crash with invalid import maps 2024-08-06 09:40:44 +02:00
import-maps.html LibWeb: Implement multiple import map support 2024-12-10 12:01:45 +00:00
invalid-url-attribute-values.html LibWeb: Return empty string if object element data URL is invalid 2024-08-15 09:44:35 +02:00
lang-attribute-empty-1.html LibWeb: Handle empty string in lang attribute 2024-11-04 12:06:32 +00:00
lang-attribute-empty-2.html LibWeb: Handle empty string in lang attribute 2024-11-04 12:06:32 +00:00
lang-pragma-set-1.html LibWeb: Support for "content-language" http-equiv state 2024-11-06 10:56:57 +01:00
lang-pragma-set-2.html LibWeb: Support for "content-language" http-equiv state 2024-11-06 10:56:57 +01:00
lang-pragma-set-3.html LibWeb: Support for "content-language" http-equiv state 2024-11-06 10:56:57 +01:00
lang-pragma-set-4.html LibWeb: Support for "content-language" http-equiv state 2024-11-06 10:56:57 +01:00
lang-pragma-set-5.html LibWeb: Support for "content-language" http-equiv state 2024-11-06 10:56:57 +01:00
link-element-username-password-percent-encoded.html LibURL+LibWeb: Do not percent decode in password/username getters 2024-08-04 12:59:02 +01:00
loading-attribute.html LibWeb: Use a single test for loading attribute 2024-06-08 08:01:42 +02:00
Location-protocol-setter.html LibWeb: Implement the setter for location.protocol 2024-08-17 07:39:58 +02:00
Location-search-setter.html LibWeb: Add setter implementation for location.search 2024-08-21 10:52:19 +01:00
Location-set-invalid-href-url.html LibWeb: Throw a SyntaxError on invalid URL for Location href setter 2024-10-06 10:06:26 -04:00
map-element.html LibWeb: Add map element areas property 2024-04-24 15:23:45 +02:00
maxed-out-dimension-value.html LibWeb: Cap HTML dimension values at 17895700 (same as Firefox) 2024-07-20 06:41:25 +02:00
MessagePort-MessageEvents-should-be-trusted.html LibWeb: Make MessageEvents from {Window,MessagePort}.postMessage trusted 2024-11-15 18:50:08 +01:00
multiple-import-maps-confict.html LibWeb: Implement multiple import map support 2024-12-10 12:01:45 +00:00
multiple-import-maps.html LibWeb: Implement multiple import map support 2024-12-10 12:01:45 +00:00
Navigation-object-properties.html LibWeb: Flesh out apply the history step to setup the navigation API 2024-01-19 11:47:59 +01:00
navigator-beacon.html LibWeb: Add basic Navigator send beacon support 2023-09-18 11:08:26 -06:00
onreadystatechange.html LibWeb: Support Document.onreadystatechange 2024-10-08 18:49:11 +02:00
outerHTML.html LibWeb: Implement Element.outerHTML 2024-04-09 18:17:14 -04:00
pageshow-event-istrusted.html LibWeb: Pageshow event dispatched by the user agent should be trusted 2024-10-30 10:27:20 +01:00
place-items-shorthand.html LibWeb: Support shorthands when setting style attribute 2024-10-31 12:23:03 +00:00
png-without-IDAT-should-still-load.html LibGfx: Treat PNG files with invalid frame data as transparent 2024-12-19 16:49:28 +01:00
popover-invoker-attributes.html LibWeb: Add PopOverInvokerElement and use it in HTMLButtonElement 2024-12-12 17:11:27 +00:00
pre-width.html LibWeb: Add HTMLPreElement width property 2024-02-24 16:35:11 -07:00
pushState-navigation-event.html LibWeb: Fire navigation event as required in History.pushState() 2024-08-06 16:33:23 +02:00
referrerPolicy-attribute.html LibWeb: Test referrerPolicy attribute on all elements 2024-06-08 08:01:42 +02:00
reflected-integer-attributes.html IDLGenerators: Use spec-compliant algorithm to parse integer values 2024-05-23 04:15:46 +02:00
relList-attribute.html LibWeb/SVG: Implement SVGAElement.relList 2024-07-16 21:43:53 +02:00
requestAnimationFrame-gc.html LibWeb: Protect animation frame callbacks from GC while they execute 2024-10-31 15:37:47 +01:00
requestAnimationFrame-sequential.html LibWeb: Make requestAnimationFrame() callback IDs sequential 2024-08-05 09:12:07 +02:00
script-async-attribute.html LibWeb: Set script force async to false when async changes 2024-08-04 19:25:29 +01:00
select-setValue-after-construction.html LibWeb: Skip select element internal shadow tree update unless it exists 2024-01-15 23:45:02 +01:00
set-innerHTML-details.html LibWeb: Remove shadow roots from elements that are removed from the DOM 2023-11-30 08:49:15 +00:00
set-innerHTML-input.html LibWeb: Remove shadow roots from elements that are removed from the DOM 2023-11-30 08:49:15 +00:00
set-innerHTML-inside-iframe-srcdoc-document.html LibWeb: Fix crash when setting innerHTML inside iframe srcdoc document 2024-08-29 06:24:18 +02:00
set-innerHTML-textarea.html LibWeb: Remove shadow roots from elements that are removed from the DOM 2023-11-30 08:49:15 +00:00
set-innerHTML-with-script.html LibWeb: Only wait for document to be ready for scripts if executing one 2024-01-14 11:27:58 +00:00
set-innerText.html LibWeb/HTML: Implement inner text set according to spec 2024-10-20 22:15:04 +02:00
set-outerHTML.html LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
shadow-realm-async-evaluate.html LibWeb: Hook up the HostInitializeShadowRealm callback 2024-11-05 10:43:08 -07:00
shadow-realm-btoa.html LibWeb: Wire up UniversalGlobalScopeMixin to ShadowRealmGlobalScope 2024-11-09 12:36:12 -07:00
shadow-realm-sync-evaluate.html LibWeb: Hook up the HostInitializeShadowRealm callback 2024-11-05 10:43:08 -07:00
shadow-realm-url.html LibWeb: Wire up UniversalGlobalScopeMixin to ShadowRealmGlobalScope 2024-11-09 12:36:12 -07:00
ShadowRealm-DOM-event.html LibWeb: Use relevant principal settings for HighResolutionTime 2024-11-30 11:55:11 +01:00
ShadowRealm-importValue.html LibWeb: Get Page from principal realm during resource loading 2024-11-24 15:29:47 -07:00
ShadowRealm-in-ShadowRealm-evaluate-DOM-Event.html LibWeb: Ensure principal realm returned for nested Shadow Realms 2024-11-30 11:55:11 +01:00
ShadowRealm-rejection.html LibWeb: Push promise rejection handling onto UniversalGlobalScopeMixin 2024-11-30 11:55:11 +01:00
short-legacy-color-value.html LibWeb: Fix StringView OOB access when parsing 3-character legacy color 2024-07-20 06:41:25 +02:00
storage-does-not-have-legacy-override-builtins-flag.html LibWeb: Remove LegacyOverrideBuiltIns flag from Storage 2024-11-12 15:34:36 +01:00
StructuredClone-array-buffer-views.html LibWeb: Add {de}serialization steps for TypedArrayBuffers and DataViews 2023-09-13 08:49:09 +02:00
StructuredClone-object-primitives.html Tests/LibWeb: Initialize 'arrayBuffer' to an UInt8Array 2024-05-27 17:37:27 +02:00
StructuredClone-primitives.html Tests/LibWeb: Prove we do not fail serialization of empty strings 2024-03-02 17:04:09 -07:00
StructuredClone-serializable-FileList.html LibWeb: Add {,de}serialization steps for FileList 2024-03-20 09:16:01 +01:00
StructuredClone-serializable-objects.html LibWeb: Add serialization and deserilization steps to DOMException 2024-11-24 11:11:44 +01:00
submit-button-click-when-disabled.html LibWeb: Don't proceed with Element.click() on disabled form controls 2024-07-26 14:25:04 +02:00
SVGImageElement-load-and-error-events.html LibWeb: Add SVGImageElement load and error events 2024-10-16 22:59:28 +01:00
tabIndex-attribute.html LibWeb/SVG: Implement default_tab_index_value for a element 2024-08-14 20:39:35 +01:00
tbody-insert-row.html LibWeb: Fix bogus insertion logic in HTMLTableSectionElement.insertRow() 2024-03-12 16:30:39 +01:00
unsigned-long-reflection.html LibWeb: Limit HTMLTableColElement span to allowed values 2024-12-02 10:25:27 +01:00
Window-close.html LibWeb: Implement window.close and window.closed 2024-10-06 01:42:24 +01:00
Window-event-handler-in-detached-DOM.html LibWeb: Ignore window-forwarded document.body.onfoo in detached DOM 2024-03-11 18:29:10 +01:00
Window-find.html LibWeb: Implement a minimal version of Window.find() 2024-06-27 10:09:39 +02:00
Window-iterate-properties.html LibWeb: Exclude [Global] interfaces from legacy platform object method 2024-04-26 20:02:21 +02:00
Window-MessageEvents-should-be-trusted.html LibWeb: Make MessageEvents from {Window,MessagePort}.postMessage trusted 2024-11-15 18:50:08 +01:00
Window-named-properties-elements.html LibWeb: Implement named property access AOs on Window 2023-09-22 19:55:59 -06:00
Window-named-properties-iframe.html LibWeb: Implement document-tree child navigable target name property set 2023-09-22 19:55:59 -06:00
Window-onerror.html LibWeb: Add a feature to LibWeb tests to fail on unhandled exceptions 2024-10-05 09:18:32 +02:00
Window-open-blob-url-without-blob-entry.html LibWeb/HTML: Add null handling for "get noopener for window open" 2024-12-17 17:06:47 +01:00
Window-open-empty-string.html LibWeb/HTML: Fix crash in window open steps on empty URL string 2024-12-10 17:16:07 -08:00
Window-opener.html LibWeb: Implement the window.opener attribute 2024-03-13 08:06:00 +00:00
Window-postMessage.html LibWeb: Make default document readiness be "complete" 2024-11-20 16:20:28 +01:00
Window-prototype.html LibWeb: Insert WindowProperties object into Window's prototype chain 2023-09-22 19:55:59 -06:00
Window-set-properties.html LibWeb: Exclude [Global] interfaces from legacy platform object methods 2024-01-19 09:02:00 +01:00
WindowOrWorkerGlobalScope-reportError.html LibWeb: Add a feature to LibWeb tests to fail on unhandled exceptions 2024-10-05 09:18:32 +02:00
WindowProxy-Get-after-detaching-from-browsing-context.html LibWeb: Don't crash when accessing property in detached Window object 2024-03-11 18:29:10 +01:00