[SH] Don't call TextFragmentSelectorGenerator for iframes.
TextFragmentSelectorGenerator gets initialized only for main frame as link to text is supported only for those. Therefore, clients shouldn't call TextFragmentSelectorGenerator for iframes. Also adding a DCHECK that selection happened on the same frame as remote interface is being bind to. Bug: 1139864 Change-Id: Ibe4b03e04ef995ebb000a0488ffaa64e378bf20d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2487703Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
David Bokan <bokan@chromium.org> Reviewed-by:
John Lee <johntlee@chromium.org> Commit-Queue: Gayane Petrosyan <gayane@chromium.org> Cr-Commit-Position: refs/heads/master@{#821209}
Showing
Please register or sign in to comment