Quote:
Originally Posted by DNSB
If it's any help, here is my log file from running the latest code. Oddly, I noticed that when I opened the stylesheet, Preview went to the top of the file. While I was typing in the stylesheet adding the body { color: red; }, Preview refreshed a few more times with some of them going to the spot where I had clicked but most still landing at the top of the file.
Edit: the test was run with my standard setup. I then added QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu" and QSG_RHI_BACKEND=opengl to the environmental variables and the only change noticed was that Preview never went back to the correct location.
|
Thanks,
Here is the problem in a nutshell from you log file:
Code:
Debug: clearing Preview's httpcache
Debug: Loading a page started
Debug: Loading progress 0
Debug: linkHovered received ""
Debug: Loading progress 100
Debug: UpdateFinishedState with okay true
Debug: WebPageJavascriptOnLoad start
Debug: WebPageJavascriptOnLoad end
Debug: WebPageJavascriptOnLoad with m_CustomSetDocumentInProgress: true
Debug: ViewPreview Cache Cleared
We start to clear the httpcache but before it fully clears, we have already started reloading Preview, and not just started it and in this instance we have loaded the entire thing BEFORE our cache clear is ever finished.
So we are adding files to the ceche while we are simultaneously clearing it.
I think the only way to handle this is to split our custom load into two pieces with the first piece just clearing the cache which invokes the seond piece only when it is complete in a callback.
UUUUUggggghhhhhhhh!