Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3465

Adding window.open in a click event makes clicks override the app

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for integration review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.2
    • Fix Version/s: None
    • Component/s: Others
    • Labels:
    • Testing Instructions:
      Hide

      This issue should be tested both in Android and iOS.

      1. In the app, login in master site.
      2. Go to MM Dev Testing > General.
      3. Click the link "Open H5P course with window.open and no target (opened in app)". Check that the "H5P Reports" course is opened in the app (in a new "phantom" tab).
      4. Go back to the Dashboard tab and now click "Open Google with window.open and no target (opened in browser)". Check that the app opens Google in a browser.
      5. Go back to the app and now click "Open H5P course with window.open and _system (opened in browser)". Check that the "H5P Reports" course is opened in browser.
      6. Go back to the app and now click "Open H5P course with javascript href and window.open (opened in app)". Check that the "H5P Reports" course is opened in the app (in a new "phantom" tab).
      Show
      This issue should be tested both in Android and iOS. In the app, login in master site. Go to MM Dev Testing > General. Click the link "Open H5P course with window.open and no target (opened in app)". Check that the "H5P Reports" course is opened in the app (in a new "phantom" tab). Go back to the Dashboard tab and now click "Open Google with window.open and no target (opened in browser)". Check that the app opens Google in a browser. Go back to the app and now click "Open H5P course with window.open and _system (opened in browser)". Check that the "H5P Reports" course is opened in browser. Go back to the app and now click "Open H5P course with javascript href and window.open (opened in app)". Check that the "H5P Reports" course is opened in the app (in a new "phantom" tab).
    • Affected Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 3.9.3

      Description

      In some Moodle content with HTML, if you add an element with onclick="window.open(...)" and you click it in the app, the app is overridden when the link is clicked.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Noel De Martin
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: