зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1263991 part 1: Remove some properties that are not needed right now. r=djvj
This commit is contained in:
Родитель
24d44c69a3
Коммит
be1a3a8e1d
|
@ -500,12 +500,10 @@ DOMInterfaces = {
|
|||
|
||||
'FlyWebFetchEvent': {
|
||||
'headerFile': 'FlyWebServerEvents.h',
|
||||
'nativeType': 'mozilla::dom::FlyWebFetchEvent',
|
||||
},
|
||||
|
||||
'FlyWebWebSocketEvent': {
|
||||
'headerFile': 'FlyWebServerEvents.h',
|
||||
'nativeType': 'mozilla::dom::FlyWebWebSocketEvent',
|
||||
},
|
||||
|
||||
'FontFaceSet': {
|
||||
|
|
|
@ -31,16 +31,9 @@ FlyWebPublishedServer::FlyWebPublishedServer(nsPIDOMWindowInner* aOwner,
|
|||
, mOwnerWindowID(aOwner ? aOwner->WindowID() : 0)
|
||||
, mPublishPromise(aPublishPromise)
|
||||
, mName(aName)
|
||||
, mCategory(aOptions.mCategory)
|
||||
, mHttp(aOptions.mHttp)
|
||||
, mMessage(aOptions.mMessage)
|
||||
, mUiUrl(aOptions.mUiUrl)
|
||||
, mIsRegistered(true) // Registered by the FlyWebService
|
||||
{
|
||||
if (mCategory.IsEmpty()) {
|
||||
mCategory.SetIsVoid(true);
|
||||
}
|
||||
|
||||
mHttpServer = new HttpServer();
|
||||
mHttpServer->Init(-1, Preferences::GetBool("flyweb.use-tls", false), this);
|
||||
}
|
||||
|
|
|
@ -63,21 +63,6 @@ public:
|
|||
return mName;
|
||||
}
|
||||
|
||||
void GetCategory(nsAString& aCategory)
|
||||
{
|
||||
aCategory = mCategory;
|
||||
}
|
||||
|
||||
bool Http()
|
||||
{
|
||||
return mHttp;
|
||||
}
|
||||
|
||||
bool Message()
|
||||
{
|
||||
return mMessage;
|
||||
}
|
||||
|
||||
void GetUiUrl(nsAString& aUiUrl)
|
||||
{
|
||||
aUiUrl = mUiUrl;
|
||||
|
@ -120,9 +105,6 @@ private:
|
|||
nsCOMPtr<nsICancelable> mMDNSCancelRegister;
|
||||
|
||||
nsString mName;
|
||||
nsString mCategory;
|
||||
bool mHttp;
|
||||
bool mMessage;
|
||||
nsString mUiUrl;
|
||||
|
||||
bool mIsRegistered;
|
||||
|
|
|
@ -7,9 +7,6 @@
|
|||
[Pref="dom.flyweb.enabled"]
|
||||
interface FlyWebPublishedServer : EventTarget {
|
||||
readonly attribute DOMString name;
|
||||
readonly attribute DOMString? category;
|
||||
readonly attribute boolean http;
|
||||
readonly attribute boolean message;
|
||||
readonly attribute DOMString? uiUrl;
|
||||
|
||||
void close();
|
||||
|
@ -20,9 +17,6 @@ interface FlyWebPublishedServer : EventTarget {
|
|||
};
|
||||
|
||||
dictionary FlyWebPublishOptions {
|
||||
DOMString category = "";
|
||||
boolean http = false;
|
||||
boolean message = false;
|
||||
DOMString? uiUrl = null; // URL to user interface. Can be different server. Makes
|
||||
// endpoint show up in browser's "local services" UI.
|
||||
// If relative, resolves against the root of the server.
|
||||
|
|
Загрузка…
Ссылка в новой задаче