Closed Bug 1359651 Opened 8 years ago Closed 8 years ago

Add a mochitest for bug 1301056

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 55
Tracking Status
firefox54 --- fixed
firefox55 --- fixed

People

(Reporter: mrbkap, Assigned: mrbkap)

References

Details

Attachments

(1 file)

The fix for bug 1301056 caused bug 1350058 and there weren't any automated tests to alert us ahead of time.
Felipe, this patch works fine for e10s but not for non-e10s. I don't know what aWindowContext is in non-e10s. I'm tempted to just disable the test for non-e10s.
The second version of this patch didn't restore the original helper app dialog after it was done and that was causing problems on try. The final version only runs on e10s and restores everything properly.
Comment on attachment 8861700 [details] Bug 1359651 - Add a mochitest for auto-closing behavior when dealing with an external file type. https://reviewboard.mozilla.org/r/133678/#review136960 This looks fine to me, but I never worked on a download test (or it was a long time ago). Does the downloaded file need to be cleaned up by the test? Or does it go to a temporary location that gets automatically cleaned up later? You should probably check this with someone who knows before landing
Attachment #8861700 - Flags: review?(felipc) → review+
Calling cancel on aLauncher will delete the temporary file. See, e.g. [1]. Poking around the mSaver code also seems to remove the temporary file if we haven't finished writing to it already. [1] http://searchfox.org/mozilla-central/rev/876c7dd30586f9c6f9c99ef7444f2d73c7acfe7c/uriloader/exthandler/nsExternalHelperAppService.cpp#2486
Pushed by mrbkap@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/64a46281b300 Add a mochitest for auto-closing behavior when dealing with an external file type. r=Felipe
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Hi :mrbkap, Per comment #21 in bug 1301056, can you create an uplift request for Beta54?
Flags: needinfo?(mrbkap)
Comment on attachment 8861700 [details] Bug 1359651 - Add a mochitest for auto-closing behavior when dealing with an external file type. Approval Request Comment [Feature/Bug causing the regression]: n/a (bug 1359651) [User impact if declined]: none, test only [Is this code covered by automated tests?]: this is a test [Has the fix been verified in Nightly?]: [Needs manual test from QE? If yes, steps to reproduce]: [List of other uplifts needed for the feature/fix]: n/a [Is the change risky?]: no, test only. [Why is the change risky/not risky?]: n/a [String changes made/needed]: n/a
Flags: needinfo?(mrbkap)
Attachment #8861700 - Flags: approval-mozilla-beta?
Comment on attachment 8861700 [details] Bug 1359651 - Add a mochitest for auto-closing behavior when dealing with an external file type. Add tests for bug 1301056. Beta54+. Should be in 54 beta 4.
Attachment #8861700 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Depends on: 1360095
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: