Truly independent web browser
LibWeb: Return the PDF viewer plugin and mime type objects as spans
Shannon Boothba2cdcc5a789
diff --git a/Libraries/LibWeb/HTML/Window.cpp b/Libraries/LibWeb/HTML/Window.cppindex c67db749fe1..43061d01b0f 100644--- a/Libraries/LibWeb/HTML/Window.cpp+++ b/Libraries/LibWeb/HTML/Window.cpp@@ -1078,7 +1078,7 @@ GC::Ptr<LocalNavigable> Window::navigable() const}// https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewer-plugin-objects-Vector<GC::Ref<Plugin>> Window::pdf_viewer_plugin_objects()+ReadonlySpan<GC::Ref<Plugin>> Window::pdf_viewer_plugin_objects(){// Each Window object has a PDF viewer plugin objects list. If the user agent's PDF viewer supported is false, then it is the empty list.// Otherwise, it is a list containing five Plugin objects, whose names are, respectively:@@ -1104,7 +1104,7 @@ Vector<GC::Ref<Plugin>> Window::pdf_viewer_plugin_objects()}// https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewer-mime-type-objects-Vector<GC::Ref<MimeType>> Window::pdf_viewer_mime_type_objects()+ReadonlySpan<GC::Ref<MimeType>> Window::pdf_viewer_mime_type_objects(){// Each Window object has a PDF viewer mime type objects list. If the user agent's PDF viewer supported is false, then it is the empty list.// Otherwise, it is a list containing two MimeType objects, whose types are, respectively:diff --git a/Libraries/LibWeb/HTML/Window.h b/Libraries/LibWeb/HTML/Window.hindex 349e369116e..43d53d7f7db 100644--- a/Libraries/LibWeb/HTML/Window.h+++ b/Libraries/LibWeb/HTML/Window.h@@ -174,8 +174,8 @@ public:// https://html.spec.whatwg.org/multipage/interaction.html#history-action-activationbool has_history_action_activation() const;- Vector<GC::Ref<Plugin>> pdf_viewer_plugin_objects();- Vector<GC::Ref<MimeType>> pdf_viewer_mime_type_objects();+ ReadonlySpan<GC::Ref<Plugin>> pdf_viewer_plugin_objects();+ ReadonlySpan<GC::Ref<MimeType>> pdf_viewer_mime_type_objects();// JS API functionsGC::Ref<WindowProxy> window() const;