Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4754

JavaScript error when PDF Viewer is closed while it's loading a huge page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.5.1
    • 9.0.0, 9.5.0.2
    • Components
    • Test

    • None

      Steps to Reproduce

      • Create a PDF page with a big image in it (so that loading this data takes a long time)
      • Open the PDF in the PDF viewer component
      • Close the PDF viewer before the loading of the page is complete

      Current Result

      JavaScript error "Cannot read property 'lastChild' of undefined"

      Expected Result

      The PDF viewer in the browser should cancel pending requests or silently swallow them.

      Debug Information

      The affected compoent is org.zkoss.zkex.zul.Pdfviewer

      Workaround

      Haven't found one, yet

        1. ZK-4754.odt
          2.14 MB
        2. ZK-4754.pdf
          2.34 MB

            rudyhuang rudyhuang
            digulla digulla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Time Spent - 3 hours Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 3 hours Remaining Estimate - 1 hour
                3h