diff options
Diffstat (limited to 'browser/components/shopping/ShoppingSidebarChild.sys.mjs')
-rw-r--r-- | browser/components/shopping/ShoppingSidebarChild.sys.mjs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/browser/components/shopping/ShoppingSidebarChild.sys.mjs b/browser/components/shopping/ShoppingSidebarChild.sys.mjs index ff80086d5d..1ffeb914e3 100644 --- a/browser/components/shopping/ShoppingSidebarChild.sys.mjs +++ b/browser/components/shopping/ShoppingSidebarChild.sys.mjs @@ -85,6 +85,9 @@ export class ShoppingSidebarChild extends RemotePageChild { #product = null; receiveMessage(message) { + if (this.browsingContext.usePrivateBrowsing) { + throw new Error("We should never be invoked in PBM."); + } switch (message.name) { case "ShoppingSidebar:UpdateProductURL": let { url, isReload } = message.data; |