[Webkit-unassigned] [Bug 135965] Web Inspector: Inspector frequently restores wrong view when opened (often Timelines instead of Resource)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 14 18:57:36 PDT 2014


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





--- Comment #4 from Joseph Pecoraro <joepeck at webkit.org>  2014-08-14 18:57:45 PST ---
(In reply to comment #3)
> A workaround still doesn't seem like enough. There is another actual bug here.
> 
> It looks like _loadNewRecording is triggering the Timelines panel to be the selected panel:

Ugh, and even fixing that we run into another issue.

1. Open inspector
2. Switch to Timelines sidebar (puts a TimelineContentView into back forward history)
3. Switch to Resources sidebar
4. Select any resource (puts a ResourceView into back forward history)
5. Cmd+R to reload
  => ends up with Timelines sidebar selected

So again, looking at a Resource in the Resources sidebar, suddenly we get the Resource in Timelines.

The issue here is because of the back forward history:

  - ResourceViews are torn down
    => last valid view in the back forward list is selected, that is the TimelineContentView
    => timelines sidebar becomes selected
  - Page loads the old resource
  - Resource is restored
    => state restoration checks if timelines is a valid sidebar for this resource, it is.

We can't really fix one of these issues without fixing all of them. Each is easy to reproduce.

-- 
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