WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
288644
CaretPosition should be EnabledBySetting
https://bugs.webkit.org/show_bug.cgi?id=288644
Summary
CaretPosition should be EnabledBySetting
Sam Sneddon [:gsnedders]
Reported
2025-02-26 13:23:00 PST
https://commits.webkit.org/287047@main
(
bug 172137
) added Document.caretPositionFromPoint(). However, while Document.caretPositionFromPoint() itself has [EnabledBySetting=CaretPositionFromPointEnabled] neither CaretPosition nor CaretPositionFromPointOptions do. These should also be behind the flag, because otherwise we break anyone doing anything like `if (window.CaretPosition)` — or the mdn-bcd-collector trying to fetch meaningful data about what browser supports the related APIs.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-02-26 13:23:14 PST
<
rdar://problem/145688017
>
Tim Nguyen (:ntim)
Comment 2
2025-02-27 15:47:47 PST
Pull request:
https://github.com/WebKit/WebKit/pull/41567
EWS
Comment 3
2025-02-28 04:31:41 PST
Committed
291314@main
(c4e24f803946): <
https://commits.webkit.org/291314@main
> Reviewed commits have been landed. Closing PR #41567 and removing active labels.
EWS
Comment 4
2025-03-03 08:02:25 PST
Committed
289651.204@safari-7621-branch
(3f50535815b5): <
https://commits.webkit.org/289651.204@safari-7621-branch
> Reviewed commits have been landed. Closing PR #2700 and removing active labels.
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