akira-kurogane / furigana-injector

Automatically exported from code.google.com/p/furigana-injector
2 stars 1 forks source link

Various problems when removing previously injected furigana in Chrome #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This seems to only happen using Chrome

What steps will reproduce the problem?
1. Click on the extension icon to add furigana over 方花 (example : here 
http://ja.wikipedia.org/wiki/%E6%9D%B1%E6%96%B9%E8%8A%B1%E6%98%A0%E5%A1%9A_%E3%8
0%9C_Phantasmagoria_of_Flower_View. or here 
http://translate.google.com/#ja|ja|%E6%96%B9%E8%8A%B1)
2. Click on the icon once more to remove the furigana
3. Click on the icon a third time to put the furigana back over the kanji

What is the expected output? What do you see instead?
The first time the furigana over 方花 is ほうげ but the second it is 
ほうはな. (In Firefox, it is always ほうげ, which is a consistent 
answer).

Now there are several other small inconveniences :

* If you move the mouth quickly over a page with furigana, the "translation 
box" may not disappear (the MouseLeave event is probably triggered before the 
box has finished loading). This is inconvenient on pages with a lot of furigana 
where it sometimes takes several tries to get rid of it. However, if you click 
on the extension icon once more to remove the furigana, you can't remove the 
box anymore. Also, the kanji above the box is duplicated.
Note : an easy way to test this is to right click in the box, the move the 
cursor somewhere else.

* If you add furigana on any page, then remove them and add them once again, 
you can't view the translations anymore.

* After adding and removing furigana, if I don't touch a tab for a while (maybe 
5 or 10 minutes) and come to back to it after, I get the following error 
message when clicking the extension icon : "Sorry, Furigana Injector has had an 
error. After receiving the reply from the server it couldn't communicate with 
the tab, which is an internal Chrome extensions error.
(N.b. If you know how to replicate this error please contact the developer.)"
By the way, I'm not completely sure about the conditions needed to replicate 
this but I got it a lot while doing the tests.

Which browser are you using, Firefox or Chrome? On what operating system?
Chrome 10.0.612.3, Win7 64

I don't think most of these are worth fixing (I originally did this on youtube, 
where adding furigana makes the title unreadable and that's why I happened to 
add/remove furigana several times in a row, otherwise this shouldn't happen 
very often) but I figured I should at least mention them.

Original issue reported on code.google.com by tvan...@googlemail.com on 23 Dec 2010 at 11:16

GoogleCodeExporter commented 9 years ago
Splitting this issue into the four separate issues #51 ~ #54.
51: Translation pop-ups not enabled after furigana removed once.
52. Pop-ups not disappearing (due to missing mouseleave detection
53. 方花 is ほうげ vs ほうはな.
54. internal tab-to-port error.

Original comment by akira%ya...@gtempaccount.com on 25 Dec 2010 at 4:58