Firefox tracking protection blocks image loading in Connect apps

XMLWordPrintable

    • Severity 3 - Minor
    • Pre-deployment testing
    • M

      Issue Summary

      If the Connect app displays Confluence content and Firefox Enhanced Tracking is turned on, images from attachments are not loaded. Unsplash images are unaffected.

      Steps to Reproduce

      1. Create a Connect app.
      2. Get the image URL from the body.view using the Search API.
         

      3. Add images to the app:
      <div data-item="2631827513" class="aui-item news-item news-painted contentview pinned" style="background-image: url('https://SITE.atlassian.net/wiki/download/attachments/ATTACHMENTS/IMAGE_NAME.jpg?version=2&amp;modificationDate=1724571559547&amp;cacheVersion=1&amp;api=v2'); background-size: auto; background-repeat: no-repeat;" data-itemid="ITEM_ID"></div> 

      Actual Results

      • The app does not load images.
      • Multiple 404 responses can be observed in the network tab.

      Workarounds

      async function getImageJSON(url) {
          return await AP.request({
              url: url,
              binaryAttachment: true,
          })
              .then(data => {
                  return data;
              })
              .catch(err => {
                  return null;
              });
      } 

            Assignee:
            Unassigned
            Reporter:
            Damian Kleszcz
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: