|
|
Created:
4 years, 5 months ago by lfg Modified:
4 years, 5 months ago CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, site-isolation-reviews_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionIgnore show messages from RemoteFrames when the WebContents is hidden.
BUG=628325
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Committed: https://crrev.com/9462cefe4c909d9be204df0fe005a5c2517741d7
Cr-Commit-Position: refs/heads/master@{#406153}
Patch Set 1 #
Total comments: 5
Patch Set 2 : comments #
Total comments: 2
Patch Set 3 : comments #
Messages
Total messages: 32 (19 generated)
Description was changed from ========== Ignore show messages from RemoteFrames when the WebContents is hidden. BUG=628325 ========== to ========== Ignore show messages from RemoteFrames when the WebContents is hidden. BUG=628325 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
The CQ bit was checked by lfg@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lfg@chromium.org changed reviewers: + kenrb@chromium.org
Please take a look. This should fix the blocking issue, but there are still a couple of issues I noticed when looking through this code, and I filled bugs 628700 and 628704 for follow-up work.
Description was changed from ========== Ignore show messages from RemoteFrames when the WebContents is hidden. BUG=628325 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Ignore show messages from RemoteFrames when the WebContents is hidden. BUG=628325 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2154833002/diff/1/content/browser/frame_host/... File content/browser/frame_host/cross_process_frame_connector.cc (right): https://codereview.chromium.org/2154833002/diff/1/content/browser/frame_host/... content/browser/frame_host/cross_process_frame_connector.cc:275: ->OnRenderFrameProxyVisibilityChanged(visible); Why is the check done in the WebContents rather than here? https://codereview.chromium.org/2154833002/diff/1/content/browser/renderer_ho... File content/browser/renderer_host/render_widget_host_delegate.h (right): https://codereview.chromium.org/2154833002/diff/1/content/browser/renderer_ho... content/browser/renderer_host/render_widget_host_delegate.h:197: // Returns true if this RenderWidgetHost should be hidden. I don't think this comment is very clear. My interpretation of this method would be that it asks the delegate if the RenderWidgetHost can be shown, in the event that something other than the WebContents is attempting to enable visibility. It's a bit subtle and should be made more clear.
https://codereview.chromium.org/2154833002/diff/1/content/browser/frame_host/... File content/browser/frame_host/cross_process_frame_connector.cc (right): https://codereview.chromium.org/2154833002/diff/1/content/browser/frame_host/... content/browser/frame_host/cross_process_frame_connector.cc:275: ->OnRenderFrameProxyVisibilityChanged(visible); On 2016/07/18 17:11:45, kenrb wrote: > Why is the check done in the WebContents rather than here? No particular reason, I just thought the check in WebContents is simpler. Why do you think it should be here? Since we are crossing WebContents boundaries here, we would have to check the delegate of the parent view instead of the delegate of the view which could be more confusing than doing the check in the WebContents. https://codereview.chromium.org/2154833002/diff/1/content/browser/renderer_ho... File content/browser/renderer_host/render_widget_host_delegate.h (right): https://codereview.chromium.org/2154833002/diff/1/content/browser/renderer_ho... content/browser/renderer_host/render_widget_host_delegate.h:197: // Returns true if this RenderWidgetHost should be hidden. On 2016/07/18 17:11:45, kenrb wrote: > I don't think this comment is very clear. My interpretation of this method would > be that it asks the delegate if the RenderWidgetHost can be shown, in the event > that something other than the WebContents is attempting to enable visibility. > It's a bit subtle and should be made more clear. Yes, that interpretation is correct. I tried to clarify the comments based on your suggestion, let me know what you think.
The CQ bit was checked by lfg@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm https://codereview.chromium.org/2154833002/diff/1/content/browser/frame_host/... File content/browser/frame_host/cross_process_frame_connector.cc (right): https://codereview.chromium.org/2154833002/diff/1/content/browser/frame_host/... content/browser/frame_host/cross_process_frame_connector.cc:275: ->OnRenderFrameProxyVisibilityChanged(visible); On 2016/07/18 17:44:00, lfg wrote: > On 2016/07/18 17:11:45, kenrb wrote: > > Why is the check done in the WebContents rather than here? > > No particular reason, I just thought the check in WebContents is simpler. Why do > you think it should be here? > > Since we are crossing WebContents boundaries here, we would have to check the > delegate of the parent view instead of the delegate of the view which could be > more confusing than doing the check in the WebContents. Okay, that's fine. The only advantage of having it here would be to have the check in the same place for all RWHVCFs. https://codereview.chromium.org/2154833002/diff/20001/content/browser/rendere... File content/browser/renderer_host/render_widget_host_delegate.h (right): https://codereview.chromium.org/2154833002/diff/20001/content/browser/rendere... content/browser/renderer_host/render_widget_host_delegate.h:197: // Returns true if this RenderWidgetHost should be hidden. This is used by the This is better. Maybe in the first sentence replace "should be hidden" with "should remain hidden".
https://codereview.chromium.org/2154833002/diff/20001/content/browser/rendere... File content/browser/renderer_host/render_widget_host_delegate.h (right): https://codereview.chromium.org/2154833002/diff/20001/content/browser/rendere... content/browser/renderer_host/render_widget_host_delegate.h:197: // Returns true if this RenderWidgetHost should be hidden. This is used by the On 2016/07/18 18:05:28, kenrb wrote: > This is better. Maybe in the first sentence replace "should be hidden" with > "should remain hidden". Done.
lfg@chromium.org changed reviewers: + alexmos@chromium.org
+alexmos, please take a look.
LGTM, thanks for fixing!
The CQ bit was checked by lfg@chromium.org to run a CQ dry run
lfg@chromium.org changed reviewers: + nasko@chromium.org
+nasko for owners review.
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
LGTM
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by lfg@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from kenrb@chromium.org Link to the patchset: https://codereview.chromium.org/2154833002/#ps40001 (title: "comments")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Ignore show messages from RemoteFrames when the WebContents is hidden. BUG=628325 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Ignore show messages from RemoteFrames when the WebContents is hidden. BUG=628325 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
CQ bit was unchecked.
Message was sent while issue was closed.
Description was changed from ========== Ignore show messages from RemoteFrames when the WebContents is hidden. BUG=628325 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== Ignore show messages from RemoteFrames when the WebContents is hidden. BUG=628325 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/9462cefe4c909d9be204df0fe005a5c2517741d7 Cr-Commit-Position: refs/heads/master@{#406153} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/9462cefe4c909d9be204df0fe005a5c2517741d7 Cr-Commit-Position: refs/heads/master@{#406153} |