diff options
Diffstat (limited to 'Tools/DumpRenderTree/win/WorkQueueItemWin.cpp')
-rw-r--r-- | Tools/DumpRenderTree/win/WorkQueueItemWin.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tools/DumpRenderTree/win/WorkQueueItemWin.cpp b/Tools/DumpRenderTree/win/WorkQueueItemWin.cpp index a24ca37..49f0667 100644 --- a/Tools/DumpRenderTree/win/WorkQueueItemWin.cpp +++ b/Tools/DumpRenderTree/win/WorkQueueItemWin.cpp @@ -89,6 +89,16 @@ bool LoadHTMLStringItem::invoke() const BSTR contentBSTR = SysAllocString(content.c_str()); BSTR baseURLBSTR = SysAllocString(baseURL.c_str()); + if (m_unreachableURL) { + wstring unreachableURL = jsStringRefToWString(m_unreachableURL.get()); + BSTR unreachableURLBSTR = SysAllocString(unreachableURL.c_str()); + frame->loadAlternateHTMLString(contentBSTR, baseURLBSTR, unreachableURLBSTR); + SysFreeString(contentBSTR); + SysFreeString(baseURLBSTR); + SysFreeString(unreachableURLBSTR); + return true; + } + frame->loadHTMLString(contentBSTR, baseURLBSTR); SysFreeString(contentBSTR); |