2018-09-07 04:20:18 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
|
|
|
/* 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/. */
|
|
|
|
|
2019-06-06 19:31:44 +03:00
|
|
|
#include "DocumentL10n.h"
|
2019-06-25 22:39:53 +03:00
|
|
|
#include "nsIContentSink.h"
|
2021-03-05 18:29:49 +03:00
|
|
|
#include "mozilla/dom/AutoEntryScript.h"
|
2020-11-23 19:21:38 +03:00
|
|
|
#include "mozilla/dom/Document.h"
|
2018-09-07 04:20:18 +03:00
|
|
|
#include "mozilla/dom/DocumentL10nBinding.h"
|
2021-02-13 23:10:35 +03:00
|
|
|
#include "mozilla/Telemetry.h"
|
2018-09-07 04:20:18 +03:00
|
|
|
|
2021-11-11 02:40:43 +03:00
|
|
|
using namespace mozilla;
|
|
|
|
using namespace mozilla::intl;
|
2019-06-06 19:32:58 +03:00
|
|
|
using namespace mozilla::dom;
|
2018-09-07 04:20:18 +03:00
|
|
|
|
2019-05-21 22:46:32 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_CLASS(DocumentL10n)
|
2019-06-06 19:31:25 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(DocumentL10n, DOMLocalization)
|
2019-05-21 22:46:32 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_UNLINK(mDocument)
|
|
|
|
NS_IMPL_CYCLE_COLLECTION_UNLINK(mReady)
|
2019-06-06 19:31:25 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_UNLINK(mContentSink)
|
2019-05-21 22:46:32 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER
|
|
|
|
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
|
2019-06-06 19:31:25 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(DocumentL10n, DOMLocalization)
|
2019-05-21 22:46:32 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mDocument)
|
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mReady)
|
2019-06-06 19:31:25 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mContentSink)
|
2019-05-21 22:46:32 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
|
2019-01-26 02:14:03 +03:00
|
|
|
|
2019-06-06 19:31:25 +03:00
|
|
|
NS_IMPL_ADDREF_INHERITED(DocumentL10n, DOMLocalization)
|
|
|
|
NS_IMPL_RELEASE_INHERITED(DocumentL10n, DOMLocalization)
|
2019-06-25 22:39:53 +03:00
|
|
|
|
2019-03-05 05:16:14 +03:00
|
|
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(DocumentL10n)
|
2019-06-06 19:31:25 +03:00
|
|
|
NS_INTERFACE_MAP_END_INHERITING(DOMLocalization)
|
2018-09-07 04:20:18 +03:00
|
|
|
|
2021-02-13 23:10:35 +03:00
|
|
|
bool DocumentL10n::mIsFirstBrowserWindow = true;
|
|
|
|
|
2020-04-30 21:22:38 +03:00
|
|
|
/* static */
|
2021-08-03 19:25:10 +03:00
|
|
|
RefPtr<DocumentL10n> DocumentL10n::Create(Document* aDocument, bool aSync) {
|
2020-06-04 20:02:01 +03:00
|
|
|
RefPtr<DocumentL10n> l10n = new DocumentL10n(aDocument, aSync);
|
2020-04-30 21:22:38 +03:00
|
|
|
|
2021-08-03 19:25:10 +03:00
|
|
|
IgnoredErrorResult rv;
|
|
|
|
l10n->mReady = Promise::Create(l10n->mGlobal, rv);
|
|
|
|
if (NS_WARN_IF(rv.Failed())) {
|
2020-04-30 21:22:38 +03:00
|
|
|
return nullptr;
|
|
|
|
}
|
2021-08-03 19:25:10 +03:00
|
|
|
|
2020-04-30 21:22:38 +03:00
|
|
|
return l10n.forget();
|
|
|
|
}
|
|
|
|
|
2021-08-03 19:25:10 +03:00
|
|
|
DocumentL10n::DocumentL10n(Document* aDocument, bool aSync)
|
2021-08-03 19:25:13 +03:00
|
|
|
: DOMLocalization(aDocument->GetScopeObject(), aSync),
|
2019-06-06 19:31:25 +03:00
|
|
|
mDocument(aDocument),
|
2020-06-04 20:02:01 +03:00
|
|
|
mState(DocumentL10nState::Constructed) {
|
2019-01-26 02:14:03 +03:00
|
|
|
mContentSink = do_QueryInterface(aDocument->GetCurrentContentSink());
|
2020-04-30 21:22:38 +03:00
|
|
|
}
|
2019-07-01 20:56:57 +03:00
|
|
|
|
2018-09-07 04:20:18 +03:00
|
|
|
JSObject* DocumentL10n::WrapObject(JSContext* aCx,
|
|
|
|
JS::Handle<JSObject*> aGivenProto) {
|
|
|
|
return DocumentL10n_Binding::Wrap(aCx, this, aGivenProto);
|
|
|
|
}
|
|
|
|
|
|
|
|
class L10nReadyHandler final : public PromiseNativeHandler {
|
|
|
|
public:
|
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
|
|
|
NS_DECL_CYCLE_COLLECTION_CLASS(L10nReadyHandler)
|
|
|
|
|
2021-11-10 03:14:34 +03:00
|
|
|
explicit L10nReadyHandler(Promise* aPromise, DocumentL10n* aDocumentL10n)
|
|
|
|
: mPromise(aPromise), mDocumentL10n(aDocumentL10n) {}
|
2018-09-07 04:20:18 +03:00
|
|
|
|
|
|
|
void ResolvedCallback(JSContext* aCx, JS::Handle<JS::Value> aValue) override {
|
2020-05-14 19:56:57 +03:00
|
|
|
mDocumentL10n->InitialTranslationCompleted(true);
|
2021-11-10 03:14:34 +03:00
|
|
|
mPromise->MaybeResolveWithUndefined();
|
2018-09-07 04:20:18 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void RejectedCallback(JSContext* aCx, JS::Handle<JS::Value> aValue) override {
|
2020-05-14 19:56:57 +03:00
|
|
|
mDocumentL10n->InitialTranslationCompleted(false);
|
2021-11-11 02:40:43 +03:00
|
|
|
|
|
|
|
nsTArray<nsCString> errors{
|
|
|
|
"[dom/l10n] Could not complete initial document translation."_ns,
|
|
|
|
};
|
|
|
|
IgnoredErrorResult rv;
|
|
|
|
MaybeReportErrorsToGecko(errors, rv, mDocumentL10n->GetParentObject());
|
|
|
|
|
|
|
|
/**
|
|
|
|
* We resolve the mReady here even if we encountered failures, because
|
|
|
|
* there is nothing actionable for the user pending on `mReady` to do here
|
|
|
|
* and we don't want to incentivized consumers of this API to plan the
|
|
|
|
* same pending operation for resolve and reject scenario.
|
|
|
|
*
|
|
|
|
* Additionally, without it, the stderr received "uncaught promise
|
|
|
|
* rejection" warning, which is noisy and not-actionable.
|
|
|
|
*
|
|
|
|
* So instead, we just resolve and report errors.
|
|
|
|
*/
|
|
|
|
mPromise->MaybeResolveWithUndefined();
|
2018-09-07 04:20:18 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
~L10nReadyHandler() = default;
|
|
|
|
|
2021-11-10 03:14:34 +03:00
|
|
|
RefPtr<Promise> mPromise;
|
2019-01-26 02:14:03 +03:00
|
|
|
RefPtr<DocumentL10n> mDocumentL10n;
|
2018-09-07 04:20:18 +03:00
|
|
|
};
|
|
|
|
|
2021-11-10 03:14:34 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTION(L10nReadyHandler, mPromise, mDocumentL10n)
|
2018-09-07 04:20:18 +03:00
|
|
|
|
|
|
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(L10nReadyHandler)
|
|
|
|
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
|
|
|
NS_INTERFACE_MAP_END
|
|
|
|
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(L10nReadyHandler)
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_RELEASE(L10nReadyHandler)
|
|
|
|
|
2020-04-30 20:55:26 +03:00
|
|
|
void DocumentL10n::TriggerInitialTranslation() {
|
2019-01-26 02:14:03 +03:00
|
|
|
if (mState >= DocumentL10nState::InitialTranslationTriggered) {
|
2018-09-07 04:20:18 +03:00
|
|
|
return;
|
|
|
|
}
|
2021-11-18 02:31:45 +03:00
|
|
|
if (!mReady) {
|
|
|
|
// If we don't have `mReady` it means that we are in shutdown mode.
|
|
|
|
// See bug 1687118 for details.
|
|
|
|
InitialTranslationCompleted(false);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-07-14 21:18:17 +03:00
|
|
|
mInitialTranslationStart = mozilla::TimeStamp::Now();
|
2018-09-07 04:20:18 +03:00
|
|
|
|
2020-09-28 09:29:44 +03:00
|
|
|
AutoAllowLegacyScriptExecution exemption;
|
|
|
|
|
2020-04-30 20:56:54 +03:00
|
|
|
nsTArray<RefPtr<Promise>> promises;
|
2018-09-07 04:20:18 +03:00
|
|
|
|
2020-04-30 20:56:54 +03:00
|
|
|
ErrorResult rv;
|
|
|
|
promises.AppendElement(TranslateDocument(rv));
|
|
|
|
if (NS_WARN_IF(rv.Failed())) {
|
2020-05-14 19:56:57 +03:00
|
|
|
InitialTranslationCompleted(false);
|
2020-04-30 20:56:54 +03:00
|
|
|
mReady->MaybeRejectWithUndefined();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
promises.AppendElement(TranslateRoots(rv));
|
|
|
|
Element* documentElement = mDocument->GetDocumentElement();
|
|
|
|
if (!documentElement) {
|
2020-05-14 19:56:57 +03:00
|
|
|
InitialTranslationCompleted(false);
|
2019-09-12 19:07:49 +03:00
|
|
|
mReady->MaybeRejectWithUndefined();
|
2019-05-21 22:46:32 +03:00
|
|
|
return;
|
2018-09-07 04:20:18 +03:00
|
|
|
}
|
|
|
|
|
2020-04-30 20:56:54 +03:00
|
|
|
DOMLocalization::ConnectRoot(*documentElement, rv);
|
2019-07-26 23:17:21 +03:00
|
|
|
if (NS_WARN_IF(rv.Failed())) {
|
2020-05-14 19:56:57 +03:00
|
|
|
InitialTranslationCompleted(false);
|
2019-09-12 19:07:49 +03:00
|
|
|
mReady->MaybeRejectWithUndefined();
|
2019-07-26 23:09:57 +03:00
|
|
|
return;
|
2019-07-26 19:11:49 +03:00
|
|
|
}
|
|
|
|
|
2020-04-30 20:56:54 +03:00
|
|
|
AutoEntryScript aes(mGlobal, "DocumentL10n InitialTranslation");
|
|
|
|
RefPtr<Promise> promise = Promise::All(aes.cx(), promises, rv);
|
2019-07-26 23:17:21 +03:00
|
|
|
|
2020-04-30 20:56:54 +03:00
|
|
|
if (promise->State() == Promise::PromiseState::Resolved) {
|
|
|
|
// If the promise is already resolved, we can fast-track
|
|
|
|
// to initial translation completed.
|
2020-05-14 19:56:57 +03:00
|
|
|
InitialTranslationCompleted(true);
|
2020-04-30 20:56:54 +03:00
|
|
|
mReady->MaybeResolveWithUndefined();
|
|
|
|
} else {
|
2021-11-10 03:14:34 +03:00
|
|
|
RefPtr<PromiseNativeHandler> l10nReadyHandler =
|
|
|
|
new L10nReadyHandler(mReady, this);
|
2020-04-30 20:56:54 +03:00
|
|
|
promise->AppendNativeHandler(l10nReadyHandler);
|
|
|
|
|
|
|
|
mState = DocumentL10nState::InitialTranslationTriggered;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
already_AddRefed<Promise> DocumentL10n::TranslateDocument(ErrorResult& aRv) {
|
2020-06-04 20:02:01 +03:00
|
|
|
MOZ_ASSERT(mState == DocumentL10nState::Constructed,
|
|
|
|
"This method should be called only from Constructed state.");
|
2020-04-30 20:56:54 +03:00
|
|
|
RefPtr<Promise> promise = Promise::Create(mGlobal, aRv);
|
|
|
|
|
|
|
|
Element* elem = mDocument->GetDocumentElement();
|
|
|
|
if (!elem) {
|
|
|
|
promise->MaybeRejectWithUndefined();
|
|
|
|
return promise.forget();
|
|
|
|
}
|
|
|
|
|
|
|
|
// 1. Collect all localizable elements.
|
|
|
|
Sequence<OwningNonNull<Element>> elements;
|
|
|
|
GetTranslatables(*elem, elements, aRv);
|
|
|
|
if (NS_WARN_IF(aRv.Failed())) {
|
|
|
|
promise->MaybeRejectWithUndefined();
|
|
|
|
return promise.forget();
|
|
|
|
}
|
|
|
|
|
|
|
|
RefPtr<nsXULPrototypeDocument> proto = mDocument->GetPrototype();
|
2019-09-12 19:07:49 +03:00
|
|
|
|
2019-07-26 23:17:21 +03:00
|
|
|
// 2. Check if the document has a prototype that may cache
|
|
|
|
// translated elements.
|
|
|
|
if (proto) {
|
|
|
|
// 2.1. Handle the case when we have proto.
|
|
|
|
|
2020-05-13 10:23:18 +03:00
|
|
|
// 2.1.1. Move elements that are not in the proto to a separate
|
2019-07-26 23:17:21 +03:00
|
|
|
// array.
|
|
|
|
Sequence<OwningNonNull<Element>> nonProtoElements;
|
|
|
|
|
|
|
|
uint32_t i = elements.Length();
|
|
|
|
while (i > 0) {
|
|
|
|
Element* elem = elements.ElementAt(i - 1);
|
|
|
|
MOZ_RELEASE_ASSERT(elem->HasAttr(nsGkAtoms::datal10nid));
|
|
|
|
if (!elem->HasElementCreatedFromPrototypeAndHasUnmodifiedL10n()) {
|
2020-05-08 14:33:53 +03:00
|
|
|
if (NS_WARN_IF(!nonProtoElements.AppendElement(*elem, fallible))) {
|
|
|
|
promise->MaybeRejectWithUndefined();
|
|
|
|
return promise.forget();
|
2020-04-24 17:34:15 +03:00
|
|
|
}
|
2019-07-26 23:17:21 +03:00
|
|
|
elements.RemoveElement(elem);
|
|
|
|
}
|
|
|
|
i--;
|
|
|
|
}
|
|
|
|
|
|
|
|
// We populate the sequence in reverse order. Let's bring it
|
|
|
|
// back to top->bottom one.
|
|
|
|
nonProtoElements.Reverse();
|
|
|
|
|
2020-09-28 09:29:44 +03:00
|
|
|
AutoAllowLegacyScriptExecution exemption;
|
|
|
|
|
2019-07-26 23:17:21 +03:00
|
|
|
nsTArray<RefPtr<Promise>> promises;
|
|
|
|
|
|
|
|
// 2.1.2. If we're not loading from cache, push the elements that
|
|
|
|
// are in the prototype to be translated and cached.
|
|
|
|
if (!proto->WasL10nCached() && !elements.IsEmpty()) {
|
2020-04-30 20:56:54 +03:00
|
|
|
RefPtr<Promise> translatePromise =
|
|
|
|
TranslateElements(elements, proto, aRv);
|
|
|
|
if (NS_WARN_IF(!translatePromise || aRv.Failed())) {
|
|
|
|
promise->MaybeRejectWithUndefined();
|
|
|
|
return promise.forget();
|
2019-07-26 23:17:21 +03:00
|
|
|
}
|
|
|
|
promises.AppendElement(translatePromise);
|
|
|
|
}
|
|
|
|
|
|
|
|
// 2.1.3. If there are elements that are not in the prototype,
|
|
|
|
// localize them without attempting to cache and
|
|
|
|
// independently of if we're loading from cache.
|
|
|
|
if (!nonProtoElements.IsEmpty()) {
|
|
|
|
RefPtr<Promise> nonProtoTranslatePromise =
|
2020-04-30 20:56:54 +03:00
|
|
|
TranslateElements(nonProtoElements, nullptr, aRv);
|
|
|
|
if (NS_WARN_IF(!nonProtoTranslatePromise || aRv.Failed())) {
|
|
|
|
promise->MaybeRejectWithUndefined();
|
|
|
|
return promise.forget();
|
2019-07-26 23:17:21 +03:00
|
|
|
}
|
|
|
|
promises.AppendElement(nonProtoTranslatePromise);
|
|
|
|
}
|
|
|
|
|
2019-09-12 19:07:49 +03:00
|
|
|
// 2.1.4. Collect promises with Promise::All (maybe empty).
|
2020-04-30 20:55:26 +03:00
|
|
|
AutoEntryScript aes(mGlobal, "DocumentL10n InitialTranslationCompleted");
|
2020-04-30 20:56:54 +03:00
|
|
|
promise = Promise::All(aes.cx(), promises, aRv);
|
2019-07-26 23:17:21 +03:00
|
|
|
} else {
|
|
|
|
// 2.2. Handle the case when we don't have proto.
|
|
|
|
|
|
|
|
// 2.2.1. Otherwise, translate all available elements,
|
2019-09-12 19:07:49 +03:00
|
|
|
// without attempting to cache them.
|
2020-04-30 20:56:54 +03:00
|
|
|
promise = TranslateElements(elements, nullptr, aRv);
|
2019-09-12 19:07:49 +03:00
|
|
|
}
|
2019-07-26 23:17:21 +03:00
|
|
|
|
2020-04-30 20:56:54 +03:00
|
|
|
if (NS_WARN_IF(!promise || aRv.Failed())) {
|
|
|
|
promise->MaybeRejectWithUndefined();
|
|
|
|
return promise.forget();
|
2019-07-26 23:17:21 +03:00
|
|
|
}
|
|
|
|
|
2020-04-30 20:56:54 +03:00
|
|
|
return promise.forget();
|
2018-09-07 04:20:18 +03:00
|
|
|
}
|
|
|
|
|
2021-02-13 23:10:35 +03:00
|
|
|
void DocumentL10n::MaybeRecordTelemetry() {
|
2021-07-14 21:18:17 +03:00
|
|
|
mozilla::TimeStamp initialTranslationEnd = mozilla::TimeStamp::Now();
|
2021-02-13 23:10:35 +03:00
|
|
|
|
|
|
|
nsAutoString documentURI;
|
|
|
|
ErrorResult rv;
|
|
|
|
rv = mDocument->GetDocumentURI(documentURI);
|
|
|
|
if (rv.Failed()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsCString key;
|
|
|
|
|
|
|
|
if (documentURI.Find("chrome://browser/content/browser.xhtml") == 0) {
|
|
|
|
if (mIsFirstBrowserWindow) {
|
|
|
|
key = "browser_first_window";
|
|
|
|
mIsFirstBrowserWindow = false;
|
|
|
|
} else {
|
|
|
|
key = "browser_new_window";
|
|
|
|
}
|
|
|
|
} else if (documentURI.Find("about:home") == 0) {
|
|
|
|
key = "about:home";
|
|
|
|
} else if (documentURI.Find("about:newtab") == 0) {
|
|
|
|
key = "about:newtab";
|
|
|
|
} else if (documentURI.Find("about:preferences") == 0) {
|
|
|
|
key = "about:preferences";
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
mozilla::TimeDuration totalTime(initialTranslationEnd -
|
|
|
|
mInitialTranslationStart);
|
|
|
|
Accumulate(Telemetry::L10N_DOCUMENT_INITIAL_TRANSLATION_TIME_US, key,
|
|
|
|
totalTime.ToMicroseconds());
|
|
|
|
}
|
|
|
|
|
2020-05-14 19:56:57 +03:00
|
|
|
void DocumentL10n::InitialTranslationCompleted(bool aL10nCached) {
|
2020-04-30 20:56:41 +03:00
|
|
|
if (mState >= DocumentL10nState::Ready) {
|
2019-01-26 02:14:03 +03:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-05-21 22:46:32 +03:00
|
|
|
Element* documentElement = mDocument->GetDocumentElement();
|
|
|
|
if (documentElement) {
|
|
|
|
SetRootInfo(documentElement);
|
|
|
|
}
|
|
|
|
|
2020-04-30 20:56:41 +03:00
|
|
|
mState = DocumentL10nState::Ready;
|
2019-01-26 02:14:03 +03:00
|
|
|
|
2021-02-13 23:10:35 +03:00
|
|
|
MaybeRecordTelemetry();
|
|
|
|
|
2020-05-14 19:56:57 +03:00
|
|
|
mDocument->InitialTranslationCompleted(aL10nCached);
|
2019-01-26 02:14:03 +03:00
|
|
|
|
2019-06-06 19:31:25 +03:00
|
|
|
// In XUL scenario contentSink is nullptr.
|
2019-01-26 02:14:03 +03:00
|
|
|
if (mContentSink) {
|
2020-04-30 20:55:26 +03:00
|
|
|
mContentSink->InitialTranslationCompleted();
|
2021-09-14 00:30:51 +03:00
|
|
|
mContentSink = nullptr;
|
2019-01-26 02:14:03 +03:00
|
|
|
}
|
2019-07-01 20:56:57 +03:00
|
|
|
|
2020-05-31 10:12:35 +03:00
|
|
|
// From now on, the state of Localization is unconditionally
|
|
|
|
// async.
|
2021-08-03 19:25:13 +03:00
|
|
|
SetAsync();
|
2019-01-26 02:14:03 +03:00
|
|
|
}
|
|
|
|
|
2020-04-30 20:56:54 +03:00
|
|
|
void DocumentL10n::ConnectRoot(nsINode& aNode, bool aTranslate,
|
|
|
|
ErrorResult& aRv) {
|
|
|
|
if (aTranslate) {
|
|
|
|
if (mState >= DocumentL10nState::InitialTranslationTriggered) {
|
|
|
|
RefPtr<Promise> promise = TranslateFragment(aNode, aRv);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DOMLocalization::ConnectRoot(aNode, aRv);
|
|
|
|
}
|
|
|
|
|
2018-09-07 04:20:18 +03:00
|
|
|
Promise* DocumentL10n::Ready() { return mReady; }
|
|
|
|
|
2019-09-03 08:40:02 +03:00
|
|
|
void DocumentL10n::OnCreatePresShell() { mMutations->OnCreatePresShell(); }
|