toolkit/components/places/tests/chrome/bad_links.atom

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 <?xml version="1.0" encoding="utf-8"?>
     2 <feed xmlns="http://www.w3.org/2005/Atom">
     4   <title>Example Feed</title> 
     5   <link href="http://example.org/"/>
     6   <updated>2003-12-13T18:30:02Z</updated>
     8   <author> 
     9     <name>John Doe</name>
    10   </author> 
    11   <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
    13   <entry>
    15     <title>First good item</title>
    16     <link href="http://example.org/first"/>
    17     <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
    18     <updated>2003-12-13T18:30:02Z</updated>
    20     <summary>Some text.</summary>
    21   </entry>
    23   <entry>
    25     <title>data: link</title>
    26     <link href="data:text/plain,Hi"/>
    27     <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6b</id>
    28     <updated>2003-12-13T18:30:03Z</updated>
    30     <summary>Some text.</summary>
    31   </entry>
    33   <entry>
    35     <title>javascript: link</title>
    36     <link href="javascript:alert('Hi')"/>
    37     <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6c</id>
    38     <updated>2003-12-13T18:30:04Z</updated>
    40     <summary>Some text.</summary>
    41   </entry>
    43   <entry>
    45     <title>file: link</title>
    46     <link href="file:///var/"/>
    47     <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6d</id>
    48     <updated>2003-12-13T18:30:05Z</updated>
    50     <summary>Some text.</summary>
    51   </entry>
    53   <entry>
    55     <title>chrome: link</title>
    56     <link href="chrome://browser/content/browser.js"/>
    57     <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6e</id>
    58     <updated>2003-12-13T18:30:06Z</updated>
    60     <summary>Some text.</summary>
    61   </entry>
    63   <entry>
    65     <title>Last good item</title>
    66     <link href="http://example.org/last"/>
    67     <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6b</id>
    68     <updated>2003-12-13T18:30:07Z</updated>
    70     <summary>Some text.</summary>
    71   </entry>
    74 </feed>

mercurial