mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 849347 - handle that a social activation page may have no data-service attribute. r=mixedpuppy
This commit is contained in:
parent
31d866ff72
commit
98a5917691
@ -375,7 +375,8 @@ this.SocialService = {
|
||||
let installOrigin = principal.origin;
|
||||
|
||||
let id = getAddonIDFromOrigin(installOrigin);
|
||||
if (bs.getAddonBlocklistState(id, data.version || "0") == Ci.nsIBlocklistService.STATE_BLOCKED)
|
||||
let version = data && data.version ? data.version : "0";
|
||||
if (bs.getAddonBlocklistState(id, version) == Ci.nsIBlocklistService.STATE_BLOCKED)
|
||||
throw new Error("installProvider: provider with origin [" +
|
||||
installOrigin + "] is blocklisted");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user