uetchy / Polyglot

🌏 The missing Safari extension that translates selected text into your native language.
Other
482 stars 44 forks source link

Bug: after click `translate`, the box not show up. #142

Closed SuanCaiYv closed 1 year ago

SuanCaiYv commented 1 year ago

Description

Hi!, I have encountered an bug. When I right click the selected text and click translate button, nothing show up.

To Reproduce

  1. select a text
  2. right click
  3. choose translate button and click
  4. nothing happened.

Expected behavior

No response

Screenshots

No response

What's My Browser Link

https://www.whatsmybrowser.org/b/Q1GS6

Polyglot Version

3.4.0

Additional context

But I have noticed that safari fix a bug: Processing web content may lead to arbitrary code execution. Apple is aware of a report that this issue may have been actively exploited. in version 16.5.2.

Here is the linked page: https://support.apple.com/en-us/HT213826

It's there something related?

As a comparison, I downloaded safari technology preview, and got same problem. But I check the elements and find the text is already translated(in both safari version), and the html is also updated but not rendered.

image

But there is still no box appear.

my macOS version: 13.4.1.

gingerbeardman commented 1 year ago

See https://github.com/uetchy/Polyglot/issues/128#issuecomment-1487229870 for solution.

Let me know how you get on.

SuanCaiYv commented 1 year ago

@gingerbeardman Thanks! It works well.