Why markupDocumentViewer.fullZoom doesn't work on Fennec 4
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)
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.)