Files
serenity/Userland/Libraries/LibWebView/PageInfo.h
Timothy Flynn ae6599c07a LibWebView+WebContent+headless-browser: Make the page info IPCs async
The IPCs to request a page's text, layout tree, etc. are currently all
synchronous. This can result in a deadlock when WebContent also makes
a synchronous IPC call, as both ends will be waiting on each other.

This replaces the page info IPCs with a single, asynchronous IPC. This
new IPC is promise-based, much like our screenshot IPC.

(cherry picked from commit 3332230cef8091f94f5c30e1f1984c1038cd4a1d)
2024-11-12 10:45:53 -05:00

23 lines
335 B
C++

/*
* Copyright (c) 2024, Tim Flynn <trflynn89@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/EnumBits.h>
namespace WebView {
enum class PageInfoType {
Text = 1 << 0,
LayoutTree = 1 << 2,
PaintTree = 1 << 3,
GCGraph = 1 << 4,
};
AK_ENUM_BITWISE_OPERATORS(PageInfoType);
}