Closed
Bug 1374997
Opened 7 years ago
Closed 7 years ago
Print Preview doesn't return to the previewed tab after closing.
Categories
(Core :: Print Preview, defect)
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | wontfix |
firefox54 | --- | unaffected |
firefox55 | - | fixed |
firefox56 | --- | fixed |
People
(Reporter: bobowen, Assigned: bobowen)
References
Details
(Keywords: regression)
Attachments
(2 files)
1.23 KB,
patch
|
Gijs
:
review+
lizzard
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
1.98 KB,
patch
|
Gijs
:
review+
lizzard
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
[Tracking Requested - why for this release]: Regressed in Fx55. I noticed this while testing for bug 1365601. After bisection this was the regression range, which pointed to bug 1332386: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=084bebaffd26e5a0e3aa71b0751b95bce6ac356f&tochange=d338de5e37ecb849f80a27b101a53cce917e6bd6 I have a patch.
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #8879920 -
Flags: review?(mconley)
Comment 2•7 years ago
|
||
Comment on attachment 8879920 [details] [diff] [review] Make sure changing the tab is allowed, before we switch back after print preview Review of attachment 8879920 [details] [diff] [review]: ----------------------------------------------------------------- Stealing, r=me
Attachment #8879920 -
Flags: review?(mconley) → review+
Assignee | ||
Comment 3•7 years ago
|
||
I realised I could use this test to add a quick check for this.
Attachment #8879953 -
Flags: review?(gijskruitbosch+bugs)
Comment 4•7 years ago
|
||
Comment on attachment 8879953 [details] [diff] [review] Part 2: Add check to ensure we switch back to original tab after print preview Review of attachment 8879953 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/base/content/test/tabs/browser_tabSwitchPrintPreview.js @@ +2,5 @@ > const kURL2 = "data:text/html,I shouldn't be here!"; > > /** > * Verify that if we open a new tab and try to make it the selected tab while > * print preview is up, that doesn't happen. Nit: please update this comment. @@ +18,5 @@ > isnot(gBrowser.selectedTab, tab, "Selected tab should still not be the tab we added"); > is(gBrowser.selectedTab, PrintPreviewListener._printPreviewTab, "Selected tab should still be the print preview tab"); > PrintUtils.exitPrintPreview(); > await BrowserTestUtils.waitForCondition(() => !gInPrintPreviewMode, "should be in print preview mode"); > + is(gBrowser.selectedTab, originalTab, "Selected tab should be back to the original tab that we print previewed"); I wonder if this should wait for the tab switch to be complete... I guess it doesn't really matter? If it works like this on infra, r=me. Alternatively, use: let tabSwitched = BrowserTestUtils.switchTab(gBrowser, () => {}); before calling exitPrintPreview(), and then await tabSwitched before checking the selected tab.
Attachment #8879953 -
Flags: review?(gijskruitbosch+bugs) → review+
Pushed by bobowencode@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/68e313f8c77c Part 1: Make sure changing the tab is allowed, before we switch back after print preview. r=Gijs https://hg.mozilla.org/integration/mozilla-inbound/rev/8724211bb0bb Part 2: Add check to ensure we switch back to original tab after print preview. r=Gijs
Comment 6•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/68e313f8c77c https://hg.mozilla.org/mozilla-central/rev/8724211bb0bb
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Comment 7•7 years ago
|
||
Please request Beta approval on this when you get a chance.
status-firefox-esr52:
--- → wontfix
Flags: needinfo?(bobowencode)
Assignee | ||
Comment 8•7 years ago
|
||
Comment on attachment 8879920 [details] [diff] [review] Make sure changing the tab is allowed, before we switch back after print preview Approval Request Comment [Feature/Bug causing the regression]: Bug 1332386 [User impact if declined]: On exiting from Print Preview the incorrect tab will be shown. [Is this code covered by automated tests?]: Yes, new test for this bug. [Has the fix been verified in Nightly?]: Yes [Needs manual test from QE? If yes, steps to reproduce]: I don't think it desperately needs it, but it's pretty quick and simple to test. [List of other uplifts needed for the feature/fix]: Other patch in this bug. [Is the change risky?]: No [Why is the change risky/not risky?]: Very simple change to make sure the existing attempt to select the correct tab works. [String changes made/needed]: No
Flags: needinfo?(bobowencode)
Attachment #8879920 -
Flags: approval-mozilla-beta?
Assignee | ||
Comment 9•7 years ago
|
||
Comment on attachment 8879953 [details] [diff] [review] Part 2: Add check to ensure we switch back to original tab after print preview See comment 8. (Test that landed was an improved version.)
Attachment #8879953 -
Flags: approval-mozilla-beta?
Comment 10•7 years ago
|
||
Comment on attachment 8879920 [details] [diff] [review] Make sure changing the tab is allowed, before we switch back after print preview Fix for regression in 55, includes a test, let's bring it to beta 5.
Attachment #8879920 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 11•7 years ago
|
||
Comment on attachment 8879953 [details] [diff] [review] Part 2: Add check to ensure we switch back to original tab after print preview Tests. Yay!
Attachment #8879953 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 12•7 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/a2de62b17ca8 https://hg.mozilla.org/releases/mozilla-beta/rev/967c6d81513d
Flags: in-testsuite+
Updated•7 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•