I have an extension that listens to the keypress and keydown events.
The extension's content script is injected to all frames, using the
"all_frames":true directive. The content script is matched to both
HTTP and HTTPS.
On most sites this works well and my content script catches these
events on each frame, but on certain web pages the script is not
loaded to some of the frames.
One good example is Gmail's "Compose mail" page. This page has an
ifrmae that holds the actual mail message (beneath the subject). My
content script catches all key events on the page except for those
accruing inside this specific iframe (when typing the actual mail
message) .
Here is snippet of the iframe:
"<iframe tabIndex="1" class="Am Al editable" id=":9q" src="html/
compose/static_files/blank_quirks.html" frameBorder="0" style="padding-
bottom: 0px; background-color: white; padding-left: 0px; padding-
right: 0px; height: 234px; overflow: visible; padding-top: 0px;"
closure_hashCode_vghdqk="425" X3c="true">"
..and part of manifest:
"content_scripts": [
{
"matches": ["http://*/*", "https://*/*"],
"js": ["scripts/jquery-1.3.2.js", "scripts/test.js"],
"css": [],
"all_frames":true
}
],
This is a simple test I wrote in my content script that logs each
loaded frame:
$(document).ready(function(e) { console.log(window.location.href); });
As suspected....there is no entry for the iframe mentioned above.
I would appreciate some help.
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
Or at least, you'll be able to when
https://code.google.com/p/chromium/issues/detail?id=20773 is fixed