mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Issue #2495 - Implement webkitURL legacy window alias for URL
Resolves #2495
This commit is contained in:
parent
15f8ca526c
commit
73edd3878f
2 changed files with 9 additions and 0 deletions
|
|
@ -55,6 +55,14 @@ public:
|
|||
Constructor(const GlobalObject& aGlobal, const nsAString& aURL,
|
||||
const Optional<nsAString>& aBase, ErrorResult& aRv);
|
||||
|
||||
// Helper for window.URL constructor
|
||||
static already_AddRefed<URL>
|
||||
WebkitURL(const GlobalObject& aGlobal, const nsAString& aURL,
|
||||
const Optional<nsAString>& aBase, ErrorResult& aRv)
|
||||
{
|
||||
return Constructor(aGlobal, aURL, aBase, aRv);
|
||||
}
|
||||
|
||||
// Helper for Fetch API
|
||||
static already_AddRefed<URL>
|
||||
WorkerConstructor(const GlobalObject& aGlobal, const nsAString& aURL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue