Bug 1569677 - Part 2: Move HTMLDocument.userInteractionForTesting to Document; r=bzbarsky

Differential Revision: https://phabricator.services.mozilla.com/D39724

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ehsan Akhgari 2019-07-29 19:32:53 +00:00
parent 373fbdc037
commit 5aacc9192f
4 changed files with 7 additions and 9 deletions

View File

@ -876,5 +876,3 @@ void nsHTMLDocument::GetFormsAndFormControls(nsContentList** aFormList,
NS_ADDREF(*aFormList = holder->mFormList);
NS_ADDREF(*aFormControlList = holder->mFormControlList);
}
void nsHTMLDocument::UserInteractionForTesting() { SetUserHasInteracted(); }

View File

@ -130,8 +130,6 @@ class nsHTMLDocument : public mozilla::dom::Document {
void GetFormsAndFormControls(nsContentList** aFormList,
nsContentList** aFormControlList);
void UserInteractionForTesting();
protected:
~nsHTMLDocument();

View File

@ -671,3 +671,10 @@ partial interface Document {
[ChromeOnly, Pure]
readonly attribute NodeList blockedNodesByClassifier;
};
// Extension to programmatically simulate a user interaction on a document,
// used for testing.
partial interface Document {
[ChromeOnly, BinaryName="setUserHasInteracted"]
void userInteractionForTesting();
};

View File

@ -10,8 +10,3 @@ interface HTMLDocument : Document {
[Throws]
getter object (DOMString name);
};
partial interface HTMLDocument {
[ChromeOnly]
void userInteractionForTesting();
};