[Webkit-unassigned] [Bug 132612] New: "Flash of content without image" when pasting a raw image from the pasteboard

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 6 09:53:53 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=132612

           Summary: "Flash of content without image" when pasting a raw
                    image from the pasteboard
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: beidson at apple.com


"Flash of content without image" when pasting a raw image from the pasteboard

The sequence of events goes like this:

-EditorMac has an ArchiveResource for the raw image and puts it in the document loader.
-Editor inserts the new document fragment with the <img> element for the raw image
-CachedResourceLoader is asked for the CachedImage for the new image
-Because a CachedImage doesn't exist yet, a "substitute resource delivery" is scheduled, where the ArchiveResource will be loaded after a zero-delay
-But before it is loaded, a layout and paint happens with the image resource missing, causing a radical change in layout and a "flash of content without image" that is quite noticeable.

I have a simple patch which lets certain flagged ArchiveResources load into a CachedResource synchronously.

It's a little deficient in that the load does not go through ResourceLoader and therefore doesn't get load callbacks.

In this case (pasting a raw image from the pasteboard that has a webkit-fake-url: url) the tradeoff seems fine...  but going forward we really need a better solution for this type of problem.

<rdar://problem/16826199>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list