mozilla/addon-sdk — pull request #361 by ochameau (2012-03-06 17:35:26+00:00)
Title: Bug 696552: Implements panel.contentURL modification support.

I took patch from https://bugzilla.mozilla.org/show_bug.cgi?id=696552
and put it as PR into to merge it.

I've only adressed review comment by moving the listener registration before init call.
There wasn't particular reason in registering `this.on('propertyChange', this._onChange.bind(this));` after `_init`. Sometimes these `init/contructor` methods fail and throw exception. I just tried to avoid registering such listener before init, in order to avoid registering it in case of error.
But I went through code, and I haven't seen any case where we throw an exception in this particular case.