Truly independent web browser
/*
* Copyright (c) 2022, Luke Wilde <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/Bindings/MainThreadVM.h>
#include <LibWeb/CSS/Parser/Parser.h>
#include <LibWeb/CSS/StyleSheetState.h>
#include <LibWeb/Platform/EventLoopPlugin.h>
namespace {
struct Globals {
Globals();
} globals;
Globals::Globals()
{
Web::Platform::EventLoopPlugin::install(*new Web::Platform::EventLoopPlugin);
Web::Bindings::initialize_agent(Web::HTML::AgentType::SimilarOriginWindow);
}
}
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
{
AK::set_debug_enabled(false);
(void)Web::parse_css_stylesheet(Web::CSS::Parser::ParsingParams {}, { data, size });
return 0;
}