ericwoodruff / passwordhasherplus

Password Hasher Plus
http://goo.gl/LyLk3
Other
12 stars 21 forks source link

Some pages load the content script twice #3

Closed ericwoodruff closed 12 years ago

ericwoodruff commented 12 years ago

Changes to the site settings don't dynamically update for pages like https://ewi2.cantamen.de/stadtmobil/memberlogin.jsp?lang=en

I found this discussion which might be useful http://stackoverflow.com/questions/8859622/chrome-extension-how-to-detect-that-content-script-is-already-loaded-into-a-tab

ericwoodruff commented 12 years ago

It loads the script twice because all_frames was set to true.

http://code.google.com/p/chromium/issues/detail?id=82804

I set all_frames to false, making it work correctly on the site mentioned above and the google accounts settings page. Since there is a connection mapped to each tab in the background page, it would take some redesign to map to tab:frame instead.