Skip to content

Bug: unload event causes permission violations and other following errors #979

@wasshuber

Description

@wasshuber

I am using v1.46.0, but have also tried 1.45.2 with the same results. When the drop-in loads the console in Google Chrome on Windows 11 shows Permission Violation errors (unload is not allowed in this document). The first one appears in webpack:///src/button/component.jsx:111

Image

Below is the entire console dump.

component.jsx:111 [Violation] Permissions policy violation: unload is not allowed in this document.
a.watchForClose @ index.js:270
a.setWindows @ index.js:266
o @ index.js:86
(anonymous) @ index.js:264
e.try @ promise.js:429
a.registerChild @ index.js:262
o @ index.js:210
Z @ interface.js:13
(anonymous) @ component.jsx:111
a @ bootstrap:19
(anonymous) @ load.js:32
a @ bootstrap:19
(anonymous) @ bootstrap:83
(anonymous) @ checkout.min.js:2
logger.js:110 [Violation] Permissions policy violation: unload is not allowed in this document.
V @ init.js:32
b @ logger.js:110
(anonymous) @ setup.js:163
(anonymous) @ util.js:280
Ae @ setup.js:187
(anonymous) @ setup.js:191
a @ bootstrap:19
(anonymous) @ load.js:32
a @ bootstrap:19
(anonymous) @ bootstrap:83
(anonymous) @ checkout.min.js:2
button.js?date=2025-10-13:4155 [Violation] Permissions policy violation: unload is not allowed in this document.
inlineMemoize.url @ button.js?date=2025-10-13:4155
(anonymous) @ button.js?date=2025-10-13:4215
inlineMemoize @ button.js?date=2025-10-13:3622
getLogger @ button.js?date=2025-10-13:4005
(anonymous) @ button.js?date=2025-10-13:7877
(anonymous) @ button.js?date=2025-10-13:7996
o.dispatch @ promise.js:171
o.then @ promise.js:248
setup @ button.js?date=2025-10-13:7868
setupButton @ button.js?date=2025-10-13:8547
(anonymous) @ button.js?date=2025-10-13:8554
e.try @ promise.js:429
button_setup @ button.js?date=2025-10-13:8553
(anonymous) @ button?env=production&style.color=gold&style.shape=rect&style.size=responsive&style.label=paypal&style.tagline=false&locale.x=en_US&funding.disallowed=venmo%2Citau%2Ccard%2Cideal%2Celv%2Cbancontact%2Cgiropay%2Csofort%2Ceps%2Cmybank%2Cp24%2Czimpler%2Cblik%2Cmaxima%2Cboleto%2Coxxo%2Cmercadopago%2Ccredit&funding.remembered=paypal&domain=www.lybrary.com&sessionID=uid_3fbfa75a76_mtc6mta6ndg&buttonSessionID=uid_17930a33f2_mtc6mti6mtu&renderedButtons=paypal&storageID=uid_559712abf9_mti6ntm6mdu&logLevel=warn&sdkMeta=eyJ1cmwiOiJodHRwczovL3d3dy5wYXlwYWxvYmplY3RzLmNvbS9hcGkvY2hlY2tvdXQubWluLmpzIn0&uid=d73bb46a98&version=min&xcomponent=1:1258
button.js?date=2025-10-13:3996 POST https://api2.amplitude.com/2/httpapi 400 (Bad Request)
util_sendBeacon @ button.js?date=2025-10-13:3996
(anonymous) @ button.js?date=2025-10-13:4023
ZalgoPromise.try @ button.js?date=2025-10-13:3037
(anonymous) @ button.js?date=2025-10-13:4012
(anonymous) @ button.js?date=2025-10-13:4080
ZalgoPromise.try @ button.js?date=2025-10-13:3037
immediateFlush @ button.js?date=2025-10-13:4061
ZalgoPromise.try @ button.js?date=2025-10-13:3037
(anonymous) @ button.js?date=2025-10-13:4111
setTimeout
(anonymous) @ button.js?date=2025-10-13:4108
(anonymous) @ button.js?date=2025-10-13:7994
_proto.dispatch @ button.js?date=2025-10-13:2884
_proto.resolve @ button.js?date=2025-10-13:2836
_proto.dispatch @ button.js?date=2025-10-13:2904
_proto.resolve @ button.js?date=2025-10-13:2836
(anonymous) @ button.js?date=2025-10-13:2980
_proto.dispatch @ button.js?date=2025-10-13:2884
_proto.resolve @ button.js?date=2025-10-13:2836
_proto.dispatch @ button.js?date=2025-10-13:2904
_proto.resolve @ button.js?date=2025-10-13:2836
_proto.dispatch @ button.js?date=2025-10-13:2904
_proto.resolve @ button.js?date=2025-10-13:2836
(anonymous) @ button.js?date=2025-10-13:2810
(anonymous) @ button.js?date=2025-10-13:3699
setInterval
(anonymous) @ button.js?date=2025-10-13:3696
ZalgoPromise @ button.js?date=2025-10-13:2809
(anonymous) @ button.js?date=2025-10-13:3694
(anonymous) @ button.js?date=2025-10-13:3602
(anonymous) @ button.js?date=2025-10-13:7951
(anonymous) @ button.js?date=2025-10-13:7996
o.dispatch @ promise.js:171
o.then @ promise.js:248
setup @ button.js?date=2025-10-13:7868
setupButton @ button.js?date=2025-10-13:8547
(anonymous) @ button.js?date=2025-10-13:8554
e.try @ promise.js:429
button_setup @ button.js?date=2025-10-13:8553
(anonymous) @ button?env=production&style.color=gold&style.shape=rect&style.size=responsive&style.label=paypal&style.tagline=false&locale.x=en_US&funding.disallowed=venmo%2Citau%2Ccard%2Cideal%2Celv%2Cbancontact%2Cgiropay%2Csofort%2Ceps%2Cmybank%2Cp24%2Czimpler%2Cblik%2Cmaxima%2Cboleto%2Coxxo%2Cmercadopago%2Ccredit&funding.remembered=paypal&domain=www.lybrary.com&sessionID=uid_3fbfa75a76_mtc6mta6ndg&buttonSessionID=uid_17930a33f2_mtc6mti6mtu&renderedButtons=paypal&storageID=uid_559712abf9_mti6ntm6mdu&logLevel=warn&sdkMeta=eyJ1cmwiOiJodHRwczovL3d3dy5wYXlwYWxvYmplY3RzLmNvbS9hcGkvY2hlY2tvdXQubWluLmpzIn0&uid=d73bb46a98&version=min&xcomponent=1:1258

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions