[tor-bugs] #22343 [Applications/Tor Browser]: Save as... in the context menu results in using the catch-all circuit

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Aug 4 08:34:57 UTC 2017


#22343: Save as... in the context menu results in using the catch-all circuit
-------------------------------------------------+-------------------------
 Reporter:  gk                                   |          Owner:
                                                 |  arthuredelstein
     Type:  defect                               |         Status:
                                                 |  needs_revision
 Priority:  High                                 |      Milestone:
Component:  Applications/Tor Browser             |        Version:
 Severity:  Major                                |     Resolution:
 Keywords:  tbb-linkability, ff52-esr,           |  Actual Points:
  tbb-7.0-must, tbb-7.0-issues, tbb-regression,  |
  tbb-7.0-frequent, TorBrowserTeam201708         |
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by arthuredelstein):

 Replying to [comment:21 mcs]:
 > Good work on a complicated fix! After reviewing the patch and testing it
 a little on OSX, Kathy and I have a couple of comments:

 Thank you for the review!

 > - Consider changing the UUID for
 `embedding/components/webbrowserpersist/nsIWebBrowserPersist.idl`

 Done.

 > - Please add documentation for `persistArgs.loadingPrincipal` to the
 block comment before the implementation of `internalPersist()`.

 Done.

 > - Code inside `browser/base/content/pageinfo/pageInfo.js` makes a call
 to `internalSave()` but you did not add the content principal parameter
 there. Is that intentional or is it an oversight? And is there another
 ticket about saving media from page info using the catch all circuit.

 That was an oversight. :( Also I have now fixed the media saving in this
 patch as well, so no need to open a ticket for that.

 > - `Save Image As` is still not working for us. about:downloads shows
 "Failed" and Kathy and I see the following on the browser console:
 > {{{
 > 15:14:58.300 [Exception... "Component returned failure code: 0x80004005
 (NS_ERROR_FAILURE) [nsIWebBrowserPersist.savePrivacyAwareURI]"  nsresult:
 "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame ::
 chrome://global/content/contentAreaUtils.js :: internalPersist :: line
 580"  data: no] 1 (unknown)
 >       internalPersist chrome://global/content/contentAreaUtils.js:580:5
 >       continueSave chrome://global/content/contentAreaUtils.js:489:5
 >       internalSave/< chrome://global/content/contentAreaUtils.js:451:7
 >       Handler.prototype.process resource://gre/modules/Promise-
 backend.js:932:23
 >       this.PromiseWalker.walkerLoop resource://gre/modules/Promise-
 backend.js:813:7
 >       bound  self-hosted:913:17
 >       bound bound  self-hosted:913:17
 >       this.PromiseWalker.scheduleWalkerLoop/< resource://gre/modules
 /Promise-backend.js:747:11
 > }}}

 I don't seem to be able to reproduce this exception in 22343+5 or 22343+6.
 Is there a specific image URL and/or procedure I should try?

 Here is my revised branch:
 https://github.com/arthuredelstein/tor-browser/commit/22343+6

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22343#comment:23>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list