Skip to content

Commit

Permalink
Settings webview display 'none' and back doesn't reload.
Browse files Browse the repository at this point in the history
  • Loading branch information
janRucka committed Feb 6, 2017
1 parent 43ab7bc commit e4f0eb0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions extensions/browser/guest_view/web_view/web_view_guest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1216,9 +1216,11 @@ void WebViewGuest::ApplyAttributes(const base::DictionaryValue& params) {

// Only read the src attribute if this is not a New Window API flow.
if (!is_pending_new_window) {
std::string src;
if (params.GetString(webview::kAttributeSrc, &src))
NavigateGuest(src, true /* force_navigation */);
std::string src, partition;
// if partition is dirty fix so we don't reload webview after display none -> display flex
if (params.GetString(webview::kAttributeSrc, &src)
&& params.GetString(webview::kStoragePartitionId, &partition))
NavigateGuest(src, true /* force_navigation */);
}
}

Expand Down

0 comments on commit e4f0eb0

Please sign in to comment.