LibWeb: Add Origin concept (protocol, host, port tuple)

Every Document now has an Origin, found via Document::origin().
It's based on the URL of the document.

This will be used to implement things like the same-origin policy.
This commit is contained in:
Andreas Kling 2020-04-07 22:56:13 +02:00
commit 7382b27c22
Notes: sideshowbarker 2024-07-19 07:49:11 +09:00
6 changed files with 71 additions and 6 deletions

View file

@ -45,6 +45,7 @@ class LayoutDocument;
class LayoutNode;
class MouseEvent;
class Node;
class Origin;
class Selector;
class StyleResolver;
class StyleRule;