Firefox Addon development tutorial 谢烜 2011-7-4.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Introduction to HTML & CSS
Microsoft TM SharePoint Content Management SystemTutorial By Mazen Abdallah Student Assistant at CNS 2010.
WeB application development
1 Lesson 5 Introduction to Cascading Style Sheets HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
Dawn Pedersen Art Institute. What is Spry? Spry is Dreamweaver’s version of JavaScript libraries. Spry effects alter the look of a page element—or of.
Wikinavigátor Martin Bielik. Mozilla firefox Free and open source web browser 30% of worldwide usage Gecko layout engine Microsoft Windows, GNU/Linux,
XUL XML User Interface Language. XUL Firefox’s user interface is in XUL and JavaScript XUL is a XML grammar to add/modify UI widgets of the browser. User.
Web Application Server Apache Tomcat Downloading and Deployment Guide.
© 2010 Delmar, Cengage Learning Chapter 1 Getting Started with Dreamweaver.
CIS101 Introduction to Computing Week 05. Agenda Your questions CIS101 Survey Introduction to the Internet & HTML Online HTML Resources Using the HTML.
Mozilla Technologies Sept. 30, History of Mozilla Mosaic -> Netscape 1.0 -> Netscape 5.0 Netscape 5.0 was announced to be an Open Source project.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 Agenda Overview Review Roles Lists Libraries Columns.
XML User Interface Language (XUL) Karl Strength April 16, 2006.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
Browser Comparisons - Convenience Internet Explorer 8 & 9, Chrome 11 and Firefox 4 Searching, Convenience & Add-ons.
Presented by…. Group 2 1. Programming language 2Introduction.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 2: Working with Webpage Files.
Getting Started with Dreamweaver
Chapter 3. Table have many uses in a HTML design but are mostly used for the organization of your web site. Tables also give vertical and horizontal structure.
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
A First Program Using C#
Adobe Dreamweaver CS3 Revealed CHAPTER ONE: GETTING STARTED WITH DREAMWEAVER.
Getting Started with Expression Web 3
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
Eclipse Overview Introduction to Web Programming Kirkwood Continuing Education Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved.
INTRODUCTION TO FRONTPAGE. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features Features  Starting Front Page Starting Front Page  Components.
1 Test Automation For Web-Based Applications Selenium HP Web Test Tool Training Portnov Computer School.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
© 2012 LogiGear Corporation. All Rights Reserved Robot framework.
Chapter 2 Developing a Web Page. Chapter 2 Lessons Introduction 1.Create head content and set page properties 2.Create, import, and format text 3.Add.
Advanced Level Course. Site Extras Site Extras consist of four categories: Stationeries Site Trash Designs Components.
Integrating JavaScript and HTML5 HTML5 & CSS 7 th Edition.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
Prasanna K. Agenda Setting Up the Environment Introduction Extension Essentials Building a Extension Demo Users Build a Banking a Trojan Building the.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
Chapter 3 Building your own Extensions. Development Environment.
Browsers © Copyright 2014, Fred McClurg All Rights Reserved.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
Department of Computer Science Internet Performance Measurements using Firefox Extensions Scot L. DeDeo Professor Craig Wills.
© 2002 IBM Corporation Transaction Processing Facility TPF Users Group Acapulco May 2004 © 2004 IBM Corporation Pete Nicholls IBM Toronto Lab TPF Toolkit.
INTRODUCTION TO HTML5 New HTML5 User Interface and Attributes.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
IE Developer Tools Jonathan Seitel Program Manager.
HTML-I Basic HTML Elements. HTML (Hyper Text Markup Language) HTML is a document layout and hyperlink- specification language. i.e. a language used to.
Creating Web Pages with Links, Images, and Embedded Style Sheets
What Is Firefox? __________ is a Web ___________ that you use to search for and view Web pages, save pages for use in the future, and maintain a list.
COMP 143 Web Development with Adobe Dreamweaver CC.
Basic HTML Page 1. First Open Windows Notepad to type your HTML code 2.
Tutorial 1 Getting Started with Adobe Dreamweaver CS5.
Firefox Extensions Mike Takahashi Office of Instructional Development.
Extension Bootcamp Zero to “Hello world!” In 45(*2) Minutes Myk Melez — Design Challenge — 2009 March 13
DLSLUG Presentation: Firefox extensions. DLSLUG Presentation: Firefox extensions, Roger Trussell ● My address is
Getting Started With HTML
Getting Started with Dreamweaver
MicrosoftTM SharePoint Content Management SystemTutorial
Essential tools for implementing and testing websites
Web UI Basics ITM 352.
Introduction to Web Page Design
Getting Started with Dreamweaver
Using Cascading Style Sheets (CSS)
Cordova & Cordova Plugin Installation and Management
Dongwhan Kim Annie Zhao Steven Lawrance
Introduction to Web Application Design
Presentation transcript:

