Skip to content

Move HTTP requests out of image cache logic #7708

Closed

Description

@jdm

The cache should be a simple store for decoded pixels with a key that can distinguish between two image requests for the same URL that included different sets of cookies, for example. The (eventual) network cache should be in charge of caching the original response bytes to facilitate re-decoding if necessary.

This work will also enable much easier implementation of image elements blocking the document's load event.

Activity

  1. added
    A-content/dom
    A-content/images
    on Sep 22, 2015
  2. changed the title [-]Move HTTP requests out of image cache[/-] [+]Move HTTP requests out of image cache logic[/+] on Sep 22, 2015
  3. jdm commented on May 30, 2016

    @jdm
    MemberAuthor

    Current effort exists in #11453.

  4. KiChjang commented on Oct 1, 2016

    @KiChjang
    Contributor

    I'm looking for something to kill some time, and this looks like a good thing to do so

  5. self-assigned this
    on Oct 1, 2016
  6. jdm commented on Oct 1, 2016

    @jdm
    MemberAuthor

    We should chat about the problems I ran up against.

  7. KiChjang commented on Oct 1, 2016

    @KiChjang
    Contributor

    There's at least a rebased version of #11453 located here.

  8. jdm commented on Oct 2, 2016

    @jdm
    MemberAuthor

    So as not to leave you hanging, these were the Hard Problems that I realized:

    I think those are the only two that I got stuck on.

  9. KiChjang commented on Oct 13, 2016

    @KiChjang
    Contributor

    Both problems sound like they can be solved with futures-rs, though that crate only provides a trait for Futures, and we'll need to work on the implementation on how exactly futures get resolved by the script thread.

  10. assigned and unassigned on Dec 11, 2016
  11. added a commit that references this issue on Jan 11, 2017
    4f42fe3
  12. added 7 commits that reference this issue on Feb 16, 2017
    422ee59
    0ab6a17
    f918229
    fbcf29a
    01cad8f
    1e6810f
    854d720
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-content/domA-content/images

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions