Bug 1539884 - Part 19: Mark XMLDocument::EndLoad as CAN_RUN_SCRIPT_BOUNDARY r=masayuki

Depends on D134109

Differential Revision: https://phabricator.services.mozilla.com/D134110
This commit is contained in:
Kagami Sascha Rosylight 2021-12-17 13:27:52 +00:00
parent 65777f8c50
commit 593535bad1
2 changed files with 4 additions and 2 deletions

View File

@ -309,7 +309,8 @@ void XMLDocument::EndLoad() {
// document was loaded as pure data without any presentation
// attached to it.
WidgetEvent event(true, eLoad);
EventDispatcher::Dispatch(ToSupports(this), nullptr, &event);
// TODO: Bug 1506441
EventDispatcher::Dispatch(MOZ_KnownLive(ToSupports(this)), nullptr, &event);
}
}

View File

@ -42,7 +42,8 @@ class XMLDocument : public Document {
bool aReset = true,
nsIContentSink* aSink = nullptr) override;
virtual void EndLoad() override;
// TODO: Convert this to MOZ_CAN_RUN_SCRIPT (bug 1415230, bug 1535398)
MOZ_CAN_RUN_SCRIPT_BOUNDARY virtual void EndLoad() override;
virtual nsresult Init() override;