Implement text recognition component on macOS.
Categories
(Core :: DOM: Core & HTML, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox103 | --- | fixed |
People
(Reporter: emilio, Assigned: gregtatum)
References
(Blocks 1 open bug)
Details
Attachments
(7 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Reporter | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
Depends on D140874
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Depends on D140875
Assignee | ||
Comment 4•2 years ago
|
||
Note this is an experiment. It seems like this could all happen from the C++
side of things. The issues is getting the width of the parent img tag, and have
layout happen relative to the img above it.
Depends on D143421
Assignee | ||
Comment 5•2 years ago
|
||
Depends on D143422
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 6•2 years ago
|
||
Depends on D143423
Assignee | ||
Comment 7•2 years ago
|
||
Depends on D146829
Updated•2 years ago
|
Assignee | ||
Comment 8•2 years ago
|
||
I have patches up for review, but these are blocked by Bug 1696504 and Bug 1743170. Hopefully that will land soon-ish, otherwise I will work on adding the proper ifdefs to land this code. I would like to get it in to review sooner rather than later.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Pushed by gtatum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a21b8153ca2a Implement text recognition component in macOS. r=emilio,nordzilla https://hg.mozilla.org/integration/autoland/rev/b5f762f1f22e Prototype a menu button click demo for text recognition r=fluent-reviewers,emilio,nordzilla,flod https://hg.mozilla.org/integration/autoland/rev/a0b089fb747b Fill in the quad points for text recognition r=emilio,nordzilla https://hg.mozilla.org/integration/autoland/rev/dc1be2f0e0b6 Prototype a UAWidget for TextRecognition r=emilio,nordzilla https://hg.mozilla.org/integration/autoland/rev/b9beaecf9708 Return the ImageText results from recognizeCurrentImageText r=emilio,nordzilla https://hg.mozilla.org/integration/autoland/rev/a14a874c57b0 Put the text recognition UI behind an experimental feature r=emilio,nordzilla,fluent-reviewers,preferences-reviewers,flod https://hg.mozilla.org/integration/autoland/rev/d1f1173aecfc Drive by fix of Feature Gate docs r=nordzilla,preferences-reviewers,jaws
Comment 10•2 years ago
|
||
Backed out for causing Android build bustages on NodeListBinding.cpp
Backout link : https://hg.mozilla.org/integration/autoland/rev/52946cd9af9f2c16417d48f163eb9c0db884015a
Link to failure log : https://treeherder.mozilla.org/logviewer?job_id=380046893&repo=autoland&lineNumber=29945
Failure line :
/builds/worker/workspace/obj-build/dom/bindings/NodeListBinding.cpp:54:15: error: no matching function for call to 'StrongOrRawPtr
Assignee | ||
Comment 11•2 years ago
|
||
:emilio do you have any idea on what's causing this build error on android fuzzing builds? It's the only build that is affecting. I have narrowed it down to this change in my patch stack: https://hg.mozilla.org/try/rev/6e41c66c1f3bf91e1767f87d8244646974eadb31
I'm not familiar with the bindings code enough to have a clue what the issue. At the very least I could split this patch out to a separate bug, since the feature still works without it. I could also delete and push to try to find the specific line that's causing the issue.
Reporter | ||
Comment 12•2 years ago
|
||
This is a pre-existing bug in the bindings / bindings configuration. The issue is that nsINodeList.h
doesn't include nsIContent.h
, and the bindings don't know that nsIContent
is a subclass of nsINode
. So including nsINode.h
and nsINodeList.h
is not enough for nsINodeList::IndexerGetter
to compile, because the later returns nsIContent*
I can see multiple ways to fix this. The easiest is probably this:
diff --git a/dom/bindings/Bindings.conf b/dom/bindings/Bindings.conf
index 636d9c805976f..85345834a7555 100644
--- a/dom/bindings/Bindings.conf
+++ b/dom/bindings/Bindings.conf
@@ -591,6 +591,7 @@ DOMInterfaces = {
'Node': {
'nativeType': 'nsINode',
+ 'headerFile': 'nsIContent.h',
},
'NodeIterator': {
There's also the alternative to do something like this does. I think that's probably more straight-forward.
Assignee | ||
Comment 13•2 years ago
|
||
Re-landing since Bug 1772562 is queued.
Comment 14•2 years ago
|
||
Pushed by gtatum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b1ac61d8f49c Implement text recognition component in macOS. r=emilio,nordzilla https://hg.mozilla.org/integration/autoland/rev/cc5d236d3496 Prototype a menu button click demo for text recognition r=fluent-reviewers,emilio,nordzilla,flod https://hg.mozilla.org/integration/autoland/rev/c4c054fbb489 Fill in the quad points for text recognition r=emilio,nordzilla https://hg.mozilla.org/integration/autoland/rev/b137841d6fa5 Prototype a UAWidget for TextRecognition r=emilio,nordzilla https://hg.mozilla.org/integration/autoland/rev/cae0a1f8474d Return the ImageText results from recognizeCurrentImageText r=emilio,nordzilla https://hg.mozilla.org/integration/autoland/rev/9a499e40799d Put the text recognition UI behind an experimental feature r=emilio,nordzilla,fluent-reviewers,preferences-reviewers,flod https://hg.mozilla.org/integration/autoland/rev/acf6d2bf1770 Drive by fix of Feature Gate docs r=nordzilla,preferences-reviewers,jaws
Comment 15•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b1ac61d8f49c
https://hg.mozilla.org/mozilla-central/rev/cc5d236d3496
https://hg.mozilla.org/mozilla-central/rev/c4c054fbb489
https://hg.mozilla.org/mozilla-central/rev/b137841d6fa5
https://hg.mozilla.org/mozilla-central/rev/cae0a1f8474d
https://hg.mozilla.org/mozilla-central/rev/9a499e40799d
https://hg.mozilla.org/mozilla-central/rev/acf6d2bf1770
Description
•