WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
117994
Web Inspector: stepping through while paused in debugger makes a popover appear
https://bugs.webkit.org/show_bug.cgi?id=117994
Summary
Web Inspector: stepping through while paused in debugger makes a popover appear
Antoine Quint
Reported
2013-06-25 08:41:47 PDT
When paused in the debugger and stepping through the call stack, a popover appears in the content view. I think this is related to a previously highlighted token that we're trying to restore the popover for even though the popover had been dismissed in the meantime.
Attachments
Patch
(1.77 KB, patch)
2013-06-26 08:08 PDT
,
Antoine Quint
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2013-06-25 08:42:18 PDT
<
rdar://problem/14260788
>
Antoine Quint
Comment 2
2013-06-25 08:47:29 PDT
I'll take a look at this tomorrow.
Joseph Pecoraro
Comment 3
2013-06-25 10:56:30 PDT
Yes, I've noticed this too. I think SourceCodeTextEditor._activeCallFrameDidChange is too keen on reshowing the last tracked token. It should only do that if the popover is visible, to refresh the popover.
Antoine Quint
Comment 4
2013-06-26 07:43:29 PDT
This is due to the following code in SourceCodeTextEditor.prototype._activeCallFrameDidChange: if (this.tokenTrackingController.tracking && this.tokenTrackingController.candidate) this.tokenTrackingControllerNewHighlightCandidate(this.tokenTrackingController, this.tokenTrackingController.candidate);
Antoine Quint
Comment 5
2013-06-26 07:48:43 PDT
Interestingly this call is directly followed by a call to: this._dismissPopover(); But in tokenTrackingControllerNewHighlightCandidate() we display the popover after gathering the content from the backend, so we dismiss and show the popover again.
Antoine Quint
Comment 6
2013-06-26 08:08:46 PDT
Created
attachment 205492
[details]
Patch
WebKit Commit Bot
Comment 7
2013-06-26 09:00:52 PDT
Comment on
attachment 205492
[details]
Patch Clearing flags on attachment: 205492 Committed
r151991
: <
http://trac.webkit.org/changeset/151991
>
WebKit Commit Bot
Comment 8
2013-06-26 09:00:55 PDT
All reviewed patches have been landed. Closing bug.
Joseph Pecoraro
Comment 9
2013-06-26 11:35:55 PDT
Stepping through the following code: var x = 0; x += Math.random(); x += Math.random(); x += Math.random(); x += Math.random(); If I had a popover for "x" and stepped through the code I would want to see the popover stay up and just update with the new value of x each time. Does that happen? Should I just file a separate bug requesting that behavior?
Antoine Quint
Comment 10
2013-06-26 23:50:55 PDT
The popover will hide whenever you step through code and won't reappear until there is additional user action to re-highlight the token. We should indeed have a separate bug to make this work.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug