WebKitWebPage:document-loaded is never called for documents restored from the page cache. It causes a weird glitch in the Epiphany about:overview. Open the overview, navigate to another page, navigate back, then middle-click or Ctrl+click on an overview thumbnail. All the overview thumbnails get duplicated. It happens because Epiphany is expecting the document-loaded signal to be called when the page is loaded and gets very confused when this doesn't occur. I think it should probably be emitted as it's quite a trap for applications otherwise, but if this is the desired behavior then it really needs to be documented.
Or maybe it would be an even bigger trap for document-loaded to be emitted multiple times for the same document. Then we should just... *document* this. ;)
I don't think this is GTK+ specific bug, we just emit document-loaded when didFinishDocumentLoadForFrame callback is called.
(In reply to comment #1) > Or maybe it would be an even bigger trap for document-loaded to be emitted > multiple times for the same document. Then we should just... *document* > this. ;) I've been thinking about this. There really needs to be some way to find out when a WebKitWebPage has loaded a new page, and document-loaded is surely the right way to do that.