mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 794386 - do not store blob: URIs in global history, r=gavin.sharp
This commit is contained in:
parent
234c143d3a
commit
ef8da16819
@ -1257,7 +1257,8 @@ nsNavHistory::CanAddURI(nsIURI* aURI, bool* canAdd)
|
||||
scheme.EqualsLiteral("resource") ||
|
||||
scheme.EqualsLiteral("data") ||
|
||||
scheme.EqualsLiteral("wyciwyg") ||
|
||||
scheme.EqualsLiteral("javascript")) {
|
||||
scheme.EqualsLiteral("javascript") ||
|
||||
scheme.EqualsLiteral("blob")) {
|
||||
*canAdd = false;
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -408,6 +408,7 @@ function test_non_addable_uri_errors()
|
||||
"data:,Hello%2C%20World!",
|
||||
"wyciwyg:/0/http://mozilla.org",
|
||||
"javascript:alert('hello wolrd!');",
|
||||
"blob:foo",
|
||||
];
|
||||
let places = [];
|
||||
URLS.forEach(function(url) {
|
||||
|
Loading…
Reference in New Issue
Block a user