WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
199555
Web Inspector: Layers: Uncaught Exception: Request with id = 2 failed. {"code":-32601,"message":"'Page' domain was not found","data":[{"code":-32601,"message":"'Page' domain was not found"}]}
https://bugs.webkit.org/show_bug.cgi?id=199555
Summary
Web Inspector: Layers: Uncaught Exception: Request with id = 2 failed. {"code...
Devin Rousso
Reported
2019-07-06 13:02:20 PDT
# STEPS TO REPRODUCE: 1. inspect any page 2. enable the Layers tab 3. go to the Layers tab 4. close Web Inspector 5. open Web Inspector (make sure the Layers tab is initially selected)
Attachments
Patch
(13.40 KB, patch)
2019-07-06 13:16 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Patch
(11.46 KB, patch)
2019-07-08 15:31 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Patch
(11.45 KB, patch)
2019-07-11 11:03 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Devin Rousso
Comment 1
2019-07-06 13:16:32 PDT
Created
attachment 373579
[details]
Patch
Joseph Pecoraro
Comment 2
2019-07-08 14:49:08 PDT
Comment on
attachment 373579
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=373579&action=review
r- to see an updated patch. The changes in general seem the right direction.
> Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js:41 > + if (InspectorBackend.domains.Page && InspectorBackend.domains.Page.showPaintRects) {
There is a peculiar difference between these two features after the change: • Compositing Borders button shows even if the backend doesn't support it, but shows disabled • Paint Rects button shows only if the backend supports it I'd rather they be consistent. Seem they should both only check Page domain or they should both check Page domain + feature. Any reason to differ?
> Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js:46 > + this._paintFlashingButtonNavigationItem.enabled = !!InspectorBackend.domains.Page.setShowPaintRects; > + this._paintFlashingButtonNavigationItem.activated = InspectorBackend.domains.Page.setShowPaintRects && WI.settings.showPaintRects.value;
If we decide to keep the change in the condition above, then this code can be improved. • We wouldn't need the `enabled` assignment since it would always be true. • Likewise this doesn't need to check `InspectorBackend.domains.Page.setShowPaintRects` since it is guaranteed to be true.
> Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js:599 > + target.PageAgent.setCompositingBordersVisible(activated);
Style: Leading whitespace is off (for all of these target.PageAgent calls after a target.PageAgent check).
> Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js:743 > + target.PageAgent.setCompositingBordersVisible(activated);
Wrong API call! This should be PageAgent.ssetShowRulers
Devin Rousso
Comment 3
2019-07-08 15:31:52 PDT
Created
attachment 373674
[details]
Patch
Joseph Pecoraro
Comment 4
2019-07-11 10:08:50 PDT
Comment on
attachment 373674
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=373674&action=review
r=me
> Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js:639 > + target.PageAgent.setShowPaintRects(activated);
Whitespace is still wrong here.
> Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js:660 > + target.PageAgent.setEmulatedMedia(mediaType);
Whitespace is still wrong here.
> Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js:741 > + for (let target of WI.targets) {
Style: Put a newline before this?
> Source/WebInspectorUI/UserInterface/Views/Layers3DContentView.js:398 > + for (let target of WI.targets) {
Style: Put a newline before this?
> Source/WebInspectorUI/UserInterface/Views/Layers3DContentView.js:400 > + target.PageAgent.setShowPaintRects(activated);
Whitespace is still wrong here.
> Source/WebInspectorUI/UserInterface/Views/Layers3DContentView.js:433 > + for (let target of WI.targets) {
Style: Put a newline before this?
Devin Rousso
Comment 5
2019-07-11 11:03:44 PDT
Created
attachment 373930
[details]
Patch
WebKit Commit Bot
Comment 6
2019-07-11 11:37:03 PDT
Comment on
attachment 373930
[details]
Patch Clearing flags on attachment: 373930 Committed
r247356
: <
https://trac.webkit.org/changeset/247356
>
WebKit Commit Bot
Comment 7
2019-07-11 11:37:05 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8
2019-07-11 11:38:15 PDT
<
rdar://problem/52963131
>
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