Upgrade to Pro — share decks privately, control downloads, hide ads and more …

15-437 Browser Apps

ThierrySans
November 19, 2013

15-437 Browser Apps

ThierrySans

November 19, 2013
Tweet

More Decks by ThierrySans

Other Decks in Education

Transcript

  1. The limit of Javascript inside a webpage • No cross-domain

    scripts (same origin policy) • No access to iframe • No access to other tabs • No access to specific features of the browser • No access to the file system (except user file uploads) • No interaction with the rest of the OS
  2. Browser’s Add-ons • Have a javascript code that will work

    anytime on every page • Control all the open tabs • Modify the browser appearance and behavior • Communicate with the operating system
  3. The Manifest { "manifest_version": 2, "name": "One-click Kittens", "description": "This

    extension demonstrates a browser action with kittens.", "version": "1.0", "permissions": [ "https://secure.flickr.com/" ], "browser_action": { "default_icon": "icon.png", "default_popup": "popup.html" } } what the app can do chrome/manifest.json app icon page displayed when clicked source from http://developer.chrome.com/extensions/examples/tutorials/getstarted/manifest.json
  4. What can you do with an extension ➡ Chrome API


    http://developer.chrome.com/extensions/api_index.html
 ➡ Samples
 https://developer.chrome.com/extensions/samples