Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-81405

Support Chrome's partitioned cookies in the mobile app

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-81405-401
    • MDL-81405-403
    • MDL-81405-master
    • Hide

      1. Check for regressions

      Repeat the testing instructions from MDL-80835

      2. New test for mobile app

      • On your Android device, install Android System WebView Dev.
      • Change the default WebView via Developer Options -> WebView Implementation.
      • Open the WebView Dev application, and set the webview-force-disable-3pcs to Enabled.
      • Set-up ngrok and configure the Moodle site so it is publicly accessible via https
      • In a Moodle site, create a page resource, containing an iframe pointing to another activity in the same course (for example, the forum), you can use a code like this: <iframe style="width: 400px; height:400px" src="LINK_TO_FORUM"></iframe>
        • Please notice that the link to the forum has to be using the ngrok base URL
      • Install the Moodle mobile app in your Android device
      • Access the site, under the https ngrok URL, and open the course with the page resource
      • Confirm that:
        • You are able to see the contents of the iframe automatically (you are not asked to log in)
      Show
      1. Check for regressions Repeat the testing instructions from MDL-80835 2. New test for mobile app On your Android device, install Android System WebView Dev . Change the default WebView via Developer Options -> WebView Implementation. Open the WebView Dev application, and set the webview-force-disable-3pcs to Enabled. Set-up ngrok and configure the Moodle site so it is publicly accessible via https In a Moodle site, create a page resource, containing an iframe pointing to another activity in the same course (for example, the forum), you can use a code like this: <iframe style="width: 400px; height:400px" src="LINK_TO_FORUM"></iframe> Please notice that the link to the forum has to be using the ngrok base URL Install the Moodle mobile app in your Android device Access the site, under the https ngrok URL, and open the course with the page resource Confirm that: You are able to see the contents of the iframe automatically (you are not asked to log in)
    • Moodle Apps - 2024 i1.4

      Chrome is going to start blocking third-party cookies during 2024.

      These cookies are necessary for the app to be able to embed content directly from the Moodle site.

      The workaround is to use Partitioned cookies, this will require changes at the LMS level, similar to the ones that recently landed in MDL-80835

      More information:

      https://developers.google.com/privacy-sandbox/blog/cookie-countdown-2023oct

      To reproduce, you'll need to disable 3rd party cookies in your device:

      • On your Android device, install Android System WebView Dev.
      • Change the default WebView via Developer Options -> WebView Implementation.
      • Open the WebView Dev application, and set the webview-force-disable-3pcs to Enabled.
      • Launch the app in dev mode with DevTools open (Network tools or Storage -> Cookies tab).
      • Browse to Master > [MoodleMobile Testing] > Resource: Page > Page with site internal content embedded (via iframe).
      • Auto-login won't launch as the cookie will be blocked (some information will display in the Dev Tools about it).

        1. partition-keys.png
          partition-keys.png
          46 kB
        2. screenshot-1.png
          screenshot-1.png
          36 kB
        3. screenshot-2.png
          screenshot-2.png
          20 kB
        4. screenshot-3.png
          screenshot-3.png
          29 kB
        5. test-4.1.png
          test-4.1.png
          261 kB
        6. test-4.2.png
          test-4.2.png
          243 kB
        7. test-4.3.png
          test-4.3.png
          227 kB
        8. test-4.4.png
          test-4.4.png
          329 kB
        9. webview-flags.png
          webview-flags.png
          89 kB

            jleyva Juan Leyva
            jleyva Juan Leyva
            Raquel Ortega Raquel Ortega
            Jake Dallimore Jake Dallimore
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 4 hours, 30 minutes
                1d 4h 30m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.