Skip to content

AVIF Image doesn't work on Chrome browsers #160600

Closed

Description

@algu1984

Steps to reproduce

Try to render any AVIF in Chrome failed but works fine on Safari and Firefox

Image.network('https://raw.githubusercontent.com/link-u/avif-sample-images/refs/heads/master/kimono.avif')

Expected results

Image rendered

Actual results

══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
The following ImageCodecException was thrown resolving an image codec:
Failed to decode image using the browser's ImageDecoder API.
Image source: encoded image bytes
Original browser error: InvalidStateError: Failed to retrieve track metadata.

When the exception was thrown, this was the stack

Image provider:
  NetworkImage("https://raw.githubusercontent.com/link-u/avif-sample-images/refs/heads/master/kimono.avif",
  scale: 1.0)
Image key:
  NetworkImage("https://raw.githubusercontent.com/link-u/avif-sample-images/refs/heads/master/kimono.avif",
  scale: 1.0)

Code sample

import dart:math' as math;

import 'package:flutter/material.dart';

const int maxSeeds = 250;

void main() {
  runApp(const Sunflower());
}

class Sunflower extends StatefulWidget {
  const Sunflower({super.key});

  @override
  State<StatefulWidget> createState() {
    return _SunflowerState();
  }
}

class _SunflowerState extends State<Sunflower> {
  int seeds = maxSeeds ~/ 2;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        brightness: Brightness.dark,
        appBarTheme: const AppBarTheme(elevation: 2),
      ),
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Sunflower'),
        ),
        body: Center(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Image.network('https://raw.githubusercontent.com/link-u/avif-sample-images/refs/heads/master/kimono.avif')
            ],
          ),
        ),
      ),
    );
  }
}

class SunflowerWidget extends StatelessWidget {
  static const tau = math.pi * 2;
  static const scaleFactor = 1 / 40;
  static const size = 600.0;
  static final phi = (math.sqrt(5) + 1) / 2;
  static final rng = math.Random();

  final int seeds;

  const SunflowerWidget(this.seeds, {super.key});

  @override
  Widget build(BuildContext context) {
    final seedWidgets = <Widget>[];

    for (var i = 0; i < seeds; i++) {
      final theta = i * tau / phi;
      final r = math.sqrt(i) * scaleFactor;

      seedWidgets.add(AnimatedAlign(
        key: ValueKey(i),
        duration: Duration(milliseconds: rng.nextInt(500) + 250),
        curve: Curves.easeInOut,
        alignment: Alignment(r * math.cos(theta), -1 * r * math.sin(theta)),
        child: const Dot(true),
      ));
    }

    for (var j = seeds; j < maxSeeds; j++) {
      final x = math.cos(tau * j / (maxSeeds - 1)) * 0.9;
      final y = math.sin(tau * j / (maxSeeds - 1)) * 0.9;

      seedWidgets.add(AnimatedAlign(
        key: ValueKey(j),
        duration: Duration(milliseconds: rng.nextInt(500) + 250),
        curve: Curves.easeInOut,
        alignment: Alignment(x, y),
        child: const Dot(false),
      ));
    }

    return FittedBox(
      fit: BoxFit.contain,
      child: SizedBox(
        height: size,
        width: size,
        child: Stack(children: seedWidgets),
      ),
    );
  }
}

class Dot extends StatelessWidget {
  static const size = 5.0;
  static const radius = 3.0;

  final bool lit;

  const Dot(this.lit, {super.key});

  @override
  Widget build(BuildContext context) {
    return DecoratedBox(
      decoration: BoxDecoration(
        color: lit ? Colors.orange : Colors.grey.shade700,
        borderRadius: BorderRadius.circular(radius),
      ),
      child: const SizedBox(
        height: size,
        width: size,
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration Chrome:

Untitled

Safari:
Untitled2

Logs

Logs
══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
The following ImageCodecException was thrown resolving an image codec:
Failed to decode image using the browser's ImageDecoder API.
Image source: encoded image bytes
Original browser error: InvalidStateError: Failed to retrieve track metadata.

When the exception was thrown, this was the stack

Image provider:
  NetworkImage("https://raw.githubusercontent.com/link-u/avif-sample-images/refs/heads/master/kimono.avif",
  scale: 1.0)
Image key:
  NetworkImage("https://raw.githubusercontent.com/link-u/avif-sample-images/refs/heads/master/kimono.avif",
  scale: 1.0)
════════════════════════════════════════════════════════════════════════════════════════════════════

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 15.1.1 24B91 darwin-arm64, locale en-PL)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 16.1)
    ! iOS 18.1 Simulator not installed; this may be necessary for iOS and macOS development.
      To download and install the platform, open Xcode, select Xcode > Settings > Platforms,
      and click the GET button for the required platform.

      For more information, please visit:
        https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.96.0)
[✓] Connected device (3 available)
[✓] Network resources

! Doctor found issues in 1 category.

Activity

