Platform HTMLViewer.LoadPage "gotcha"

Just a note so others will avoid the debugging I had to go through yesterday. It seems that HTMLViewer.LoadPage is handled differently on Mac vs. Windows. On the former, it executes as soon as the call is made, but on Windows, it appears to execute during next idle time, or at least when the calling method ends. This changes when the CancelLoad event is triggered, which matters if you’ve set flags in the calling method.

Are you using Native or WebKit renderer? I found that the Windows WebKit (actually Chromium Embedded) requires the calling method to complete first and any calls made in the calling method will run after it has exited… (you can see this if you make heavy use of .ExecuteJavascript)

Happens with both.