Bug 160189
Summary: | [GTK][WK2] Feature request: would like to receive notification on document height change | ||
---|---|---|---|
Product: | WebKit | Reporter: | aidanholm+webkit |
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | bugs-noreply |
Priority: | P2 | ||
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
aidanholm+webkit
I'm currently porting Luakit to the WebKit 2 API, and one thing giving me an inordinate amount of trouble is implementing a robust port of the scroll position indicator.
Currently I'm monitoring DOMSubtreeModified events on a web extension and updating a UI-process cache of the document height over IPC, in an effort to keep the same synchronous API that Luakit provides to Lua scripts. This approach has a considerable performance cost and is also rather unreliable.
I'd like the ability to monitor changes to document height; something like a "notify::scroll-height" signal on a WebKitDOMElement, as this was what I tried first.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |