LibWeb/XHR: Isomorphic decode accessing XMLHttpRequest response headers

Fixes a crash on:

https://wpt.live/html/browsers/browsing-the-web/navigating-across-documents/refresh/subresource.any.html
This commit is contained in:
Shannon Booth 2025-01-03 18:03:42 +13:00 committed by Sam Atkins
commit e74ca82083
Notes: github-actions[bot] 2025-01-15 12:36:55 +00:00
4 changed files with 47 additions and 14 deletions

View file

@ -61,8 +61,8 @@ public:
WebIDL::ExceptionOr<void> set_request_header(String const& header, String const& value);
WebIDL::ExceptionOr<void> set_response_type(Bindings::XMLHttpRequestResponseType);
WebIDL::ExceptionOr<Optional<String>> get_response_header(String const& name) const;
WebIDL::ExceptionOr<String> get_all_response_headers() const;
Optional<String> get_response_header(String const& name) const;
String get_all_response_headers() const;
WebIDL::CallbackType* onreadystatechange();
void set_onreadystatechange(WebIDL::CallbackType*);