Bug 225947 - Web Inspector: Uncaught exception: Page.setShowRulers' was not found when starting remote inspection
Summary: Web Inspector: Uncaught exception: Page.setShowRulers' was not found when sta...
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-05-18 17:44 PDT by Patrick Angle
Modified: 2021-05-18 17:45 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Angle 2021-05-18 17:44:43 PDT
It looks like we aren't checking for Page.setShowRulers somewhere in the frontend, and since iOS doesn't support rulers, this fails. The Rulers button also appears in the Elements Tab, even though it doesn't do anything.

```
'Page.setShowRulers' was not found (at Connection.js:​162:​29)​
    _dispatchResponseToPromise @ Connection.js:​162:​29
    _dispatchResponse @ Connection.js:​124:​44
    dispatch @ Connection.js:​77:​35
    dispatchMessageFromTarget @ TargetManager.js:​176:​39
    dispatchMessageFromTarget @ TargetObserver.js:​47:​51
    _dispatchEvent @ Connection.js:​210:​26
    dispatch @ Connection.js:​79:​32
    dispatch @ InspectorBackend.js:​232:​52
    ?​ @ MessageDispatcher.js:​42:​34
```
Comment 1 Radar WebKit Bug Importer 2021-05-18 17:44:56 PDT
<rdar://problem/78182057>