Why markupDocumentViewer.fullZoom doesn't work on Fennec 4
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?
Additional System Details
- User Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
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.)