mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
LibWeb: Rename Origin::is_null() to Origin::is_opaque()
This is what the HTML Origin spec calls it.
This commit is contained in:
parent
7590c0fff8
commit
f2ee62e268
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -20,7 +21,8 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
bool is_null() const { return m_protocol.is_null() && m_host.is_null() && !m_port; }
|
||||
// https://html.spec.whatwg.org/multipage/origin.html#concept-origin-opaque
|
||||
bool is_opaque() const { return m_protocol.is_null() && m_host.is_null() && m_port == 0; }
|
||||
|
||||
const String& protocol() const { return m_protocol; }
|
||||
const String& host() const { return m_host; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue