[Webkit-unassigned] [Bug 205600] New: Web Inspector: Console clearing on reload or .clear() calls can happen after contents are logged

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 26 20:49:56 PST 2019


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

            Bug ID: 205600
           Summary: Web Inspector: Console clearing on reload or .clear()
                    calls can happen after contents are logged
           Product: WebKit
           Version: Safari 13
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jonathan at tumult.com
                CC: inspector-bugzilla-changes at group.apple.com

A clear of the console, either from a page reload or from a console.clear() call doesn't happen immediately. Instead there can be a race between when contents are logged and when the console is cleared. The end result is that logs go missing!

This can be easily demonstrated with code like:

====
<script>
console.clear();
console.log("hello world");
</script>
====

The reload case is a little harder to reproduce, but can happen in situations like a local web server or file:/// URL where the page comes in very quickly.  If you just have an HTML page like:

====
<script>
console.log("hello world");
</script>
====

And hit Command-R a lot of times, you'll probably wind up with a blank console.

I've attached these two test cases.

This does not affect Chrome.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191227/0702c257/attachment.htm>


More information about the webkit-unassigned mailing list