  1. changed the title [-]AVIF doest work on Chrome [/-] [+]AVIF doesn't work on Chrome [/+] on Dec 19, 2024
  2. maheshj01 commented on Dec 20, 2024

    @maheshj01
    Member

    Hi @algu1984, Thanks for filing the issue. I am able to reproduce the issue the image doesn't render on chrome with both wasm and canvaskit renderers while it renders on safarri browser.

    Screenshot 2024-12-19 at 23 16 27
    logs
    mahesh@MacBook-Pro-2 platform_stack_test % flutter run -d chrome
    Launching lib/main.dart on Chrome in debug mode...
    Waiting for connection from debug service on Chrome...             11.4s
    This app is linked to the debug service: ws://127.0.0.1:56382/t5IYcWX7xlM=/ws
    Debug service listening on ws://127.0.0.1:56382/t5IYcWX7xlM=/ws
    
    🔥  To hot restart changes while running, press "r" or "R".
    For a more detailed help message, press "h". To quit, press "q".
    
    A Dart VM Service on Chrome is available at: http://127.0.0.1:56382/t5IYcWX7xlM=
    The Flutter DevTools debugger and profiler on Chrome is available at:
    http://127.0.0.1:9101?uri=http://127.0.0.1:56382/t5IYcWX7xlM=
    ══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
    The following ImageCodecException was thrown resolving an image codec:
    Failed to decode image using the browser's ImageDecoder API.
    Image source: encoded image bytes
    Original browser error: InvalidStateError: Failed to retrieve track metadata.
    
    When the exception was thrown, this was the stack:
    dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 288:3  throw_
    lib/_engine/engine/image_decoder.dart 164:7                                  <fn>
    dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 610:19          <fn>
    dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 634:23          <fn>
    dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 585:5           <fn>
    dart-sdk/lib/async/zone.dart 1681:54                                         runBinary
    dart-sdk/lib/async/future_impl.dart 219:22                                   handleError
    dart-sdk/lib/async/future_impl.dart 914:46                                   handleError
    dart-sdk/lib/async/future_impl.dart 935:13                                   _propagateToListeners
    dart-sdk/lib/async/future_impl.dart 715:5                                    [_completeError]
    dart-sdk/lib/async/future_impl.dart 801:7                                    callback
    dart-sdk/lib/async/schedule_microtask.dart 40:11                             _microtaskLoop
    dart-sdk/lib/async/schedule_microtask.dart 49:5                              _startMicrotaskLoop
    dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 186:7           <fn>
    
