mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1242924 - check return of pattern.Init in DOMStorageManager::Observe. r=jst
--HG-- extra : rebase_source : 4407baa0e09ff6dab73db354cf38e41130b2f559
This commit is contained in:
parent
b4c228baec
commit
2a8999dca1
@ -516,7 +516,10 @@ DOMStorageManager::Observe(const char* aTopic,
|
||||
const nsACString& aOriginScope)
|
||||
{
|
||||
OriginAttributesPattern pattern;
|
||||
pattern.Init(aOriginAttributesPattern);
|
||||
if (!pattern.Init(aOriginAttributesPattern)) {
|
||||
NS_ERROR("Cannot parse origin attributes pattern");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// Clear everything, caches + database
|
||||
if (!strcmp(aTopic, "cookie-cleared")) {
|
||||
|
Loading…
Reference in New Issue
Block a user