Skip to content

History Duplication #151

@kevingy

Description

@kevingy

Is looks like there is some duplication of effort for logging requests and keeping a history of the navigation state. The Browser class has the following collections:

private List<LogItem> _logs = new List<LogItem>();
private List<NavigationState> _history = new List<NavigationState>();

The HttpRequestLog (subclassed from LogItem) and NavigationState objects are similar, but not the same. This begs the question, why are there two of these collections for keeping history? Even if the two collections are really needed, why can't they be collections of the same object rather than having three classes for logging history records?

Refactoring is needed, but I suspect this will be a change that breaks backwards compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions