Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

Why markupDocumentViewer.fullZoom doesn't work on Fennec 4

  • 1 ответ
  • 1 имеет эту проблему
  • 13 просмотров
  • Последний ответ от Matt Brubeck

more options

Hi,

I tried to use gBrowser.selectedBrowser.markupDocumentViewer.fullZoom to do page zoom on Fennec 4 accroding https://developer.mozilla.org/en/Full_page_zoom., but it doesn't work. Could you help me solve this problem or put some sample code?

Thanks,

newmore

Hi, I tried to use gBrowser.selectedBrowser.markupDocumentViewer.fullZoom to do page zoom on Fennec 4 accroding https://developer.mozilla.org/en/Full_page_zoom., but it doesn't work. Could you help me solve this problem or put some sample code? Thanks, newmore

Все ответы (1)

more options

The "gBrowser" (tabbrowser) object does not exist in Fennec. Also, you cannot access the markupDocumentViewer object from the parent process in Fennec; you will need to use a "frame script" running in the content process.

For many more details, see: https://wiki.mozilla.org/Mobile/Fennec/Extensions

For some example code that uses markupDocumentViewer in a Fennec add-on, see: http://hg.mozilla.org/users/mbrubeck_mozilla.com/biggertext/file/tip

And if you have any questions, you can try the #mobile channel on irc.mozilla.org. (If you don't get a response, be patient - most people on this channel are only around during North America business hours.)