mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb/HTML: Fire load event for non-string javascript: URLs
Corresponds to 8abe559982
The relevant test doesn't pass, so we're probably missing some other
part of this mechanism:
https://wpt.live/html/semantics/embedded-content/the-embed-element/embed-javascript-url.html
This commit is contained in:
parent
27ba216e3f
commit
2efad4c941
Notes:
github-actions[bot]
2025-05-15 22:22:15 +00:00
Author: https://github.com/AtkinsSJ
Commit: 2efad4c941
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4749
8 changed files with 41 additions and 24 deletions
|
@ -28,6 +28,11 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
enum class InitialInsertion : u8 {
|
||||
Yes,
|
||||
No,
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#target-snapshot-params
|
||||
struct TargetSnapshotParams {
|
||||
SandboxingFlagSet sandboxing_flags {};
|
||||
|
@ -142,6 +147,7 @@ public:
|
|||
ReferrerPolicy::ReferrerPolicy referrer_policy = ReferrerPolicy::ReferrerPolicy::EmptyString;
|
||||
UserNavigationInvolvement user_involvement = UserNavigationInvolvement::None;
|
||||
GC::Ptr<DOM::Element> source_element = nullptr;
|
||||
InitialInsertion initial_insertion = InitialInsertion::No;
|
||||
|
||||
void visit_edges(Cell::Visitor& visitor);
|
||||
};
|
||||
|
@ -205,7 +211,7 @@ protected:
|
|||
private:
|
||||
void begin_navigation(NavigateParams);
|
||||
void navigate_to_a_fragment(URL::URL const&, HistoryHandlingBehavior, UserNavigationInvolvement, GC::Ptr<DOM::Element> source_element, Optional<SerializationRecord> navigation_api_state, String navigation_id);
|
||||
void navigate_to_a_javascript_url(URL::URL const&, HistoryHandlingBehavior, GC::Ref<SourceSnapshotParams>, URL::Origin const& initiator_origin, UserNavigationInvolvement, ContentSecurityPolicy::Directives::Directive::NavigationType csp_navigation_type, String navigation_id);
|
||||
void navigate_to_a_javascript_url(URL::URL const&, HistoryHandlingBehavior, GC::Ref<SourceSnapshotParams>, URL::Origin const& initiator_origin, UserNavigationInvolvement, ContentSecurityPolicy::Directives::Directive::NavigationType csp_navigation_type, InitialInsertion, String navigation_id);
|
||||
|
||||
void reset_cursor_blink_cycle();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue