mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibWeb: Make to_history_handling_behavior conversion helper public
While we're here, assert that we're not doing this conversion when the NavigationHistoryBehavior is still "auto", as the HistoryHandlingBehavior enum is supposed to represent a "resolved" behavior.
This commit is contained in:
parent
0ed67fc0ce
commit
cf1f14f58c
2 changed files with 10 additions and 3 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <LibJS/Runtime/Promise.h>
|
||||
#include <LibWeb/Bindings/NavigationPrototype.h>
|
||||
#include <LibWeb/DOM/EventTarget.h>
|
||||
#include <LibWeb/HTML/HistoryHandlingBehavior.h>
|
||||
#include <LibWeb/HTML/StructuredSerialize.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
@ -152,4 +153,6 @@ private:
|
|||
HashMap<String, JS::NonnullGCPtr<NavigationAPIMethodTracker>> m_upcoming_traverse_api_method_trackers;
|
||||
};
|
||||
|
||||
HistoryHandlingBehavior to_history_handling_behavior(Bindings::NavigationHistoryBehavior);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue