Skip to content

devtools: Fix function name not apprearing in Preview - #44764

Merged
eerii merged 1 commit into
servo:mainfrom
atbrakhi:devtools-fix-broken-fn-name
May 6, 2026
Merged

eerii merged 1 commit into
servo:mainfrom
atbrakhi:devtools-fix-broken-fn-name

Conversation

@atbrakhi

@atbrakhi atbrakhi commented May 6, 2026 •

Copy link
Copy Markdown
Member

When hovering over a function in debugger tab, function name is missing in previewer. It's because Firefox expects function preview data at top level(this can also be noted in the log capture for firefox). This change send FunctionPreview in ObjectActorMsg so match Firefox expectation.

Testing: We already have test for it that was failing. Fixes the failing test_console_log_function test
Fixes: part of #36027

@atbrakhi
atbrakhi requested a review from eerii as a code owner May 6, 2026 13:12
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label May 6, 2026
@atbrakhi

atbrakhi commented May 6, 2026

Copy link
Copy Markdown
Member Author

Now:
image

Before (Broken)
image

@eerii eerii left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! :) Should we add a check for this in the function test so that it doesn't regress again in the future? Apologies, we already have a test for this (test_console_log_function), which was failing, but now it passes!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label May 6, 2026
@eerii
eerii added this pull request to the merge queue May 6, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label May 6, 2026
Merged via the queue into servo:main with commit a0a9b1f May 6, 2026
34 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label May 6, 2026
@eerii eerii mentioned this pull request May 12, 2026
24 of 37 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants