Bug 262518 - [Lockdown Mode] Add logging to the console and the build
Summary: [Lockdown Mode] Add logging to the console and the build
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: Safari 17
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Karl Dubost
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-02 19:26 PDT by Karl Dubost
Modified: 2023-10-11 21:19 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Dubost 2023-10-02 19:26:11 PDT
When Lockdown Mode is activated a number of features have been disabled and sites which rely on these features might break.
To make it easier for Web developers and people analyzing the bug reports created by lockdown mode, it would be interesting to have a better logging.

See previously for Lockdown Mode features/bugs
https://bugs.webkit.org/buglist.cgi?list_id=9595295&query_format=advanced&short_desc=%5BLockdown%20Mode%5D&short_desc_type=allwordssubstr

* Web Fonts: 90% of the reported issues so far are related to WebFonts. It is probably interesting to add logging with the name of the font when possible through RELEASE_LOG()
* More Work: Possible followup bug, a modification of the Web Inspector so it advertises that Lockdown mode is active.
* Exceptions: Double check that console message is NOT sent when an exception has been granted for a specific website.
Comment 1 Karl Dubost 2023-10-02 19:27:34 PDT
<rdar://114657783>
Comment 2 Karl Dubost 2023-10-02 19:35:54 PDT
Possible link to understand what is LockDown Mode.
https://support.apple.com/en-us/HT212650

There is also 
https://searchfox.org/wubkat/rev/d65248aa5c753da56ad0c0e0028e4c4cddd5c1f4/Source/WebKit/WebProcess/WebPage/WebPage.cpp#4380
but this is a C++ code page, maybe too heavy for webdevs, even if easy to read.
Comment 3 Karl Dubost 2023-10-05 04:47:29 PDT
Pull request: https://github.com/WebKit/WebKit/pull/18684
Comment 4 EWS 2023-10-11 21:19:52 PDT
Committed 269238@main (72d690ca0740): <https://commits.webkit.org/269238@main>

Reviewed commits have been landed. Closing PR #18684 and removing active labels.