alecmev / trimless-gmail

Automatically shows trimmed content in Google Mail™
MIT License
15 stars 6 forks source link

Trimless attempts to access contents of cross-origin frames, which results in some features not working #31

Closed alecmev closed 10 years ago

alecmev commented 10 years ago

ad function in untrim and ununtrim tries to get all the text inside this. The call to ad is malformed and doesn't apply local this to it, hence, it equals to the whole window. Since there are multiple iframe in Gmail's code, jQuery tries to retrieve their contents as well, and fails miserably, while preventing untrim from continuing the execution.