Closed
Bug 1038465
Opened 12 years ago
Closed 12 years ago
pass suggested filename to application reputation check
Categories
(Core :: DOM: Security, defect)
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: mmc, Assigned: mmc)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 2 obsolete files)
|
2.45 KB,
patch
|
Paolo
:
review+
|
Details | Diff | Splinter Review |
|
3.62 KB,
patch
|
mmc
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
We rely on it for sending remote lookups but aren't actually filling it in.
| Assignee | ||
Updated•12 years ago
|
Blocks: downloadprotection
| Assignee | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → mmc
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 8455836 [details] [diff] [review]
Pass suggested filename to application reputation query (
Review of attachment 8455836 [details] [diff] [review]:
-----------------------------------------------------------------
This patch is not perfect but works in many cases. A more completion solution would be to sniff the content-type, etc. but since Chrome is doing something very similar, I think this is good enough for now:
https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/safe_browsing/download_protection_service.cc&rcl=1405347508&l=463
Attachment #8455836 -
Flags: review?(paolo.mozmail)
| Assignee | ||
Comment 3•12 years ago
|
||
| Assignee | ||
Comment 4•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Attachment #8455836 -
Attachment is obsolete: true
Attachment #8455836 -
Flags: review?(paolo.mozmail)
| Assignee | ||
Comment 5•12 years ago
|
||
Comment on attachment 8455895 [details] [diff] [review]
Pass suggested filename to application reputation query (
Review of attachment 8455895 [details] [diff] [review]:
-----------------------------------------------------------------
https://tbpl.mozilla.org/?tree=Try&rev=7b68b05dc69f
Attachment #8455895 -
Flags: review?(paolo.mozmail)
Comment 6•12 years ago
|
||
Comment on attachment 8455895 [details] [diff] [review]
Pass suggested filename to application reputation query (
aSuggestedFileName should be just suggestedFileName.
This makes the current code work, hence the r+, but note that the information we're sending is not really the "suggested file name" that is expected by the interface (Content-Disposition filename or URL-inferred filename), but the string the user typed during file name selection, or the default file name including any duplicate counter (for example "Setup (1).exe") in case the user did not change the default.
In rare cases we might do a wrong executability check in case the file is saved without an extension on Windows.
If this works for you, it works for me too :-) But keep in mind that it is an approximation of the ideal behavior. Getting the originally suggested file name would require various changes to the download code.
Attachment #8455895 -
Flags: review?(paolo.mozmail) → review+
| Assignee | ||
Comment 7•12 years ago
|
||
Thanks, Paolo! Rewrote to omit aSuggestedFilename, and an approximation is good enough for now.
https://hg.mozilla.org/integration/mozilla-inbound/rev/7441f4dde492
| Assignee | ||
Comment 8•12 years ago
|
||
| Assignee | ||
Comment 9•12 years ago
|
||
Comment on attachment 8456231 [details] [diff] [review]
Pass suggested filename to application reputation query (
Approval Request Comment
[Feature/regressing bug #]: Incomplete initial implementation
[User impact if declined]: Remote lookups not sent to application reputation service until 33
[Describe test coverage new/current, TBPL]: toolkit/components/downloads/test/unit/test_app_rep*.js, https://tbpl.mozilla.org/?tree=Try&rev=7b68b05dc69f
[Risks and why]: Low risk
[String/UUID change made/needed]: none
Attachment #8456231 -
Flags: review+
Attachment #8456231 -
Flags: approval-mozilla-aurora?
Comment 10•12 years ago
|
||
Backed out for hitting the network during tests (fatal since bug 995417 landed about a month ago).
https://hg.mozilla.org/integration/mozilla-inbound/rev/83a246bb7860
https://tbpl.mozilla.org/php/getParsedLog.php?id=43837300&tree=Mozilla-Inbound
Comment 11•12 years ago
|
||
The relevant part of that log:
09:06:23 INFO - Non-local network connections are disabled and a connection attempt to sb-ssl.google.com (173.194.33.169) was made. You should only access hostnames available via the test networking proxy (if running mochitests) or from a test-specific httpd.js server (if running xpcshell tests). Browser services should be disabled or redirected to a local server.
| Assignee | ||
Updated•12 years ago
|
Attachment #8456231 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Comment 12•12 years ago
|
||
Try, now with mochitest and (hopefully) the right pref set: https://tbpl.mozilla.org/?tree=Try&rev=fcb5cadba1d4
| Assignee | ||
Comment 13•12 years ago
|
||
| Assignee | ||
Comment 14•12 years ago
|
||
Comment 15•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
| Assignee | ||
Comment 16•12 years ago
|
||
| Assignee | ||
Comment 17•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Attachment #8456231 -
Attachment is obsolete: true
| Assignee | ||
Comment 18•12 years ago
|
||
Comment on attachment 8457015 [details] [diff] [review]
Aurora-specific patch: Pass suggested filename to application reputation query (
Approval Request Comment
[Feature/regressing bug #]: Incomplete initial implementation
[User impact if declined]: Remote lookups not sent to application reputation service until 33
[Describe test coverage new/current, TBPL]: toolkit/components/downloads/test/unit/test_app_rep*.js, https://hg.mozilla.org/mozilla-central/rev/69b8e7c58dc6
[Risks and why]: Low risk
[String/UUID change made/needed]: none
Attachment #8457015 -
Attachment description: Pass suggested filename to application reputation query ( → Aurora-specific patch: Pass suggested filename to application reputation query (
Attachment #8457015 -
Flags: review+
Attachment #8457015 -
Flags: approval-mozilla-aurora?
Updated•12 years ago
|
Updated•12 years ago
|
Attachment #8457015 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 20•12 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•