    Image provider:
      NetworkImage("https://raw.githubusercontent.com/link-u/avif-sample-images/refs/heads/master/kimono.avif",
      scale: 1.0)
    Image key:
      NetworkImage("https://raw.githubusercontent.com/link-u/avif-sample-images/refs/heads/master/kimono.avif",
      scale: 1.0)
    ═══════════════════════════════════
    flutter doctor -v
    [✓] Flutter (Channel stable, 3.27.1, on macOS 15.1.1 24B2091 darwin-arm64, locale en-US)
        • Flutter version 3.27.1 on channel stable at /Users/mahesh/Development/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 17025dd882 (2 days ago), 2024-12-17 03:23:09 +0900
        • Engine revision cb4b5fff73
        • Dart version 3.6.0
        • DevTools version 2.40.2
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
        • Android SDK at /Users/mahesh/Library/Android/sdk
        • Platform android-35, build-tools 34.0.0
        • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 16.0)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Build 16A242d
        • CocoaPods version 1.16.2
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2024.1)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    
    [✓] IntelliJ IDEA Community Edition (version 2021.2.1)
        • IntelliJ at /Applications/IntelliJ IDEA CE.app
        • Flutter plugin version 61.2.4
        • Dart plugin version 212.5080.8
    
    [✓] VS Code (version 1.94.0)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.100.0
    
    [✓] Connected device (3 available)
        • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.1.1 24B2091 darwin-arm64
        • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.1.1 24B2091 darwin-arm64
        • Chrome (web)                    • chrome                • web-javascript • Google Chrome 128.0.6613.85
    
    [✓] Network resources
        • All expected network resources are available.
    
    • No issues found!
    [!] Flutter (Channel master, 3.28.0-1.0.pre.123, on macOS 15.1.1 24B2091 darwin-arm64, locale en-US)
        • Flutter version 3.28.0-1.0.pre.123 on channel master at /Users/mahesh/Development/flutter_master
        • Framework revision a547c7f050 (4 days ago), 2024-12-13 22:11:39 -0500
        • Engine revision 4e4a430bcd
        • Dart version 3.7.0 (build 3.7.0-243.0.dev)
        • DevTools version 2.41.0
        • If those were intentional, you can disregard the above warnings; however it is recommended to use
          "git" directly to perform update checks and upgrades.
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
        • Android SDK at /Users/mahesh/Library/Android/sdk
        • Platform android-35, build-tools 34.0.0
        • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
          This is the JDK bundled with the latest Android Studio installation on this machine.
          To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
        • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 16.0)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Build 16A242d
        • CocoaPods version 1.16.2
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2024.1)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    
    [✓] IntelliJ IDEA Community Edition (version 2021.2.1)
        • IntelliJ at /Applications/IntelliJ IDEA CE.app
        • Flutter plugin version 61.2.4
        • Dart plugin version 212.5080.8
    
    [✓] VS Code (version 1.94.0)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.100.0
    
    [✓] Connected device (3 available)
        • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.1.1 24B2091
          darwin-arm64
        • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.1.1 24B2091
          darwin-arm64
        • Chrome (web)                    • chrome                • web-javascript • Google Chrome
          128.0.6613.85
    
    [✓] Network resources
        • All expected network resources are available.
    
    ! Doctor found issues in 1 category.
    
  3. added
    platform-webWeb applications specifically
    a: imagesLoading, displaying, rendering images
    team-webOwned by Web platform team
    has reproducible stepsThe issue has been confirmed reproducible and is ready to work on
    and removed
    in triagePresently being triaged by the triage team
    on Dec 20, 2024
  4. changed the title [-]AVIF doesn't work on Chrome [/-] [+]AVIF Image doesn't work on Chrome browsers[/+] on Dec 20, 2024
  5. added
    P2Important issues not at the top of the work list
    triaged-webTriaged by Web platform team
    on Jan 8, 2025
  6. ditman commented on Jan 8, 2025

    @ditman
    Member

    @algu1984 quick question, does this happen with other AVIF images?


    It seems we're not correctly identifying the supplied image as an avif, probably around here:

    Here's the hexdump of the first few bytes of the kimono.avif image:

    00000000: 0000 0020 6674 7970 6176 6966 0000 0000  ... ftypavif....
    00000010: 6176 6966 6d69 6631 6d69 6166 4d41 3142  avifmif1miafMA1B
    00000020: 0000 011d 6d65 7461 0000 0000 0000 0048  ....meta.......H
    00000030: 6864 6c72 0000 0000 0000 0000 7069 6374  hdlr........pict
    00000040: 0000 0000 0000 0000 0000 0000 6361 7669  ............cavi
    00000050: 6620 2d20 6874 7470 733a 2f2f 6769 7468  f - https://gith
    00000060: 7562 2e63 6f6d 2f6c 696e 6b2d 752f 6361  ub.com/link-u/ca
    00000070: 7669 6600 0000 001e 696c 6f63 0000 0000  vif.....iloc....
    

    (It'd be helpful if Flutter's error message specified what was the identified MIME-type when decoding)

  7. maheshj01 commented on Jan 8, 2025

    @maheshj01
    Member

    Looks like none of the avif images are rendered I tried few image samples from here

    Safari Vs Chrome

    image
    code sample
    import 'package:flutter/material.dart';
    
    const int maxSeeds = 250;
    
    void main() {
      runApp(const Sunflower());
    }
    
    class Sunflower extends StatefulWidget {
      const Sunflower({super.key});
    
      @override
      State<StatefulWidget> createState() {
        return _SunflowerState();
      }
    }
    
    class _SunflowerState extends State<Sunflower> {
      int seeds = maxSeeds ~/ 2;
    
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          theme: ThemeData(
            brightness: Brightness.dark,
            appBarTheme: const AppBarTheme(elevation: 2),
          ),
          debugShowCheckedModeBanner: false,
          home: Scaffold(
            appBar: AppBar(
              title: const Text('Sunflower'),
            ),
            body: Center(
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.center,
                children: [
                  Image.network(
                      'https://raw.githubusercontent.com/link-u/avif-sample-images/refs/heads/master/fox.profile1.10bpc.yuv444.odd-width.odd-height.avif')
                ],
              ),
            ),
          ),
        );
      }
    }
    
    flutter doctor -v
    [✓] Flutter (Channel stable, 3.27.1, on macOS 15.1.1 24B2091 darwin-arm64, locale en-US)
        • Flutter version 3.27.1 on channel stable at /Users/mahesh/Development/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 17025dd882 (2 days ago), 2024-12-17 03:23:09 +0900
        • Engine revision cb4b5fff73
        • Dart version 3.6.0
        • DevTools version 2.40.2
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
        • Android SDK at /Users/mahesh/Library/Android/sdk
        • Platform android-35, build-tools 34.0.0
        • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 16.0)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Build 16A242d
        • CocoaPods version 1.16.2
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2024.1)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    
    [✓] IntelliJ IDEA Community Edition (version 2021.2.1)
        • IntelliJ at /Applications/IntelliJ IDEA CE.app
        • Flutter plugin version 61.2.4
        • Dart plugin version 212.5080.8
    
    [✓] VS Code (version 1.94.0)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.100.0
    
    [✓] Connected device (3 available)
        • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.1.1 24B2091 darwin-arm64
        • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.1.1 24B2091 darwin-arm64
        • Chrome (web)                    • chrome                • web-javascript • Google Chrome 128.0.6613.85
    
    [✓] Network resources
        • All expected network resources are available.
    
    • No issues found!
    [!] Flutter (Channel master, 3.28.0-2.0.pre.38641, on macOS 15.1.1 24B2091 darwin-arm64, locale en-US)
        • Flutter version 3.28.0-2.0.pre.38641 on channel master at /Users/mahesh/Development/flutter_master
        ! Warning: `flutter` on your path resolves to /Users/mahesh/Development/flutter/bin/flutter, which is not inside your
          current Flutter SDK checkout at /Users/mahesh/Development/flutter_master. Consider adding
          /Users/mahesh/Development/flutter_master/bin to the front of your path.
        ! Warning: `dart` on your path resolves to /Users/mahesh/Development/flutter/bin/dart, which is not inside your current
          Flutter SDK checkout at /Users/mahesh/Development/flutter_master. Consider adding
          /Users/mahesh/Development/flutter_master/bin to the front of your path.
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 4b23b81828 (2 hours ago), 2025-01-07 22:51:59 +0100
        • Engine revision 4b23b81828
        • Dart version 3.7.0 (build 3.7.0-267.0.dev)
        • DevTools version 2.41.0
        • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to
          perform update checks and upgrades.
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
        • Android SDK at /Users/mahesh/Library/Android/sdk
        • Platform android-35, build-tools 34.0.0
        • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
          This is the JDK bundled with the latest Android Studio installation on this machine.
          To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
        • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 16.0)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Build 16A242d
        • CocoaPods version 1.16.2
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2024.1)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    
    [✓] IntelliJ IDEA Community Edition (version 2021.2.1)
        • IntelliJ at /Applications/IntelliJ IDEA CE.app
        • Flutter plugin version 61.2.4
        • Dart plugin version 212.5080.8
    
    [✓] VS Code (version 1.94.0)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.100.0
    
    [✓] Connected device (3 available)
        • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.1.1 24B2091 darwin-arm64
        • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.1.1 24B2091 darwin-arm64
        • Chrome (web)                    • chrome                • web-javascript • Google Chrome 128.0.6613.85
    
    [✓] Network resources
        • All expected network resources are available.
    
    ! Doctor found issues in 1 category.
    
  8. ditman commented on Jan 9, 2025

    @ditman
    Member

    @maheshj01 thanks for confirming!

  9. algu1984 commented on Jan 9, 2025

    @algu1984
    Author

    Looks like none of the avif images are rendered I tried few image samples from here

    Safari Vs Chrome

    image code sample flutter doctor -v

    @maheshj01 Thanks, @ditman none for sure we discovered bug on our own images for sample I just used repo with samples

  10. troyanskiy commented on Apr 3, 2025

    @troyanskiy

    Confirm the issue with any AVIF.
    Just wanted to migrate my file service towards generation AVIFs instead of JPEGs preview, and got problem with Chrome only.

    Used simple converter with nodejs sharp lib.

    iOS app - OK
    Web Safari - OK
    Web Firefox - OK
    Web Chrome - KO

    If download the image and open in chrome just an image -> OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: imagesLoading, displaying, rendering imagesbrowser: chrome-desktoponly manifests in desktop Chromefound in release: 3.27Found to occur in 3.27found in release: 3.28Found to occur in 3.28has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions