mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-06 00:51:51 +00:00
LibJS: Switch Agent [[CanBlock]] slot to a enum member
It turns out it was a mistake to make this a virtual since ServiceWorkerAgents are effectively the exact same as DedicatedWorkerAgents and SharedWorkerAgents just with [[CanBlock]] set to false.
This commit is contained in:
parent
7dd7e5b438
commit
5290ebfe19
Notes:
github-actions[bot]
2025-04-25 14:45:34 +00:00
Author: https://github.com/shannonbooth
Commit: 5290ebfe19
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4453
6 changed files with 31 additions and 9 deletions
|
@ -11,10 +11,10 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
bool SimilarOriginWindowAgent::can_block() const
|
||||
NonnullOwnPtr<SimilarOriginWindowAgent> SimilarOriginWindowAgent::create()
|
||||
{
|
||||
// similar-origin window agents can not block, see: https://html.spec.whatwg.org/multipage/webappapis.html#obtain-similar-origin-window-agent
|
||||
return false;
|
||||
// See 'creating an agent' step in: https://html.spec.whatwg.org/multipage/webappapis.html#obtain-similar-origin-window-agent
|
||||
return adopt_own(*new SimilarOriginWindowAgent(CanBlock::No));
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#relevant-agent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue