Repository navigation
DevTools: Allow modification of attributes - #32888
Merged
Merged
Conversation
mrobinson
approved these changes
Jul 31, 2024
mrobinson
left a comment
Member
There was a problem hiding this comment.
Looks good to me, just a small nit:
eerii
force-pushed
the
devtools-attributes
branch
2 times, most recently
from
July 31, 2024 15:51
4a717b0 to
cfb0dec
Compare
Signed-off-by: eri <[email protected]>
Signed-off-by: eri <[email protected]>
Co-authored-by: Martin Robinson <[email protected]> Signed-off-by: eri <[email protected]>
eerii
force-pushed
the
devtools-attributes
branch
from
July 31, 2024 16:05
cfb0dec to
d122574
Compare
Signed-off-by: eri <[email protected]>
Member
Author
|
Sorry about that, for some reason that error wasn't showing in my local build until now. |
22 of 26 tasks
Gae24
pushed a commit
to Gae24/servo
that referenced
this pull request
Aug 7, 2024
* feat: allow modification of attributes Signed-off-by: eri <[email protected]> * fix: tidiness Signed-off-by: eri <[email protected]> * feat: clean walker name generation Co-authored-by: Martin Robinson <[email protected]> Signed-off-by: eri <[email protected]> * fix: missed out parameter Signed-off-by: eri <[email protected]> --------- Signed-off-by: eri <[email protected]> Co-authored-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 PR fixes the handling of attributes in the inspector. Now it is possible to add, remove and modify attributes of HTML nodes. There were two issues with it:
modifyAttributesmessage, the node has to inform the walker that there have been mutations on the DOM. The walker then sendsnewMutations(which is part of the event messages that are not directly responding to another message, seebrowsing_contextfor more examples), which then triggers the DevTools client to ask forgetMutations. Here we send a list of all of the changes to the attributes that we made../mach build -ddoes not report any errors./mach test-tidydoes not report any errors