Closed Bug 1566072 Opened 5 years ago Closed 5 years ago

Investigate scope of Preview Icons

Categories

(DevTools :: Application Panel, task, P1)

task

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ogasidlo, Assigned: ogasidlo)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Investigate the scope of Preview Icons in the application panel.

Summary: Investigate scope of Preview Icons → [meta] Investigate scope of Preview Icons
Assignee: nobody → ogasidlo
Status: NEW → ASSIGNED
Depends on: 1567150

Security issues (injecting code through path / images)

As we get the URL of the icon, we can display a preview of the icons in the panel as long as we use the img element, which will e.g. disable all scripts in an SVG. (see example of an use case: http://html5sec.org/test.svg -> inspector)

functionality already in place as the tooltip in inspector is showing images (https://searchfox.org/mozilla-central/source/devtools/client/inspector/markup/views/element-container.js#154-183)

I need to check here if we can use the cached version of the image instead of an additional request to the original file and how, as the inspector is using the original from: https://searchfox.org/mozilla-central/source/devtools/client/inspector/markup/views/element-container.js#161

Keywords: meta
Summary: [meta] Investigate scope of Preview Icons → Investigate scope of Preview Icons
Priority: P3 → P1

Which formats does manifest support?

Supported formats:

  • APNG
  • GIF
  • ICO
  • JPEG / JFIF
  • SVG
  • PNG
  • Lossless WebP

Best practise (those we should suggest):

  • SVG
  • PNG (also fallback)
  • Lossless WebP

What do we do with images that are not supported by the manifest, but by the browser. Do we show them?:

The answer here would be as long as we do support the format, we should show them. But we should also show a warning next to it that the format is not best practice.

Sizes

https://searchfox.org/mozilla-central/source/dom/manifest/ManifestIcons.jsm#51-53

// We start trying the smallest icon that is larger than the requested
// size and go up to the largest icon if they fail, if all those fail
// go back down to the smallest
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.