Bug 160189

Summary: [GTK][WK2] Feature request: would like to receive notification on document height change
Product: WebKit Reporter: aidanholm+webkit
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

aidanholm+webkit
Reported 2016-07-26 02:27:03 PDT
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
Note You need to log in before you can comment on or make changes to this bug.