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.
1 import WebIDL
3 def WebIDLTest(parser, harness):
4 parser.parse("""
5 interface Foo;
6 interface Bar;
7 interface Foo;
8 """);
10 results = parser.finish()
12 # There should be no duplicate interfaces in the result.
13 expectedNames = sorted(['Foo', 'Bar'])
14 actualNames = sorted(map(lambda iface: iface.identifier.name, results))
15 harness.check(actualNames, expectedNames, "Parser shouldn't output duplicate names.")