LibWeb/HTML: Make WorkerLocation methods infallible

We stopped worrying about tiny OOMs a while ago.
This commit is contained in:
Sam Atkins 2024-11-28 14:39:23 +00:00 committed by Andreas Kling
parent 900c131178
commit 3ce81512dd
Notes: github-actions[bot] 2024-11-30 11:23:21 +00:00
2 changed files with 20 additions and 27 deletions

View file

@ -18,15 +18,15 @@ class WorkerLocation : public Bindings::PlatformObject {
public:
virtual ~WorkerLocation() override;
WebIDL::ExceptionOr<String> href() const;
String href() const;
String origin() const;
WebIDL::ExceptionOr<String> protocol() const;
WebIDL::ExceptionOr<String> host() const;
WebIDL::ExceptionOr<String> hostname() const;
WebIDL::ExceptionOr<String> port() const;
String protocol() const;
String host() const;
String hostname() const;
String port() const;
String pathname() const;
WebIDL::ExceptionOr<String> search() const;
WebIDL::ExceptionOr<String> hash() const;
String search() const;
String hash() const;
private:
explicit WorkerLocation(WorkerGlobalScope&);