mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +09:00
Issue #1587 - Part 1: Implement FetchController/FetchSignal interface
This commit is contained in:
parent
21f87c85ec
commit
24087592ad
14 changed files with 416 additions and 0 deletions
110
dom/fetch/FetchController.cpp
Normal file
110
dom/fetch/FetchController.cpp
Normal file
|
|
@ -0,0 +1,110 @@
|
||||||
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||||
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
#include "FetchController.h"
|
||||||
|
#include "FetchSignal.h"
|
||||||
|
#include "mozilla/dom/FetchControllerBinding.h"
|
||||||
|
#include "WorkerPrivate.h"
|
||||||
|
|
||||||
|
namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
|
||||||
|
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(FetchController, mGlobal, mSignal)
|
||||||
|
|
||||||
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(FetchController)
|
||||||
|
NS_IMPL_CYCLE_COLLECTING_RELEASE(FetchController)
|
||||||
|
|
||||||
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(FetchController)
|
||||||
|
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
||||||
|
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
||||||
|
NS_INTERFACE_MAP_END
|
||||||
|
|
||||||
|
/* static */ bool
|
||||||
|
FetchController::IsEnabled(JSContext* aCx, JSObject* aGlobal)
|
||||||
|
{
|
||||||
|
if (NS_IsMainThread()) {
|
||||||
|
return Preferences::GetBool("dom.fetchController.enabled", false);
|
||||||
|
}
|
||||||
|
|
||||||
|
using namespace workers;
|
||||||
|
|
||||||
|
// Otherwise, check the pref via the WorkerPrivate
|
||||||
|
WorkerPrivate* workerPrivate = GetWorkerPrivateFromContext(aCx);
|
||||||
|
if (!workerPrivate) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return workerPrivate->FetchControllerEnabled();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* static */ already_AddRefed<FetchController>
|
||||||
|
FetchController::Constructor(const GlobalObject& aGlobal, ErrorResult& aRv)
|
||||||
|
{
|
||||||
|
nsCOMPtr<nsIGlobalObject> global = do_QueryInterface(aGlobal.GetAsSupports());
|
||||||
|
if (!global) {
|
||||||
|
aRv.Throw(NS_ERROR_FAILURE);
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
RefPtr<FetchController> fetchController = new FetchController(global);
|
||||||
|
return fetchController.forget();
|
||||||
|
}
|
||||||
|
|
||||||
|
FetchController::FetchController(nsIGlobalObject* aGlobal)
|
||||||
|
: mGlobal(aGlobal)
|
||||||
|
, mAborted(false)
|
||||||
|
{}
|
||||||
|
|
||||||
|
JSObject*
|
||||||
|
FetchController::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||||
|
{
|
||||||
|
return FetchControllerBinding::Wrap(aCx, this, aGivenProto);
|
||||||
|
}
|
||||||
|
|
||||||
|
nsIGlobalObject*
|
||||||
|
FetchController::GetParentObject() const
|
||||||
|
{
|
||||||
|
return mGlobal;
|
||||||
|
}
|
||||||
|
|
||||||
|
FetchSignal*
|
||||||
|
FetchController::Signal()
|
||||||
|
{
|
||||||
|
if (!mSignal) {
|
||||||
|
mSignal = new FetchSignal(this, mAborted);
|
||||||
|
}
|
||||||
|
|
||||||
|
return mSignal;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
FetchController::Abort()
|
||||||
|
{
|
||||||
|
if (mAborted) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
mAborted = true;
|
||||||
|
|
||||||
|
if (mSignal) {
|
||||||
|
mSignal->Abort();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
FetchController::Follow(FetchSignal& aSignal)
|
||||||
|
{
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
FetchController::Unfollow(FetchSignal& aSignal)
|
||||||
|
{
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
} // dom namespace
|
||||||
|
} // mozilla namespace
|
||||||
66
dom/fetch/FetchController.h
Normal file
66
dom/fetch/FetchController.h
Normal file
|
|
@ -0,0 +1,66 @@
|
||||||
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||||
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
#ifndef mozilla_dom_FetchController_h
|
||||||
|
#define mozilla_dom_FetchController_h
|
||||||
|
|
||||||
|
#include "mozilla/dom/BindingDeclarations.h"
|
||||||
|
#include "nsCycleCollectionParticipant.h"
|
||||||
|
#include "nsWrapperCache.h"
|
||||||
|
#include "mozilla/ErrorResult.h"
|
||||||
|
#include "nsIGlobalObject.h"
|
||||||
|
|
||||||
|
namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
|
||||||
|
class FetchSignal;
|
||||||
|
|
||||||
|
class FetchController final : public nsISupports
|
||||||
|
, public nsWrapperCache
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||||
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(FetchController)
|
||||||
|
|
||||||
|
static bool
|
||||||
|
IsEnabled(JSContext* aCx, JSObject* aGlobal);
|
||||||
|
|
||||||
|
static already_AddRefed<FetchController>
|
||||||
|
Constructor(const GlobalObject& aGlobal, ErrorResult& aRv);
|
||||||
|
|
||||||
|
explicit FetchController(nsIGlobalObject* aGlobal);
|
||||||
|
|
||||||
|
JSObject*
|
||||||
|
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
||||||
|
|
||||||
|
nsIGlobalObject*
|
||||||
|
GetParentObject() const;
|
||||||
|
|
||||||
|
FetchSignal*
|
||||||
|
Signal();
|
||||||
|
|
||||||
|
void
|
||||||
|
Abort();
|
||||||
|
|
||||||
|
void
|
||||||
|
Follow(FetchSignal& aSignal);
|
||||||
|
|
||||||
|
void
|
||||||
|
Unfollow(FetchSignal& aSignal);
|
||||||
|
|
||||||
|
private:
|
||||||
|
~FetchController() = default;
|
||||||
|
|
||||||
|
nsCOMPtr<nsIGlobalObject> mGlobal;
|
||||||
|
RefPtr<FetchSignal> mSignal;
|
||||||
|
|
||||||
|
bool mAborted;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // dom namespace
|
||||||
|
} // mozilla namespace
|
||||||
|
|
||||||
|
#endif // mozilla_dom_FetchController_h
|
||||||
72
dom/fetch/FetchSignal.cpp
Normal file
72
dom/fetch/FetchSignal.cpp
Normal file
|
|
@ -0,0 +1,72 @@
|
||||||
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||||
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
#include "FetchSignal.h"
|
||||||
|
#include "FetchController.h"
|
||||||
|
#include "mozilla/dom/Event.h"
|
||||||
|
#include "mozilla/dom/FetchSignalBinding.h"
|
||||||
|
|
||||||
|
namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
|
||||||
|
NS_IMPL_CYCLE_COLLECTION_CLASS(FetchSignal)
|
||||||
|
|
||||||
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(FetchSignal,
|
||||||
|
DOMEventTargetHelper)
|
||||||
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mController)
|
||||||
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
|
||||||
|
|
||||||
|
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(FetchSignal,
|
||||||
|
DOMEventTargetHelper)
|
||||||
|
NS_IMPL_CYCLE_COLLECTION_UNLINK(mController)
|
||||||
|
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
|
||||||
|
|
||||||
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(FetchSignal)
|
||||||
|
NS_INTERFACE_MAP_END_INHERITING(DOMEventTargetHelper)
|
||||||
|
|
||||||
|
NS_IMPL_ADDREF_INHERITED(FetchSignal, DOMEventTargetHelper)
|
||||||
|
NS_IMPL_RELEASE_INHERITED(FetchSignal, DOMEventTargetHelper)
|
||||||
|
|
||||||
|
FetchSignal::FetchSignal(FetchController* aController,
|
||||||
|
bool aAborted)
|
||||||
|
: DOMEventTargetHelper(aController->GetParentObject())
|
||||||
|
, mController(aController)
|
||||||
|
, mAborted(aAborted)
|
||||||
|
{}
|
||||||
|
|
||||||
|
JSObject*
|
||||||
|
FetchSignal::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||||
|
{
|
||||||
|
return FetchSignalBinding::Wrap(aCx, this, aGivenProto);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
FetchSignal::Aborted() const
|
||||||
|
{
|
||||||
|
return mAborted;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
FetchSignal::Abort()
|
||||||
|
{
|
||||||
|
MOZ_ASSERT(!mAborted);
|
||||||
|
mAborted = true;
|
||||||
|
|
||||||
|
EventInit init;
|
||||||
|
init.mBubbles = false;
|
||||||
|
init.mCancelable = false;
|
||||||
|
|
||||||
|
// TODO which kind of event should we dispatch here?
|
||||||
|
|
||||||
|
RefPtr<Event> event =
|
||||||
|
Event::Constructor(this, NS_LITERAL_STRING("abort"), init);
|
||||||
|
event->SetTrusted(true);
|
||||||
|
|
||||||
|
DispatchDOMEvent(nullptr, event, nullptr, nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // dom namespace
|
||||||
|
} // mozilla namespace
|
||||||
47
dom/fetch/FetchSignal.h
Normal file
47
dom/fetch/FetchSignal.h
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||||
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
#ifndef mozilla_dom_FetchSignal_h
|
||||||
|
#define mozilla_dom_FetchSignal_h
|
||||||
|
|
||||||
|
#include "mozilla/DOMEventTargetHelper.h"
|
||||||
|
|
||||||
|
namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
|
||||||
|
class FetchController;
|
||||||
|
|
||||||
|
class FetchSignal final : public DOMEventTargetHelper
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
NS_DECL_ISUPPORTS_INHERITED
|
||||||
|
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(FetchSignal, DOMEventTargetHelper)
|
||||||
|
|
||||||
|
FetchSignal(FetchController* aController, bool aAborted);
|
||||||
|
|
||||||
|
JSObject*
|
||||||
|
WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
||||||
|
|
||||||
|
bool
|
||||||
|
Aborted() const;
|
||||||
|
|
||||||
|
void
|
||||||
|
Abort();
|
||||||
|
|
||||||
|
IMPL_EVENT_HANDLER(abort);
|
||||||
|
|
||||||
|
private:
|
||||||
|
~FetchSignal() = default;
|
||||||
|
|
||||||
|
RefPtr<FetchController> mController;
|
||||||
|
|
||||||
|
bool mAborted;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // dom namespace
|
||||||
|
} // mozilla namespace
|
||||||
|
|
||||||
|
#endif // mozilla_dom_FetchSignal_h
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
#include "nsWrapperCache.h"
|
#include "nsWrapperCache.h"
|
||||||
|
|
||||||
#include "mozilla/dom/Fetch.h"
|
#include "mozilla/dom/Fetch.h"
|
||||||
|
#include "mozilla/dom/FetchSignal.h"
|
||||||
#include "mozilla/dom/InternalRequest.h"
|
#include "mozilla/dom/InternalRequest.h"
|
||||||
// Required here due to certain WebIDL enums/classes being declared in both
|
// Required here due to certain WebIDL enums/classes being declared in both
|
||||||
// files.
|
// files.
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,10 @@
|
||||||
EXPORTS.mozilla.dom += [
|
EXPORTS.mozilla.dom += [
|
||||||
'ChannelInfo.h',
|
'ChannelInfo.h',
|
||||||
'Fetch.h',
|
'Fetch.h',
|
||||||
|
'FetchController.h',
|
||||||
'FetchDriver.h',
|
'FetchDriver.h',
|
||||||
'FetchIPCTypes.h',
|
'FetchIPCTypes.h',
|
||||||
|
'FetchSignal.h',
|
||||||
'FetchUtil.h',
|
'FetchUtil.h',
|
||||||
'Headers.h',
|
'Headers.h',
|
||||||
'InternalHeaders.h',
|
'InternalHeaders.h',
|
||||||
|
|
@ -27,7 +29,9 @@ UNIFIED_SOURCES += [
|
||||||
|
|
||||||
SOURCES += [
|
SOURCES += [
|
||||||
'ChannelInfo.cpp',
|
'ChannelInfo.cpp',
|
||||||
|
'FetchController.cpp',
|
||||||
'FetchDriver.cpp',
|
'FetchDriver.cpp',
|
||||||
|
'FetchSignal.cpp',
|
||||||
'FetchUtil.cpp',
|
'FetchUtil.cpp',
|
||||||
'Headers.cpp',
|
'Headers.cpp',
|
||||||
'InternalHeaders.cpp',
|
'InternalHeaders.cpp',
|
||||||
|
|
|
||||||
40
dom/tests/mochitest/fetch/file_fetch_controller.html
Normal file
40
dom/tests/mochitest/fetch/file_fetch_controller.html
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
<script>
|
||||||
|
function ok(a, msg) {
|
||||||
|
parent.postMessage({ type: "check", status: !!a, message: msg }, "*");
|
||||||
|
}
|
||||||
|
|
||||||
|
function is(a, b, msg) {
|
||||||
|
ok(a === b, msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
function testWebIDL() {
|
||||||
|
ok("FetchController" in self, "We have a FetchController prototype");
|
||||||
|
ok("FetchSignal" in self, "We have a FetchSignal prototype");
|
||||||
|
|
||||||
|
var fc = new FetchController();
|
||||||
|
ok(!!fc, "FetchController can be created");
|
||||||
|
ok(fc instanceof FetchController, "FetchController is a FetchController");
|
||||||
|
|
||||||
|
ok(!!fc.signal, "FetchController has a signal");
|
||||||
|
ok(fc.signal instanceof FetchSignal, "fetchSignal is a FetchSignal");
|
||||||
|
is(fc.signal.aborted, false, "By default FetchSignal.aborted is false");
|
||||||
|
next();
|
||||||
|
}
|
||||||
|
|
||||||
|
var steps = [
|
||||||
|
testWebIDL,
|
||||||
|
];
|
||||||
|
|
||||||
|
function next() {
|
||||||
|
if (!steps.length) {
|
||||||
|
parent.postMessage({ type: "finish" }, "*");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var step = steps.shift();
|
||||||
|
step();
|
||||||
|
}
|
||||||
|
|
||||||
|
next();
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
support-files =
|
support-files =
|
||||||
fetch_test_framework.js
|
fetch_test_framework.js
|
||||||
|
file_fetch_controller.html
|
||||||
test_fetch_basic.js
|
test_fetch_basic.js
|
||||||
test_fetch_basic_http.js
|
test_fetch_basic_http.js
|
||||||
test_fetch_cors.js
|
test_fetch_cors.js
|
||||||
|
|
@ -41,6 +42,7 @@ support-files =
|
||||||
[test_fetch_basic_http.html]
|
[test_fetch_basic_http.html]
|
||||||
[test_fetch_basic_http_sw_reroute.html]
|
[test_fetch_basic_http_sw_reroute.html]
|
||||||
[test_fetch_basic_http_sw_empty_reroute.html]
|
[test_fetch_basic_http_sw_empty_reroute.html]
|
||||||
|
[test_fetch_controller.html]
|
||||||
[test_fetch_cors.html]
|
[test_fetch_cors.html]
|
||||||
skip-if = toolkit == 'android' # Bug 1210282
|
skip-if = toolkit == 'android' # Bug 1210282
|
||||||
[test_fetch_cors_sw_reroute.html]
|
[test_fetch_cors_sw_reroute.html]
|
||||||
|
|
|
||||||
40
dom/tests/mochitest/fetch/test_fetch_controller.html
Normal file
40
dom/tests/mochitest/fetch/test_fetch_controller.html
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
<!--
|
||||||
|
Any copyright is dedicated to the Public Domain.
|
||||||
|
http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
-->
|
||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Test FetchController</title>
|
||||||
|
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||||
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script class="testbody" type="text/javascript">
|
||||||
|
|
||||||
|
SpecialPowers.pushPrefEnv({"set": [["dom.fetchController.enabled", true ]]}, () => {
|
||||||
|
let ifr = document.createElement('iframe');
|
||||||
|
ifr.src = "file_fetch_controller.html";
|
||||||
|
document.body.appendChild(ifr);
|
||||||
|
|
||||||
|
onmessage = function(e) {
|
||||||
|
if (e.data.type == "finish") {
|
||||||
|
SimpleTest.finish();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (e.data.type == "check") {
|
||||||
|
ok(e.data.status, e.data.message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ok(false, "Something when wrong.");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
SimpleTest.waitForExplicitFinish();
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
15
dom/webidl/FetchController.webidl
Normal file
15
dom/webidl/FetchController.webidl
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||||
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[Constructor(), Exposed=(Window,Worker),
|
||||||
|
Func="FetchController::IsEnabled"]
|
||||||
|
interface FetchController {
|
||||||
|
readonly attribute FetchSignal signal;
|
||||||
|
|
||||||
|
void abort();
|
||||||
|
void follow(FetchSignal signal);
|
||||||
|
void unfollow(FetchSignal signal);
|
||||||
|
};
|
||||||
13
dom/webidl/FetchSignal.webidl
Normal file
13
dom/webidl/FetchSignal.webidl
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||||
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[Exposed=(Window,Worker),
|
||||||
|
Func="FetchController::IsEnabled"]
|
||||||
|
interface FetchSignal : EventTarget {
|
||||||
|
readonly attribute boolean aborted;
|
||||||
|
|
||||||
|
attribute EventHandler onabort;
|
||||||
|
};
|
||||||
|
|
@ -47,6 +47,9 @@ dictionary RequestInit {
|
||||||
RequestCache cache;
|
RequestCache cache;
|
||||||
RequestRedirect redirect;
|
RequestRedirect redirect;
|
||||||
DOMString integrity;
|
DOMString integrity;
|
||||||
|
|
||||||
|
[Func="FetchController::IsEnabled"]
|
||||||
|
FetchSignal signal;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Gecko currently does not ship RequestContext, so please don't use it in IDL
|
// Gecko currently does not ship RequestContext, so please don't use it in IDL
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,9 @@ WEBIDL_FILES = [
|
||||||
'ExtendableMessageEvent.webidl',
|
'ExtendableMessageEvent.webidl',
|
||||||
'FakePluginTagInit.webidl',
|
'FakePluginTagInit.webidl',
|
||||||
'Fetch.webidl',
|
'Fetch.webidl',
|
||||||
|
'FetchController.webidl',
|
||||||
'FetchEvent.webidl',
|
'FetchEvent.webidl',
|
||||||
|
'FetchSignal.webidl',
|
||||||
'File.webidl',
|
'File.webidl',
|
||||||
'FileList.webidl',
|
'FileList.webidl',
|
||||||
'FileMode.webidl',
|
'FileMode.webidl',
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ WORKER_SIMPLE_PREF("dom.push.enabled", PushEnabled, PUSH_ENABLED)
|
||||||
WORKER_SIMPLE_PREF("dom.requestcontext.enabled", RequestContextEnabled, REQUESTCONTEXT_ENABLED)
|
WORKER_SIMPLE_PREF("dom.requestcontext.enabled", RequestContextEnabled, REQUESTCONTEXT_ENABLED)
|
||||||
WORKER_SIMPLE_PREF("gfx.offscreencanvas.enabled", OffscreenCanvasEnabled, OFFSCREENCANVAS_ENABLED)
|
WORKER_SIMPLE_PREF("gfx.offscreencanvas.enabled", OffscreenCanvasEnabled, OFFSCREENCANVAS_ENABLED)
|
||||||
WORKER_SIMPLE_PREF("dom.webkitBlink.dirPicker.enabled", WebkitBlinkDirectoryPickerEnabled, DOM_WEBKITBLINK_DIRPICKER_WEBKITBLINK)
|
WORKER_SIMPLE_PREF("dom.webkitBlink.dirPicker.enabled", WebkitBlinkDirectoryPickerEnabled, DOM_WEBKITBLINK_DIRPICKER_WEBKITBLINK)
|
||||||
|
WORKER_SIMPLE_PREF("dom.fetchController.enabled", FetchControllerEnabled, FETCHCONTROLLER_ENABLED)
|
||||||
WORKER_PREF("dom.workers.latestJSVersion", JSVersionChanged)
|
WORKER_PREF("dom.workers.latestJSVersion", JSVersionChanged)
|
||||||
WORKER_PREF("intl.accept_languages", PrefLanguagesChanged)
|
WORKER_PREF("intl.accept_languages", PrefLanguagesChanged)
|
||||||
WORKER_PREF("general.appname.override", AppNameOverrideChanged)
|
WORKER_PREF("general.appname.override", AppNameOverrideChanged)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue