Uploaded image for project: 'H5P'
  1. HFP-2306

IV editor crashing if changing video source

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects versions: None
    • Fix versions: Baduhenna
    • Labels:
      None
    • Sprint:
      Baduhennas

      Description

      Acceptance Criteria

      Fix issue

      Background

      Reproduce:

      1. Create IV by uploading Video
      2. Add a text element to the video canvas
      3. Change source:
      • Delete the original video
      • Paste in youtube URL

      Now you will find a JavaScript error in the console, and it won't be possible to use the editor anymore.

      The problem seems that IV is deleted, but there's a window resize event listener still being active (which tries to use the deleted IV instance)

        Attachments

          Activity

            People

            • Assignee:
              fnoks Pål Jørgensen
              Reporter:
              fnoks Pål Jørgensen
              Code reviewer:
              Thomas Marstrander
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                0h
                Logged:
                Time Not Required
                Not Specified