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 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | add_autocomplete_test([ |
michael@0 | 6 | "Searching for non-keyworded entry should autoFill it", |
michael@0 | 7 | "moz", |
michael@0 | 8 | "mozilla.org/", |
michael@0 | 9 | function () { |
michael@0 | 10 | addBookmark({ url: "http://mozilla.org/test/" }); |
michael@0 | 11 | } |
michael@0 | 12 | ]); |
michael@0 | 13 | |
michael@0 | 14 | add_autocomplete_test([ |
michael@0 | 15 | "Searching for keyworded entry should not autoFill it", |
michael@0 | 16 | "moz", |
michael@0 | 17 | "moz", |
michael@0 | 18 | function () { |
michael@0 | 19 | addBookmark({ url: "http://mozilla.org/test/", keyword: "moz" }); |
michael@0 | 20 | } |
michael@0 | 21 | ]); |
michael@0 | 22 | |
michael@0 | 23 | add_autocomplete_test([ |
michael@0 | 24 | "Searching for more than keyworded entry should autoFill it", |
michael@0 | 25 | "mozi", |
michael@0 | 26 | "mozilla.org/", |
michael@0 | 27 | function () { |
michael@0 | 28 | addBookmark({ url: "http://mozilla.org/test/", keyword: "moz" }); |
michael@0 | 29 | } |
michael@0 | 30 | ]); |
michael@0 | 31 | |
michael@0 | 32 | add_autocomplete_test([ |
michael@0 | 33 | "Searching for less than keyworded entry should autoFill it", |
michael@0 | 34 | "mo", |
michael@0 | 35 | "mozilla.org/", |
michael@0 | 36 | function () { |
michael@0 | 37 | addBookmark({ url: "http://mozilla.org/test/", keyword: "moz" }); |
michael@0 | 38 | } |
michael@0 | 39 | ]); |
michael@0 | 40 | |
michael@0 | 41 | add_autocomplete_test([ |
michael@0 | 42 | "Searching for keyworded entry is case-insensitive", |
michael@0 | 43 | "MoZ", |
michael@0 | 44 | "MoZ", |
michael@0 | 45 | function () { |
michael@0 | 46 | addBookmark({ url: "http://mozilla.org/test/", keyword: "moz" }); |
michael@0 | 47 | } |
michael@0 | 48 | ]); |