Skip to content

Raw response for Optimization Detective storage request failure could be displayed in IFRAME with srcdoc instead of as raw HTML in PRE #1828

@westonruter

Description

@westonruter

Feature Description

When the storage endpoint for Optimization Detective is not accessible (see #1762), an error notice is displayed:

Image

When expanding the raw response, this can can result in an HTML page being shown in code:

Image

It would be preferable if this were presented more nicely, such as in an IFRAME via srcdoc (with sandbox), like so:

Image

This should be straightforward to do simply by checking if the cached response has a text/html type, and if so, present in an IFRAME instead of as a PRE tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done 😃

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions