find icon indicating copy to clipboard operation
find copied to clipboard

Traverse <iframe> if Same Origin

Open dislegal opened this issue 7 years ago • 7 comments

Issue Description

The extension currently gathers no results from text within iframes.

Steps to Reproduce

  • Open a web page with an iframe.
  • Search for text contained within the iframe.

dislegal avatar Jan 17 '18 00:01 dislegal

@dislegal Although it is possible using the standard JavaScript API to get the document object from an iframe (using element.contentDocument), due to security reasons it is only possible to search within iframes where the source is within the same domain.

Unfortunately this will not become a feature in the foreseeable future.

brandon1024 avatar Jan 17 '18 00:01 brandon1024

That's a shame! My whole use case for a regex search extension is to search within an iframe that has the same source as the page it's hosted on. Seems I'm an outlyer...

dislegal avatar Jan 17 '18 00:01 dislegal

It is, I certainly would have implemented this feature if it were possible. Unfortunately my hands are tied.

brandon1024 avatar Jan 17 '18 00:01 brandon1024

@dislegal I've reopened this issue to attempt to track progress. I'm going to attempt to adapt the current algorithm to handle iframes that fall within the same origin. If this is successful, I will also ensure a small warning icon is displayed if the iframe is from another origin.

brandon1024 avatar Feb 07 '19 03:02 brandon1024

I'd love to hear what you've found. The AWS console uses a lot of iframes.

RichardBronosky avatar Aug 07 '20 19:08 RichardBronosky

would like to have this feature too! at the mean time, does anyone know any alternative that works for iframe? Thanks

atjshop avatar May 26 '21 14:05 atjshop

I would love to be able to search iframe-content from the same origin. The feature set and UI of find+ is really great, but as iframes are not included in the search, it is not helpful for my usecase - what a pity. FYI: my usescase is to use the "reg-ex search and replace" in Atlassian Confluence (which is a wiki) in the editing view. The editing view makes use of iframes...

cherub-i avatar Jan 20 '23 13:01 cherub-i