On Mon, Jan 11, 2010 at 8:32 PM, Petty <m...@paulgriffinpetty.com> wrote:
> I'm actually just trying to use window.getSelection() on a tab that
> has a view-source: displayed so that raw HTML can be posted through a
> form in a Chrome extension's popup window.
>
> I have it working for 'normal' window / tab displays but getSelection
> () returns nothing on view-source: tabs.

I created this test content script and it works fine on "view-source:" pages:

  onmouseup = function() { alert(getSelection()); };

Give it a try.
-- 
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to