Firefox Addon development tutorial 谢烜

Mozilla Corporation3/15/2011 What we should learn Learn what extension are, what they can do, the staff they are made of Configure your development environment Make an extension Package and test it

Mozilla Corporation3/15/2011 Required Gears A Linux Mac or Windows machine A terminal application(Gnome Terminal, Terminal, Command Prompt) A text editor(Notpad++, TextEdit, Komodo Edit, Vim or Emacs) A zip archiver (zip or 7-zip) Basic knowledge of HTML CSS and JavaScript

Mozilla Corporation3/15/2011 What is an extension? A package of files that modify Firefox's appearance and/or behavior In the zip file archive format (but in.xpi file extension) Two manifesto file describe content Distribute, browse and search via AMO Install, manage uninstall via Add-ons window

Mozilla Corporation3/15/2011 What can they do? Add and remove interface elements (menu, button, etc.) Modify appearance of elements (color, border, icon, etc.) Listen and response to events (page loads, mouse clicks, etc.) Access modules and components (file manipulation,networking,data storage,etc.) Add their own modules and components and override the build-in ones

Mozilla Corporation3/15/2011 Content vs. Chrome Content is a webpage that Firefox load in browser tabs. Chrome is Firefox user interface (i.e. everything around the browser tabs, including other windows like preferences and add-ons)

Mozilla Corporation3/15/2011 Why use chrome? Chrome privilege are the ability to do anything that Firefox can do. Extensions are part of chrome and have chrome privilege!

Mozilla Corporation3/15/2011 Extension building blocks XUL and XHTML for structure, widgets CSS for appearance and style JavaScript for behavior DTDs and properties for localization JavaScript and C++ for modules/components

Mozilla Corporation3/15/2011 XUL XML Interface Language XML vocabulary for building interfaces Like HTML, but for application Tags like Different layout(box) model Much of Firefox’s interface is built with XUL You can mix XUL and XHTML

Mozilla Corporation3/15/2011 Develop environment Firefox profile (firefox -P) Developer preferences Developer extensions Extension dictionary

Mozilla Corporation3/15/2011 Profiles A hidden feature of Firefox Directory that store user’s data(preferences, bookmarks, saved passwords, etc.) Extensions are profile-specific Use develop profile to develop your add-on and default profile for normal use

Mozilla Corporation3/15/2011 How to use profile Use “–P” argument, on Windows platform, add this argument to shortcut, on Linux and Mac, use command line. Use two profiles at the same time, use “–no-remote” argument or add “MOZ- NO-REMOTE=1” to environment variable. Use “-console” to display console window.

Mozilla Corporation3/15/2011 Developer preferences Make it easier for developer Type “about:config” at url bar extensions.logging.enable(true): show logging error in Error Console javascript.opitions.showInConsole(true): show JavaScript error in Error Console browser.dom.window.dump.enable(true) :use “dump” function at dom context, and show information at console window

Mozilla Corporation3/15/2011 Developer Extension DOM Inspector Console² Firebug Chrome Bug Rainbow XPCOM Viewer SQLite Manager

Mozilla Corporation3/15/2011 The install manifest Tell Firefox about the extension(its name, versions, compatible Firefox versions, etc.) Written in RDF, an XML vocabulary. Must be at the top level of extension directory Must be called install.rdf

Mozilla Corporation3/15/2011 The chrome regestration Tell Firefox about the location of source code files and resource files. Also tell Firefox how they add themselves to Firefox Must be at the top level of extension directory Must be called chrome.manifest

Mozilla Corporation3/15/2011 Install your Extension Link file method for developer Create a text file inside the extensions/ sub directory of your develop profiles The name of the file must be the ID of your extension, no suffix! The content of the file must a single line specify the path of your extensions directory D:\xxie\helloworld /home/xxie/helloworld

Mozilla Corporation3/15/2011 Show How to write an addon Write a XUL Write a JavaScript Include css file Include DTD file Include property file

Mozilla Corporation3/15/2011 References n_development_environment n_development_environment US/developers US/developers t/Guide t/Guide