Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve devtools experience when navigating #26325

Merged
merged 7 commits into from Apr 28, 2020

Support clearing cached events in console actor.

  • Loading branch information
jdm committed Apr 26, 2020
commit bce4ec5b70f98c98a996b05767dfa7c1915fa0ce
@@ -277,6 +277,13 @@ impl Actor for ConsoleActor {
stream: &mut TcpStream,
) -> Result<ActorMessageStatus, ()> {
Ok(match msg_type {
"clearMessagesCache" => {
let browsing_context =
registry.find::<BrowsingContextActor>(&self.browsing_context);
self.cached_events.borrow_mut().remove(&browsing_context.active_pipeline.get());
ActorMessageStatus::Processed
}

"getCachedMessages" => {
let str_types = msg
.get("messageTypes")
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.