Commit 2f6ba0f7 authored by Brandon Wylie's avatar Brandon Wylie Committed by Commit Bot

Selectively reload CCT file previews when reparenting

Bug: 1105810
Change-Id: If5f201407af5b666e898fb14c0cdc48078342cde
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2310771Reviewed-by: default avatarPeter Conn <peconn@chromium.org>
Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Commit-Queue: Brandon Wylie <wylieb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791929}
parent 01dbe301
......@@ -29,6 +29,7 @@ import org.chromium.chrome.browser.tab.TabDelegateFactory;
import org.chromium.chrome.browser.tab.TabLaunchType;
import org.chromium.chrome.browser.tab.TabParentIntent;
import org.chromium.chrome.browser.tab.TabState;
import org.chromium.components.embedder_support.util.UrlConstants;
import org.chromium.components.url_formatter.UrlFormatter;
import org.chromium.content_public.browser.LoadUrlParams;
import org.chromium.content_public.browser.WebContents;
......@@ -391,6 +392,11 @@ public class ChromeTabCreator extends TabCreator {
mActivity.getCompositorViewHolder(), mActivity.getWindowAndroid(),
createDefaultTabDelegateFactory()),
params.getFinalizeCallback());
// TODO(crbug.com/1108562): This is a temporary fix for RBS issue crbug.com/1105810,
// investigate and fix the root cause.
if (tab.getUrl().getScheme().equals(UrlConstants.FILE_SCHEME)) {
tab.reloadIgnoringCache();
}
}
if (tab == null) {
tab = TabBuilder.createFromFrozenState()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment