nickbaum/simple-window-saver — pull request #24 by timoreimann (2012-11-28 20:52:57+00:00)
Title: Manifest version 2

Here's the upgrade to manifest version 2. I've ran several tests (saving windows, closing and reopening saved windows, deleting/undoing saved windows) which looked all good to me.

I laid out the commit history such that one could easily grasp the needed changes. Basically, upgrading to manifest version 2 required two blocks:

* Updating to the new manifest syntax (easy)
* complying with with Content Security Policy (harder)

The latter point asked for separating content (HTML) and logic (Javascript) scripts. Specifically, this meant to replace any inline event registrations by proper calls to addEventListener.