On 2014-03-03, 3:30 PM, Felipe G wrote:
During the translation phase, Chrome imports a JS <script> into the webpage
and this script does all the translation work.
There's the language detection phase (another use case that I plan to ask
on a separate e-mail) in which chrome does a .textContent and run the
language detection off of it on that page's renderer thread.
Note that Chrome might get away with janking the content process, but
that's not necessarily going to be acceptable for us.
Cheers,
Ehsan
On Mon, Mar 3, 2014 at 4:31 PM, Jeff Muizelaar <jmuizel...@mozilla.com>wrote:
On Mar 3, 2014, at 2:28 PM, Felipe G <fel...@gmail.com> wrote:
Hi everyone, I'm working on a feature to offer webpage translation in
Firefox. Translation involves, quite unsurprisingly, a lot of DOM and
strings manipulation. Since DOM access only happens in the main thread,
it
brings the question of how to do it properly without causing hank.
What does Chrome do?
-Jeff
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform