|
|
DescriptionFix print preview close in gmail.
Print preview closed in gmail when gmail navigated to a new
URL fragment. This occurred if print preview was requested
just after making changes to an e-mail draft in a compose
message window. Added check that will ensure print preview
remains open in this case.
BUG=614998
Committed: https://crrev.com/85092cd8d7f4576aabaf2b9de9064978319c7388
Cr-Commit-Position: refs/heads/master@{#408860}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Moved logic for initiator nav after dialog nav #Messages
Total messages: 23 (15 generated)
Description was changed from ========== Fix print preview close in gmail. Print preview closed in gmail when gmail navigated to a new URL. This occurred if print preview was requested just after making changes to an e-mail draft in a compose message window. Added test that will not cause print preview to close in this case. BUG= 614998 ========== to ========== Fix print preview close in gmail. Print preview closed in gmail when gmail navigated to a new URL. This occurred if print preview was requested just after making changes to an e-mail draft in a compose message window. Added test that will not cause print preview to close in this case. BUG= 614998 ==========
rbpotter@chromium.org changed reviewers: + thestig@chromium.org
https://codereview.chromium.org/2201543002/diff/1/chrome/browser/printing/pri... File chrome/browser/printing/print_preview_dialog_controller.cc (right): https://codereview.chromium.org/2201543002/diff/1/chrome/browser/printing/pri... chrome/browser/printing/print_preview_dialog_controller.cc:324: if (nav_type == content::NAVIGATION_TYPE_EXISTING_PAGE && This condition covers the case that appears for the gmail update transition. I have tested several other possible page transitions (e.g. navigating to a new page, hitting refresh, navigating to a new tab via a link from print preview's New Tab preview page, and manually making changes to the URL in gmail) that should trigger a print preview close, and these all still work. Let me know if you can think of a specific case that should trigger a print preview close that might have a false positive here, and I will test.
The CQ bit was checked by rbpotter@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...
https://codereview.chromium.org/2201543002/diff/1/chrome/browser/printing/pri... File chrome/browser/printing/print_preview_dialog_controller.cc (right): https://codereview.chromium.org/2201543002/diff/1/chrome/browser/printing/pri... chrome/browser/printing/print_preview_dialog_controller.cc:321: if (details) { Isn't this handling navigation for both the initiator and the preview WebContents? Should it only handle the initiator's navigation? In which case, this probably should come after the "if (contents == preview_dialog)" block below.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2201543002/diff/1/chrome/browser/printing/pri... File chrome/browser/printing/print_preview_dialog_controller.cc (right): https://codereview.chromium.org/2201543002/diff/1/chrome/browser/printing/pri... chrome/browser/printing/print_preview_dialog_controller.cc:321: if (details) { On 2016/07/30 00:36:30, Lei Zhang wrote: > Isn't this handling navigation for both the initiator and the preview > WebContents? Should it only handle the initiator's navigation? In which case, > this probably should come after the "if (contents == preview_dialog)" block > below. When the gmail auto-navigation happens, the contents == preview_dialog block below never gets hit, which is why RemoveInitiator is called at the end of the function. So contents != preview_dialog for this case, which is why I put the logic here. Not sure why this is the case though - any thoughts ?
The CQ bit was checked by rbpotter@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...
https://codereview.chromium.org/2201543002/diff/1/chrome/browser/printing/pri... File chrome/browser/printing/print_preview_dialog_controller.cc (right): https://codereview.chromium.org/2201543002/diff/1/chrome/browser/printing/pri... chrome/browser/printing/print_preview_dialog_controller.cc:321: if (details) { On 2016/07/30 00:36:30, Lei Zhang wrote: > Isn't this handling navigation for both the initiator and the preview > WebContents? Should it only handle the initiator's navigation? In which case, > this probably should come after the "if (contents == preview_dialog)" block > below. Done.
Description was changed from ========== Fix print preview close in gmail. Print preview closed in gmail when gmail navigated to a new URL. This occurred if print preview was requested just after making changes to an e-mail draft in a compose message window. Added test that will not cause print preview to close in this case. BUG= 614998 ========== to ========== Fix print preview close in gmail. Print preview closed in gmail when gmail navigated to a new URL. This occurred if print preview was requested just after making changes to an e-mail draft in a compose message window. Added test that will not cause print preview to close in this case. BUG= 614998 ==========
lgtm
Description was changed from ========== Fix print preview close in gmail. Print preview closed in gmail when gmail navigated to a new URL. This occurred if print preview was requested just after making changes to an e-mail draft in a compose message window. Added test that will not cause print preview to close in this case. BUG= 614998 ========== to ========== Fix print preview close in gmail. Print preview closed in gmail when gmail navigated to a new URL fragment. This occurred if print preview was requested just after making changes to an e-mail draft in a compose message window. Added check that will ensure print preview remains open in this case. BUG= 614998 ==========
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 rbpotter@chromium.org
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 ========== Fix print preview close in gmail. Print preview closed in gmail when gmail navigated to a new URL fragment. This occurred if print preview was requested just after making changes to an e-mail draft in a compose message window. Added check that will ensure print preview remains open in this case. BUG= 614998 ========== to ========== Fix print preview close in gmail. Print preview closed in gmail when gmail navigated to a new URL fragment. This occurred if print preview was requested just after making changes to an e-mail draft in a compose message window. Added check that will ensure print preview remains open in this case. BUG= 614998 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Fix print preview close in gmail. Print preview closed in gmail when gmail navigated to a new URL fragment. This occurred if print preview was requested just after making changes to an e-mail draft in a compose message window. Added check that will ensure print preview remains open in this case. BUG= 614998 ========== to ========== Fix print preview close in gmail. Print preview closed in gmail when gmail navigated to a new URL fragment. This occurred if print preview was requested just after making changes to an e-mail draft in a compose message window. Added check that will ensure print preview remains open in this case. BUG= 614998 Committed: https://crrev.com/85092cd8d7f4576aabaf2b9de9064978319c7388 Cr-Commit-Position: refs/heads/master@{#408860} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/85092cd8d7f4576aabaf2b9de9064978319c7388 Cr-Commit-Position: refs/heads/master@{#408860} |