Repository navigation
Conversation
Contributor
|
Not sure if I will have time to review it in detail but I am wondering about something: A couple of times we iterate over a vector that gets collected from an iterator. We could just iterate directly over the iterator. |
Member
Author
This points at the problem all of these changes are trying to solve. We typically cannot keep the iterators alive because they borrow |
jdm
approved these changes
Aug 19, 2026
| self.add_pending_change(SessionHistoryChange { | ||
|
|
||
| let Some(webview) = self.webviews.get_mut(&webview_id) else { | ||
| return warn!("Adding pending chnage to unknown WebView: {webview_id:?}"); |
Member
There was a problem hiding this comment.
Suggested change
| return warn!("Adding pending chnage to unknown WebView: {webview_id:?}"); | |
| return warn!("Adding pending change to unknown WebView: {webview_id:?}"); |
This makes dealing with pending changes a bit more complicated, but once more members of `Constellation` are moved to `ConstellationWebView`, this should become simpler. Signed-off-by: Martin Robinson <[email protected]>
mrobinson
force-pushed
the
move-pending-changes-to-constellation-webview
branch
from
August 19, 2026 18:03
67a2c0c to
78858ea
Compare
mrobinson
enabled auto-merge
August 19, 2026 18:03
4 of 7 tasks
RichardTjokroutomo
pushed a commit
to RichardTjokroutomo/servo
that referenced
this pull request
Oct 6, 2026
…o#47341) This makes dealing with pending changes a bit more complicated, but once more members of `Constellation` are moved to `ConstellationWebView`, this should become simpler. Testing: This should not change observable behavior so should be covered by existing tests. Fixes: This is part of servo#47294. Signed-off-by: Martin Robinson <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This makes dealing with pending changes a bit more complicated, but once
more members of
Constellationare moved toConstellationWebView,this should become simpler.
Testing: This should not change observable behavior so should be covered by existing tests.
Fixes: This is part of #47294.