[Webkit-unassigned] [Bug 134664] Timeout when calling dom method in WebExtension via dbus
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 10 13:55:48 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=134664
Jiří Janoušek <janousek.jiri at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |janousek.jiri at gmail.com
--- Comment #3 from Jiří Janoušek <janousek.jiri at gmail.com> 2014-07-10 13:56:05 PST ---
Hi Marcel,
I've modified your code to perform DOM manipulation in an idle callback and it does work :-)
--- dbuswebkit(0)/WebExtension.vala 2014-06-30 21:35:54.000000000 +0200
+++ dbuswebkit/WebExtension.vala 2014-07-10 22:50:22.234275010 +0200
@@ -69,11 +69,15 @@
public void ClickFAIL() {
stdout.printf("Controler:ClickFAIL1\n");
+ Idle.add(() => {
+ DOMElement element = mControler.mDom.get_element_by_id("test");
+ ((DOMHTMLElement)element).click();
+
- DOMElement element = mControler.mDom.get_element_by_id("test");
- ((DOMHTMLElement)element).click();
+ stdout.printf("Controler:ClickFAIL2\n");
+ return false;
+ });
- stdout.printf("Controler:ClickFAIL2\n");
}
public void ClickOK() {
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list