• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    window.open set to auto print crashes if opened window is closed

    Opera for Windows
    1
    1
    405
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Former User
      A Former User last edited by

      I submitted a help ticket, but it looks like no way to see if it's going to be worked on or acknowledged.

      if you have an html page with a simple text input and a button which calls window.open() to another html page, which has a window.print() fire on load, and you close that new window without printing or canceling the print dialog. It will then crash the original page unless you go to another tab and then go back.

      minimum code:

      index body -

      <input type="Text" name="inpt1" /><br/>  
      <input type="button" value="Print" onclick="javascript:window.open('popup.html', '', 'width=690,height=465,resizable=1,scrollbars=0,menubar=0,status=0');" />  
      

      popup -

      <script type="text/javascript">
      	window.print();
      </script>
      

      That's enough for it to crash.

      Reply Quote 0
        1 Reply Last reply
      • First post
        Last post

      Computer browsers

      • Opera for Windows
      • Opera for Mac
      • Opera for Linux
      • Opera beta version
      • Opera USB

      Mobile browsers

      • Opera for Android
      • Opera Mini
      • Opera Touch
      • Opera for basic phones

      • Add-ons
      • Opera account
      • Wallpapers
      • Opera Ads

      • Help & support
      • Opera blogs
      • Opera forums
      • Dev.Opera

      • Security
      • Privacy
      • Cookies Policy
      • EULA
      • Terms of Service

      • About Opera
      • Press info
      • Jobs
      • Investors
      • Become a partner
      • Contact us

      Follow Opera

      • Opera - Facebook
      • Opera - Twitter
      • Opera - YouTube
      • Opera - LinkedIn
      • Opera - Instagram

      © Opera Software 1995-