mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +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,
|
Constructor(const GlobalObject& aGlobal, const nsAString& aURL,
|
||||||
const Optional<nsAString>& aBase, ErrorResult& aRv);
|
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
|
// Helper for Fetch API
|
||||||
static already_AddRefed<URL>
|
static already_AddRefed<URL>
|
||||||
WorkerConstructor(const GlobalObject& aGlobal, const nsAString& aURL,
|
WorkerConstructor(const GlobalObject& aGlobal, const nsAString& aURL,
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
// [Constructor(DOMString url, optional (URL or DOMString) base = "about:blank")]
|
// [Constructor(DOMString url, optional (URL or DOMString) base = "about:blank")]
|
||||||
[Constructor(DOMString url, URL base),
|
[Constructor(DOMString url, URL base),
|
||||||
Constructor(DOMString url, optional DOMString base),
|
Constructor(DOMString url, optional DOMString base),
|
||||||
|
NamedConstructor=webkitURL(DOMString url, optional DOMString base),
|
||||||
Exposed=(Window,Worker,WorkerDebugger)]
|
Exposed=(Window,Worker,WorkerDebugger)]
|
||||||
interface URL {
|
interface URL {
|
||||||
// Bug 824857: no support for stringifier attributes yet.
|
// Bug 824857: no support for stringifier attributes yet.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue