Sat, 03 Jan 2015 20:18:00 +0100
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.
michael@0 | 1 | <?xml version="1.0" encoding="utf-8"?> |
michael@0 | 2 | <!-- |
michael@0 | 3 | |
michael@0 | 4 | Description: HTML title w/ CDATA |
michael@0 | 5 | Expect: var title = feed.items.queryElementAt(0, Components.interfaces.nsIFeedEntry).title.plainText(); title == "<title>"; |
michael@0 | 6 | |
michael@0 | 7 | --> |
michael@0 | 8 | <feed xmlns="http://www.w3.org/2005/Atom"> |
michael@0 | 9 | <id>http://atomtests.philringnalda.com/tests/item/title/html-cdata.atom</id> |
michael@0 | 10 | <title>Atom item title html cdata</title> |
michael@0 | 11 | <updated>2005-12-18T00:13:00Z</updated> |
michael@0 | 12 | <author> |
michael@0 | 13 | <name>Phil Ringnalda</name> |
michael@0 | 14 | <uri>http://weblog.philringnalda.com/</uri> |
michael@0 | 15 | </author> |
michael@0 | 16 | <link rel="self" href="http://atomtests.philringnalda.com/tests/item/title/html-cdata.atom"/> |
michael@0 | 17 | <entry> |
michael@0 | 18 | <id>http://atomtests.philringnalda.com/tests/item/title/html-cdata.atom/1</id> |
michael@0 | 19 | <title type="html"><![CDATA[<title>]]></title> |
michael@0 | 20 | <updated>2005-12-18T00:13:00Z</updated> |
michael@0 | 21 | <summary>An item with a type="html" title consisting of a less-than |
michael@0 | 22 | character, the word 'title' and a greater-than character, where |
michael@0 | 23 | the character entity reference for the less-than is escaped by being |
michael@0 | 24 | in a CDATA section.</summary> |
michael@0 | 25 | <link href="http://atomtests.philringnalda.com/alt/title-title.html"/> |
michael@0 | 26 | <category term="item title"/> |
michael@0 | 27 | </entry> |
michael@0 | 28 | </feed> |