mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
LibWeb: Add facilities to serialize EnvironmentSettingsObjects
This will be used to transfer information about the parent context to DedicatedWorkers and future out-of-process Worker/Worklet implementations for fetching purposes. In order to properly check same-origin and other policies, we need to know more about the outside settings than we were previously passing to the WebWorker process.
This commit is contained in:
parent
c79bac70f4
commit
4d22358e05
11 changed files with 198 additions and 5 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <AK/ByteString.h>
|
||||
#include <AK/URL.h>
|
||||
#include <AK/URLParser.h>
|
||||
#include <LibIPC/Forward.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -132,3 +133,11 @@ struct Traits<Web::HTML::Origin> : public DefaultTraits<Web::HTML::Origin> {
|
|||
}
|
||||
};
|
||||
} // namespace AK
|
||||
|
||||
namespace IPC {
|
||||
template<>
|
||||
ErrorOr<void> encode(Encoder&, Web::HTML::Origin const&);
|
||||
|
||||
template<>
|
||||
ErrorOr<Web::HTML::Origin> decode(Decoder&);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue