mozilla/addon-sdk — pull request #404 by ochameau (2012-04-17 16:06:18+00:00)
Title: Bug 708190: Apply page-mod on existing documents.

Here is random comments that can be usefull for review:
- I've added a new `apply` attribute that works like `allow` attribute of symbiont. I've done that as we are planning to add similar flags in order to attach content script only on top level document (i.e. ignore iframes)
- page-mod contains a small utility method that allows to list all opened tabs. I tried using tab-browser but it ended up being messy and most likely very badly efficient. As I don't know we want to document and maintain this method I've kept it as a page-mod private method. I've used yield to match window-utils behavior but I can use regular iteration too.

I'm waiting for feedback about the public API before writing docs.