Bug 262518

Summary: [Lockdown Mode] Add logging to the console and the build
Product: WebKit Reporter: Karl Dubost <karlcow>
Component: WebKit APIAssignee: Karl Dubost <karlcow>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Unspecified   
OS: Unspecified   

Karl Dubost
Reported 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.
Attachments
Karl Dubost
Comment 1 2023-10-02 19:27:34 PDT
Karl Dubost
Comment 2 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.
Karl Dubost
Comment 3 2023-10-05 04:47:29 PDT
EWS
Comment 4 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.
Note You need to log in before you can comment on or make changes to this bug.