mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +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,
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
// [Constructor(DOMString url, optional (URL or DOMString) base = "about:blank")]
|
||||
[Constructor(DOMString url, URL base),
|
||||
Constructor(DOMString url, optional DOMString base),
|
||||
NamedConstructor=webkitURL(DOMString url, optional DOMString base),
|
||||
Exposed=(Window,Worker,WorkerDebugger)]
|
||||
interface URL {
|
||||
// Bug 824857: no support for stringifier attributes yet.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue