question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tab close issue on IE and Edge

See original GitHub issue

Last 3-4 days maybe more I don’t know in IE 11 and Edge giving us strange error only in the pages that has paypal.js initialized. If you land a page that has the paypal express in it, doing nothing and try to leave that page with anything (click back or visit a link in that page), an alert window pops up. This is the exact error you get when you run window.close() on IE or Edge.

“do you want to close the tab - Yes | No”

I am currently on Mac so I cannot reproduce this issue with Chrome thus I can’t provide screenshots.

This is how I initialize PayPal in our product pages.

paypal.Buttons({
            style: {
                size: 'responsive',
                color: 'white',
                shape: 'rect',
                label :'buynow',
                layout: 'horizontal'
            },
            createOrder: this.payment,
            onApprove: this.authorize,
            onInit: this.validate,
            onShippingChange: this.shippingChange,
            //onError: this.error,
            onCancel: this.error,
            onClick: () => {this.modalClose.trigger('click')}
        }).render('#paypal-action');

Steps to reproduce

It’s simple just go to a page that has the paypal scripts in it. Do nothing and click your browser’s back button.

Affected browsers

  • Edge
  • IE

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:14
  • Comments:5

github_iconTop GitHub Comments

2reactions
nick-andersencommented, Mar 13, 2020

Also experiencing the same issue

image

0reactions
github-actions[bot]commented, Apr 1, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IE Mode closes tabs - Microsoft Community Hub
IE Mode closes tabs. I am currently evaluating Edge Chromium at our school. We are still running an on premise SharePoint 2016 Server...
Read more >
Microsoft rolls out fix for Edge bug that breaks tabs in Internet ...
Microsoft quickly fixed a bug in Edge that affected tabs running in Internet Explorer mode.
Read more >
Edge crashes when closing a tab - Reddit
All recent versions of Edge stable channel have been crashing when closing a single tab. This occurs often, though randomly.
Read more >
[Bug] Microsoft Edge No Longer Confirms on Closing Multiple ...
Microsoft Edge latest version 105.0.1343.27 contains a bug which breaks the confirmation or warning feature on closing multiple tabs in the ...
Read more >
Enable Edge Settings for Unload IE Mode Tabs Before ...
Disable Edge Settings for Unload IE Mode Tabs Before Closing Browser Session ... NOTE! If you disable or don't configure this policy, Microsoft ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found