[Webkit-unassigned] [Bug 106761] [Qt] Using sleep to delay in http server reponse causes QtWebKit page loading blocked

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 24 17:59:36 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=106761





--- Comment #17 from Chen Zhixiang <chenzx at cn.fujitsu.com>  2013-01-24 18:01:31 PST ---
I've tried to monitor QNetworkReplyHandler class as you said, but this method has 3 problems:

(1)User has to maintain QTimer in his app, and the code become dirty;
(2)use abort on QNetworkReplyHandler, it seems I can stop the socket io thread, but the upper GUI thread doesn't get notification, the WebView loading procedure is not stopped. Perhaps i could post a special message to WebView to stop loading, but, again! the code will be too nasty.
(3)I prefer the "set a config, and then receive a notification callback" way, this just requires more API flexibility and more user usability.

The modification to qeventdispatcher_win.cpp is very hack-ish, but it works, since the internal impl. in qeventdispatcher_unix.cpp is not the same (it used fd_set), but I've figured out a way to modify it. Just need to verify the idea...

-- 
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