Currently styles and scripts are reset independently on sources panel. This can lead to performance issues (like loading of resources content when some tabs are closed while others are still shown). Also we want to remove uiSourceCodes from the TabbedEditorContainer in UISourceCodeRemoved event handler. This means we should not dispatch these events on navigation because this will lead to the same performance problems.
Created attachment 150951 [details] Patch
Committed r121949: <http://trac.webkit.org/changeset/121949>