Bug 227642 - Web Inspector: popover loses target element when computed panel and styles panel join/split
Summary: Web Inspector: popover loses target element when computed panel and styles pa...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-07-02 14:38 PDT by Harshil Ratnu
Modified: 2021-07-09 14:41 PDT (History)
2 users (show)

See Also:


Attachments
Bug in Action (53.82 MB, video/quicktime)
2021-07-02 14:38 PDT, Harshil Ratnu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harshil Ratnu 2021-07-02 14:38:23 PDT
Created attachment 432824 [details]
Bug in Action

The window resize handler in Popover.js class malfunctions when the any popover is visible and the styles and computed panel either join or split.

Steps to Reproduce.
1) Inspect any website (eg. www.apple.com)
2) Dock the WI to the bottom of the window
3) Ensure that the window is large enough so that styles panel is separate from computed panel

With ContextualDocumentationPopover
4) Click on contextualDocumentationButton in front of any css property in styles panel
5) While keeping the contextualDocumentationPopover open follow the next step
6) Reduce the window size horizontally until styles panel and computed panel join and then increase it till they split
7) Either in joining or splitting the popover will lose it's target element and start appearing on the top left corner of the window

with color palette 
4) type color css property in style attribute section in styles panel
5) give the property a color and click out of the property for the inline color swatch to appear
6) Click on the color swatch and then the color palette will appear
7) Reduce the window size horizontally until styles panel and computed panel join and then increase it till they split
8) Either in joining or splitting the popover will lose it's target element and start appearing on the top left corner of the window
Comment 1 Radar WebKit Bug Importer 2021-07-09 14:41:54 PDT
<rdar://problem/80394775>