mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
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:
parent
373fbdc037
commit
5aacc9192f
@ -876,5 +876,3 @@ void nsHTMLDocument::GetFormsAndFormControls(nsContentList** aFormList,
|
||||
NS_ADDREF(*aFormList = holder->mFormList);
|
||||
NS_ADDREF(*aFormControlList = holder->mFormControlList);
|
||||
}
|
||||
|
||||
void nsHTMLDocument::UserInteractionForTesting() { SetUserHasInteracted(); }
|
||||
|
@ -130,8 +130,6 @@ class nsHTMLDocument : public mozilla::dom::Document {
|
||||
void GetFormsAndFormControls(nsContentList** aFormList,
|
||||
nsContentList** aFormControlList);
|
||||
|
||||
void UserInteractionForTesting();
|
||||
|
||||
protected:
|
||||
~nsHTMLDocument();
|
||||
|
||||
|
@ -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();
|
||||
};
|
||||
|
@ -10,8 +10,3 @@ interface HTMLDocument : Document {
|
||||
[Throws]
|
||||
getter object (DOMString name);
|
||||
};
|
||||
|
||||
partial interface HTMLDocument {
|
||||
[ChromeOnly]
|
||||
void userInteractionForTesting();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user