Closed Bug 1859680 Opened 2 years ago Closed 2 years ago

Fail in ContentParent::RecvFindImageText() on unsupported configurations

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

(Blocks 2 open bugs)

Details

(Keywords: sec-want, Whiteboard: [adv-main121-])

Attachments

(1 file)

It would be good to reject this message immediately in ContentParent::RecvFindImageText() if we're in a configuration that doesn't support it (eg if the pref is false or the platform doesn't support it). The stub implementation of the image text finder looks harmless but better safe than sorry. Though that might require adjusting test_image_recognition_unsupported.html.

Severity: -- → S3
Assignee: nobody → continuation
Group: dom-core-security

Also, avoid calling SendFindImageText() on unsupported platforms, so that
test_image_recognition_unsupported.html will pass.

I've only tested this on MacOS, but I messed around with it enough that I think I properly tested what will happen on unsupported systems. test_image_recognition_unsupported.html should still pass. If we do send the message somehow, we'll crash the child process or whatever the IPC fail does.

Blocks: 1860860
Pushed by amccreight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/203c83fdbd8d Reject RecvFindImageText() messages on unsupported platforms. r=gregtatum
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Whiteboard: [adv-main121-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: