gfx/cairo/disable-server-gradients.patch

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 commit 31579379422b75c3fe01b75d363e03f9b1e85604
     2 Author: Jeff Muizelaar <jmuizelaar@mozilla.com>
     3 Date:   Fri Mar 12 16:07:59 2010 -0500
     5     xlib bugs
     7 diff --git a/src/cairo-xlib-display.c b/src/cairo-xlib-display.c
     8 index a7a40b8..566d9fb 100644
     9 --- a/src/cairo-xlib-display.c
    10 +++ b/src/cairo-xlib-display.c
    11 @@ -407,6 +407,10 @@ _cairo_xlib_display_get (Display *dpy,
    12  	display->buggy_pad_reflect = TRUE;
    13      }
    15 +    /* gradients don't seem to work */
    16 +    display->buggy_gradients = TRUE;
    17 +
    18 +
    19      /* XXX workaround; see https://bugzilla.mozilla.org/show_bug.cgi?id=413583 */
    20      /* If buggy_repeat_force == -1, then initialize.
    21       *    - set to -2, meaning "nothing was specified", and we trust the above detection.

mercurial