Bug 190859

Summary: Web Inspector: popovers for function source code are malformed
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, inspector-bugzilla-changes, joepeck, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[Image] Screenshot of Issue
none
Patch
none
Patch none

Description Devin Rousso 2018-10-23 19:22:02 PDT
Created attachment 353015 [details]
[Image] Screenshot of Issue

* STEPS TO REPRODUCE:
1. Go to any bug on <https://bugs.webkit.org> that has a Patch attachment
2. Click "Review Patch"
3. Open WebInspector
4. Go to the Debugger tab
5. Hit the "Pause script execution" button ( || )
6. Move the mouse onto the page (WebInspector should pause on jquery-1.4.2.min.js:1013)
7. Hover `event` in `.event.handle.apply`
8. Once the popover appears for the `event` object, move the mouse horizontally to the right onto `handle` on the same line
 => Popover is malformed (briefly flashes)
Comment 1 Devin Rousso 2018-10-23 19:29:31 PDT
Created attachment 353016 [details]
Patch
Comment 2 Joseph Pecoraro 2018-10-24 12:19:38 PDT
Comment on attachment 353016 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=353016&action=review

r=me

> Source/WebInspectorUI/UserInterface/Views/Popover.js:373
> +                this._animationFrameIdentifier = requestAnimationFrame(drawBackground.bind(this));

Can we add this to the constructor? I like to have all member variables defined there when possible.

    this._animationFrameIdentifier = undefined;

> Source/WebInspectorUI/UserInterface/Views/Popover.js:381
> +        cancelAnimationFrame(this._animationFrameIdentifier);

Preferably this would also clear the identifier:

    this._animationFrameIdentifier = undefined;
Comment 3 Devin Rousso 2018-10-24 13:46:07 PDT
Created attachment 353051 [details]
Patch
Comment 4 WebKit Commit Bot 2018-10-24 15:13:01 PDT
Comment on attachment 353051 [details]
Patch

Clearing flags on attachment: 353051

Committed r237401: <https://trac.webkit.org/changeset/237401>
Comment 5 WebKit Commit Bot 2018-10-24 15:13:03 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2018-10-24 15:14:30 PDT
<rdar://problem/45535265>