toolkit/components/feeds/test/xml/rss2/item_enclosure_duplicates2.xml

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="iso-8859-1"?>
     2 <!--
     4 Description: feed with duplicate enclosures on a single item with different data available
     5 Expect: var enc = feed.items.queryElementAt(0, Components.interfaces.nsIFeedEntry).fields.getProperty('enclosure'); enc.QueryInterface(Components.interfaces.nsIPropertyBag); ((enc.getProperty('length') == '24986239') && (enc.getProperty('type') == 'video/mpeg') && (feed.type == 4) && (feed.enclosureCount == 1) );
     7 -->
     8 <rss xmlns:media="http://search.yahoo.com/mrss" version="2.0" >
     9 <channel>
    11 <item>
    12 <enclosure url="http://dallas.example.com/joebob_050689.mpeg" /> 
    13 <media:content fileSize="24986239" type="video/mpeg" url="http://dallas.example.com/joebob_050689.mpeg" /> 
    14 <author>jbb@dallas.example.com (Joe Bob Briggs)</author>
    15 <comments>http://example.org</comments>
    16 <title>test audio</title>
    18 <category domain="foo">bar</category>
    20 <description>Listen to the words that are coming out of my mouth.</description>
    21 </item>
    23 </channel>
    24 </rss>

mercurial