Closed
Bug 1359651
Opened 8 years ago
Closed 8 years ago
Add a mochitest for bug 1301056
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 55
People
(Reporter: mrbkap, Assigned: mrbkap)
References
Details
Attachments
(1 file)
59 bytes,
text/x-review-board-request
|
Felipe
:
review+
gchang
:
approval-mozilla-beta+
|
Details |
The fix for bug 1301056 caused bug 1350058 and there weren't any automated tests to alert us ahead of time.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•8 years ago
|
||
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.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•8 years ago
|
||
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 6•8 years ago
|
||
mozreview-review |
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+
Assignee | ||
Comment 7•8 years ago
|
||
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
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 10•8 years ago
|
||
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
Comment 11•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Comment 12•8 years ago
|
||
Hi :mrbkap,
Per comment #21 in bug 1301056, can you create an uplift request for Beta54?
Flags: needinfo?(mrbkap)
Assignee | ||
Comment 13•8 years ago
|
||
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?
Updated•8 years ago
|
status-firefox54:
--- → affected
Comment 14•8 years ago
|
||
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+
Comment 15•8 years ago
|
||
bugherder uplift |
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•