Skip to content

Commit

Permalink
Merge pull request BrowserWorks#1164 from hawkeye116477/master
Browse files Browse the repository at this point in the history
Add GtkFileChooserNative, new JS properties and other improvements to Waterfox Classic.
  • Loading branch information
MrAlex94 authored and hawkeye116477 committed Oct 16, 2019
1 parent 4f6a7dd commit e24033d
Show file tree
Hide file tree
Showing 1,676 changed files with 247,968 additions and 259,250 deletions.
2 changes: 2 additions & 0 deletions .mozconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ ac_add_options --enable-rust-simd # on x86 requires SSE2
ac_add_options --enable-stylo=build
fi

ac_add_options --enable-av1

export MOZ_GECKO_PROFILER=
export MOZ_ENABLE_PROFILER_SPS=
export MOZ_PROFILING=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ support-files =
file_popup_api_injection_a.html
file_popup_api_injection_b.html
file_iframe_document.html
file_iframe_document.sjs
file_slowed_document.sjs
file_bypass_cache.sjs
file_language_fr_en.html
file_language_ja.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,30 @@ add_task(async function testExecuteScript() {
let tab;

const BASE = "http://mochi.test:8888/browser/browser/components/extensions/test/browser/";
const URL = BASE + "file_iframe_document.sjs";
const URL = BASE + "file_slowed_document.sjs";

const MAX_TRIES = 10;

let onUpdatedPromise = (tabId, url, status) => {
return new Promise(resolve => {
browser.tabs.onUpdated.addListener(function listener(_, changed, tab) {
if (tabId == tab.id && changed.status == status && tab.url == url) {
browser.tabs.onUpdated.removeListener(listener);
resolve();
}
});
});
};

try {
[tab] = await browser.tabs.query({active: true, currentWindow: true});

let success = false;
for (let tries = 0; !success && tries < MAX_TRIES; tries++) {
let url = `${URL}?r=${Math.random()}`;

let loadingPromise = new Promise(resolve => {
browser.tabs.onUpdated.addListener(function listener(tabId, changed, tab_) {
if (tabId == tab.id && changed.status == "loading" && tab_.url == url) {
browser.tabs.onUpdated.removeListener(listener);
resolve();
}
});
});
let url = `${URL}?with-iframe&r=${Math.random()}`;

let loadingPromise = onUpdatedPromise(tab.id, url, "loading");
let completePromise = onUpdatedPromise(tab.id, url, "complete");

// TODO: Test allFrames and frameId.

Expand Down Expand Up @@ -74,15 +79,17 @@ add_task(async function testExecuteScript() {
// regardless of retries.
browser.test.assertTrue(states[1] == "interactive" || states[1] == "complete",
`document_end state is valid: ${states[1]}`);
browser.test.assertTrue(states[2] == "complete",
browser.test.assertTrue(states[2] == "interactive" || states[2] == "complete",
`document_idle state is valid: ${states[2]}`);

// If we have the earliest valid states for each script, we're done.
// Otherwise, try again.
success = (states[0] == "loading" &&
states[1] == "interactive" &&
states[2] == "complete" &&
states[3] == "complete");
states[2] == "interactive" &&
states[3] == "interactive");

await completePromise;
}

browser.test.assertTrue(success, "Got the earliest expected states at least once");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

/* eslint-disable no-unused-vars */

const DELAY = 1 * 1000; // Delay one second before completing the request.
const URL = "file_slowed_document.sjs";

const DELAY = 2 * 1000; // Delay two seconds before completing the request.

const Ci = Components.interfaces;

Expand All @@ -32,10 +34,10 @@ function handleRequest(request, response) {
// Note: We need to store a reference to the timer to prevent it from being
// canceled when it's GCed.
timer = new nsTimer(() => {
response.write(`
<iframe src="/"></iframe>
</body>
</html>`);
if (request.queryString.includes("with-iframe")) {
response.write(`<iframe src="${URL}?r=${Math.random()}"></iframe>`);
}
response.write(`</body></html>`);
response.finish();
}, DELAY, Ci.nsITimer.TYPE_ONE_SHOT);
}
Binary file modified browser/extensions/langpack-ach@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-af@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-an@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ar@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-as@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ast@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-az@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-be@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-bg@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-bn-BD@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-bn-IN@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-br@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-bs@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ca@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-cak@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-cs@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-cy@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-da@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-de@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-dsb@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-el@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-en-GB@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-en-US@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-en-ZA@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-eo@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-es-AR@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-es-CL@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-es-ES@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-es-MX@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-et@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-eu@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-fa@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ff@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-fi@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-fr@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-fy-NL@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ga-IE@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-gd@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-gl@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-gn@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-gu-IN@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-he@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-hi-IN@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-hr@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-hsb@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-hu@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-hy-AM@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-id@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-is@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-it@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ja@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ka@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-kab@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-kk@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-km@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-kn@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ko@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-lij@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-lt@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-lv@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-mai@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-mk@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ml@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-mr@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ms@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-my@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-nb-NO@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-nl@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-nn-NO@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-or@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-pa-IN@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-pl@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-pt-BR@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-pt-PT@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-rm@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ro@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ru@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-si@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-sk@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-sl@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-son@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-sq@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-sr@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-sv-SE@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ta@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-te@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-th@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-tr@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-uk@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-ur@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-uz@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-vi@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-xh@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-zh-CN@waterfox.xpi
Binary file not shown.
Binary file modified browser/extensions/langpack-zh-TW@waterfox.xpi
Binary file not shown.
13 changes: 13 additions & 0 deletions caps/BasePrincipal.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ class BasePrincipal : public nsJSPrincipals

explicit BasePrincipal(PrincipalKind aKind);

template<typename T>
bool Is() const
{
return mKind == T::Kind();
}

template<typename T>
T* As()
{
MOZ_ASSERT(Is<T>());
return static_cast<T*>(this);
}

enum DocumentDomainConsideration { DontConsiderDocumentDomain, ConsiderDocumentDomain};
bool Subsumes(nsIPrincipal* aOther, DocumentDomainConsideration aConsideration);

Expand Down
2 changes: 2 additions & 0 deletions caps/ContentPrincipal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class ContentPrincipal final : public mozilla::BasePrincipal

ContentPrincipal();

static PrincipalKind Kind() { return eCodebasePrincipal; }

// Init() must be called before the principal is in a usable state.
nsresult Init(nsIURI* aCodebase,
const mozilla::OriginAttributes& aOriginAttributes,
Expand Down
2 changes: 2 additions & 0 deletions caps/ExpandedPrincipal.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class ExpandedPrincipal : public nsIExpandedPrincipal
Create(nsTArray<nsCOMPtr<nsIPrincipal>>& aWhiteList,
const mozilla::OriginAttributes& aAttrs);

static PrincipalKind Kind() { return eExpandedPrincipal; }

NS_DECL_NSIEXPANDEDPRINCIPAL
NS_DECL_NSISERIALIZABLE

Expand Down
2 changes: 2 additions & 0 deletions caps/NullPrincipal.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class NullPrincipal final : public mozilla::BasePrincipal
{
}

static PrincipalKind Kind() { return eNullPrincipal; }

NS_DECL_NSISERIALIZABLE

NS_IMETHOD QueryInterface(REFNSIID aIID, void** aInstancePtr) override;
Expand Down
2 changes: 2 additions & 0 deletions caps/SystemPrincipal.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class SystemPrincipal final : public mozilla::BasePrincipal
public:
static already_AddRefed<SystemPrincipal> Create();

static PrincipalKind Kind() { return eSystemPrincipal; }

NS_DECL_NSISERIALIZABLE
NS_IMETHOD QueryInterface(REFNSIID aIID, void** aInstancePtr) override;
NS_IMETHOD GetHashValue(uint32_t* aHashValue) override;
Expand Down
6 changes: 6 additions & 0 deletions caps/nsIAddonPolicyService.idl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ interface nsIAddonPolicyService : nsISupports
*/
boolean addonMayLoadURI(in AString aAddonId, in nsIURI aURI, [optional] in boolean aExplicit);

/**
* Returns the name of the WebExtension with the given ID, or the ID string
* if no matching add-on can be found.
*/
AString getExtensionName(in AString aAddonId);

/**
* Returns true if a given extension:// URI is web-accessible.
*/
Expand Down
6 changes: 4 additions & 2 deletions devtools/shared/css/generated/properties-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,8 @@ exports.CSS_PROPERTIES = {
"column-gap"
],
"supports": [
6
6,
8
],
"values": [
"calc",
Expand Down Expand Up @@ -5684,7 +5685,8 @@ exports.CSS_PROPERTIES = {
"column-gap"
],
"supports": [
6
6,
8
],
"values": [
"calc",
Expand Down
4 changes: 4 additions & 0 deletions dom/base/DOMIntersectionObserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ DOMIntersectionObserver::Observe(Element& aTarget)
void
DOMIntersectionObserver::Unobserve(Element& aTarget)
{
if (!mObservationTargets.Contains(&aTarget)) {
return;
}

if (mObservationTargets.Length() == 1) {
Disconnect();
return;
Expand Down
36 changes: 36 additions & 0 deletions dom/base/Element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,42 @@ Element::GetAttribute(const nsAString& aName, DOMString& aReturn)
}
}

bool
Element::ToggleAttribute(const nsAString& aName,
const Optional<bool>& aForce,
ErrorResult& aError)
{
aError = nsContentUtils::CheckQName(aName, false);
if (aError.Failed()) {
return false;
}

nsAutoString nameToUse;
const nsAttrName* name = InternalGetAttrNameFromQName(aName, &nameToUse);
if (!name) {
if (aForce.WasPassed() && !aForce.Value()) {
return false;
}
nsCOMPtr<nsIAtom> nameAtom = NS_Atomize(nameToUse);
if (!nameAtom) {
aError.Throw(NS_ERROR_OUT_OF_MEMORY);
return false;
}
aError = SetAttr(kNameSpaceID_None, nameAtom, EmptyString(), true);
return true;
}
if (aForce.WasPassed() && aForce.Value()) {
return true;
}
// Hold a strong reference here so that the atom or nodeinfo doesn't go
// away during UnsetAttr. If it did UnsetAttr would be left with a
// dangling pointer as argument without knowing it.
nsAttrName tmp(*name);

aError = UnsetAttr(name->NamespaceID(), name->LocalName(), true);
return false;
}

void
Element::SetAttribute(const nsAString& aName,
const nsAString& aValue,
Expand Down
2 changes: 2 additions & 0 deletions dom/base/Element.h
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,8 @@ class Element : public FragmentOrElement
void GetAttributeNS(const nsAString& aNamespaceURI,
const nsAString& aLocalName,
nsAString& aReturn);
bool ToggleAttribute(const nsAString& aName, const Optional<bool>& aForce,
ErrorResult& aError);
void SetAttribute(const nsAString& aName, const nsAString& aValue,
ErrorResult& aError);
void SetAttributeNS(const nsAString& aNamespaceURI,
Expand Down
27 changes: 19 additions & 8 deletions dom/base/EventSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ namespace dom {

using namespace workers;

static LazyLogModule gEventSourceLog("EventSource");

#define SPACE_CHAR (char16_t)0x0020
#define CR_CHAR (char16_t)0x000D
#define LF_CHAR (char16_t)0x000A
Expand Down Expand Up @@ -953,8 +955,7 @@ EventSourceImpl::SetupHttpChannel()
{
AssertIsOnMainThread();
MOZ_ASSERT(!IsShutDown());
DebugOnly<nsresult> rv =
mHttpChannel->SetRequestMethod(NS_LITERAL_CSTRING("GET"));
nsresult rv = mHttpChannel->SetRequestMethod(NS_LITERAL_CSTRING("GET"));
MOZ_ASSERT(NS_SUCCEEDED(rv));

/* set the http request headers */
Expand All @@ -965,11 +966,19 @@ EventSourceImpl::SetupHttpChannel()

// LOAD_BYPASS_CACHE already adds the Cache-Control: no-cache header

if (!mLastEventID.IsEmpty()) {
rv = mHttpChannel->SetRequestHeader(NS_LITERAL_CSTRING("Last-Event-ID"),
NS_ConvertUTF16toUTF8(mLastEventID), false);
MOZ_ASSERT(NS_SUCCEEDED(rv));
if (mLastEventID.IsEmpty()) {
return;
}
NS_ConvertUTF16toUTF8 eventId(mLastEventID);
rv = mHttpChannel->SetRequestHeader(NS_LITERAL_CSTRING("Last-Event-ID"),
eventId, false);
#ifdef DEBUG
if (NS_FAILED(rv)) {
MOZ_LOG(gEventSourceLog, LogLevel::Warning,
("SetupHttpChannel. rv=%x (%s)", uint32_t(rv), eventId.get()));
}
#endif
Unused << rv;
}

nsresult
Expand Down Expand Up @@ -1729,7 +1738,8 @@ EventSourceImpl::ParseCharacter(char16_t aChr)
NS_ENSURE_SUCCESS(rv, rv);

mStatus = PARSE_STATE_BEGIN_OF_LINE;
} else {
} else if (aChr != 0) {
// Avoid appending the null char to the field value.
mLastFieldValue += aChr;
}

Expand All @@ -1748,7 +1758,8 @@ EventSourceImpl::ParseCharacter(char16_t aChr)
mStatus = PARSE_STATE_BEGIN_OF_LINE;
} else if (aChr == COLON_CHAR) {
mStatus = PARSE_STATE_COMMENT;
} else {
} else if (aChr != 0) {
// Avoid appending the null char to the field name.
mLastFieldName += aChr;
mStatus = PARSE_STATE_FIELD_NAME;
}
Expand Down
10 changes: 6 additions & 4 deletions dom/base/nsDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10667,11 +10667,12 @@ class UnblockParsingPromiseHandler final : public PromiseNativeHandler
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_CLASS(UnblockParsingPromiseHandler)

explicit UnblockParsingPromiseHandler(nsIDocument* aDocument, Promise* aPromise)
explicit UnblockParsingPromiseHandler(nsIDocument* aDocument, Promise* aPromise,
const BlockParsingOptions& aOptions)
: mPromise(aPromise)
{
nsCOMPtr<nsIParser> parser = aDocument->CreatorParserOrNull();
if (parser) {
if (parser && (aOptions.mBlockScriptCreated || !parser->IsScriptCreated())) {
parser->BlockParser();
mParser = do_GetWeakReference(parser);
mDocument = aDocument;
Expand Down Expand Up @@ -10734,14 +10735,15 @@ NS_IMPL_CYCLE_COLLECTING_ADDREF(UnblockParsingPromiseHandler)
NS_IMPL_CYCLE_COLLECTING_RELEASE(UnblockParsingPromiseHandler)

already_AddRefed<Promise>
nsIDocument::BlockParsing(Promise& aPromise, ErrorResult& aRv)
nsIDocument::BlockParsing(Promise& aPromise, const BlockParsingOptions& aOptions, ErrorResult& aRv)
{
RefPtr<Promise> resultPromise = Promise::Create(aPromise.GetParentObject(), aRv);
if (aRv.Failed()) {
return nullptr;
}

RefPtr<PromiseNativeHandler> promiseHandler = new UnblockParsingPromiseHandler(this, resultPromise);
RefPtr<PromiseNativeHandler> promiseHandler = new UnblockParsingPromiseHandler(this, resultPromise,
aOptions);
aPromise.AppendNativeHandler(promiseHandler);

return resultPromise.forget();
Expand Down
19 changes: 0 additions & 19 deletions dom/base/nsGlobalWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1144,11 +1144,6 @@ class nsOuterWindowProxy : public js::Wrapper
return false;
}

bool watch(JSContext *cx, JS::Handle<JSObject*> proxy,
JS::Handle<jsid> id, JS::Handle<JSObject*> callable) const override;
bool unwatch(JSContext *cx, JS::Handle<JSObject*> proxy,
JS::Handle<jsid> id) const override;

static void ObjectMoved(JSObject *obj, const JSObject *old);

static const nsOuterWindowProxy singleton;
Expand Down Expand Up @@ -1504,20 +1499,6 @@ nsOuterWindowProxy::AppendIndexedPropertyNames(JSContext *cx, JSObject *proxy,
return true;
}

bool
nsOuterWindowProxy::watch(JSContext *cx, JS::Handle<JSObject*> proxy,
JS::Handle<jsid> id, JS::Handle<JSObject*> callable) const
{
return js::WatchGuts(cx, proxy, id, callable);
}

bool
nsOuterWindowProxy::unwatch(JSContext *cx, JS::Handle<JSObject*> proxy,
JS::Handle<jsid> id) const
{
return js::UnwatchGuts(cx, proxy, id);
}

void
nsOuterWindowProxy::ObjectMoved(JSObject *obj, const JSObject *old)
{
Expand Down
1 change: 1 addition & 0 deletions dom/base/nsIDocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -2939,6 +2939,7 @@ class nsIDocument : public nsINode,
void ObsoleteSheet(const nsAString& aSheetURI, mozilla::ErrorResult& rv);

already_AddRefed<mozilla::dom::Promise> BlockParsing(mozilla::dom::Promise& aPromise,
const mozilla::dom::BlockParsingOptions& aOptions,
mozilla::ErrorResult& aRv);

already_AddRefed<nsIURI> GetMozDocumentURIIfNotForErrorPages();
Expand Down
Loading

0 comments on commit e24033d

Please sign in to comment.