[X2Go-Commits] [pale-moon] 17/22: Ensure the right anonymous element is focused when calling input.focus()

git-admin at x2go.org git-admin at x2go.org
Sat Sep 29 03:25:24 CEST 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch upstream/palemoon-master
in repository pale-moon.

commit 8b999f2be31cc244afa50f122ff34663c8243b1e
Author: Pale Moon <git-repo at palemoon.org>
Date:   Sun Jul 1 16:57:15 2018 +0200

    Ensure the right anonymous element is focused when calling input.focus()
---
 dom/html/HTMLInputElement.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dom/html/HTMLInputElement.cpp b/dom/html/HTMLInputElement.cpp
index bae9121..06e8495 100644
--- a/dom/html/HTMLInputElement.cpp
+++ b/dom/html/HTMLInputElement.cpp
@@ -3191,7 +3191,8 @@ HTMLInputElement::Focus(ErrorResult& aError)
     nsNumberControlFrame* numberControlFrame =
       do_QueryFrame(GetPrimaryFrame());
     if (numberControlFrame) {
-      HTMLInputElement* textControl = numberControlFrame->GetAnonTextControl();
+      RefPtr<HTMLInputElement> textControl =
+        numberControlFrame->GetAnonTextControl();
       if (textControl) {
         textControl->Focus(aError);
         return;

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pale-moon.git


More information about the x2go-commits mailing list