Skip to content

Commit 956208f

Browse files
authored
Merge pull request #270 from ThinBridge/avoid-favicon-bug
Avoid a favicon loading bug
2 parents cc1983b + 4f1280c commit 956208f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

client_app.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ void ClientApp::OnBeforeCommandLineProcessing(const CefString& process_type, Cef
2424
{
2525
PROC_TIME(OnBeforeCommandLineProcessing)
2626

27+
//CEF131では、GoBackとGoForwardでキャッシュが有効だとFaviconが更新されない問題がある。
28+
//そのため、キャッシュを無効化する。
29+
//https://github.com/chromiumembedded/cef/issues/3874
30+
#if CHROME_VERSION_MAJOR >= 131
31+
command_line->AppendSwitch(_T("disable-back-forward-cache"));
32+
#endif
33+
2734
//GetAuthCredentialsが動かなくなったので2019-06-13
2835
//command_line->AppendSwitchWithValue(_T("disable-features"), _T("NetworkService"));
2936
//2019-07-24 動くようになった。

0 commit comments

Comments
 (0)