[tbb-bugs] #14893 [Tor Browser]: GTK errors due to use of deprecated -moz styles in about:tor and elsewhere?

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Feb 13 13:09:58 UTC 2015


#14893: GTK errors due to use of deprecated -moz styles in about:tor and elsewhere?
-----------------------------+----------------------------------
     Reporter:  mikeperry    |      Owner:  tbb-team
         Type:  defect       |     Status:  new
     Priority:  normal       |  Milestone:
    Component:  Tor Browser  |    Version:
   Resolution:               |   Keywords:  TorBrowserTeam201502
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+----------------------------------

Comment (by cypherpunks):

 Workaround above changes behavior for non-gtk platform which can to handle
 ''transferable'' with null data flavor and to clear clipboard. It's
 possible to modify proposed patch and to change behavior on gtk platform
 instead, like this:
 {{{
       if (nsIClipboard.hasDataMatchingFlavors(["application/x-moz-private-
 browsing"],
                                               1,
 nsIClipboard.kGlobalClipboard)) {
           var xferable =
 Components.classes["@mozilla.org/widget/transferable;1"]
 .createInstance(Components.interfaces.nsITransferable);
           xferable.addDataFlavor("");
           nsIClipboard.setData(xferable, null,
 nsIClipboard.kGlobalClipboard);
       }
 }}}
 It should to clear clipboard and to keep the same behavior for all
 platforms. Need testing.
 Another solution to modify browser code
 (nsClipboardPrivacyHandler::Observe) to pass not null flavor?

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


More information about the tbb-bugs mailing list