문제

We can use gFindBar.toggleHighlight(true) before to highlight found result in JS. After firefox 25 beta, findbar structure changed. This method is still belongs to gFindBar, however, through XBL binding.

The method is now defined in "omni.ja\chrome\toolkit\content\global\bindings\findbar.xml" or chrome://global/content/bindings/findbar.xml#findbar.

Then it's no longer listed in accessible javascript object list. How can I use it in chrome environment? Is there anyway to highlight found result with javascript?

도움이 되었습니까?

해결책

It doesn't matter that it's not listed (as a method of the XULElement, since it is not), you can continue using it as you did until now.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top