Commit 96ef3063 authored by Justin Cohen's avatar Justin Cohen Committed by Commit Bot

[ios/web] Always keep transient views on top.

In some cases, an transientContentView may be displayed when the
CRWWebControllerContainerView has no window.  When the
CRWWebControllerContainerView is put back in a window and the main
webViewContentView is restored, it will obscure the transientContentView.

Instead, always keep the transientContentView on top.

Bug: 949204
Change-Id: Ifa992620958ac3b7cfeb85d4451e2d13beee7810
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1559894
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Auto-Submit: Justin Cohen <justincohen@chromium.org>
Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#649297}
parent 1a71ff1e
......@@ -134,6 +134,7 @@
if (self.transientContentView) {
if (!self.transientContentView.superview)
[self addSubview:self.transientContentView];
[self bringSubviewToFront:self.transientContentView];
self.transientContentView.frame = self.bounds;
}
}
......
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