Closed Bug 655632 Opened 14 years ago Closed 14 years ago

link to docs from onMessage deprecation message

Categories

(Add-on SDK Graveyard :: General, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: myk, Unassigned)

Details

Attachments

(1 file)

It would be handy for the `onMessage` deprecation message to include a link to the docs on `self.on`, i.e. something like: warning: The global `onMessage` function in content scripts is deprecated in favor of the `self.on()` function. Replace `onMessage = function (data){}` definitions with calls to `self.on('message', function (data){})`. For more info on `self.on`, see <https://jetpack.mozillalabs.com/sdk/1.0b5/docs/dev-guide/addon-development/web-content.html>. (Ideally, the link would use the "latest" symlink to get the latest version of the page, but bug 645731 prevents us from doing that.)
Priority: -- → P3
Target Milestone: --- → 1.0
(automatic reprioritization of 1.0 bugs)
Priority: P3 → P2
Target Milestone: 1.0 → 1.1
https://github.com/mozilla/addon-sdk/pull/225 The code involved is actually in the SDK, not the documentation. Adding a pull request that contains Myk's proposed change (though it uses the AMO domain, and uses "latest").
Component: Documentation → General
QA Contact: documentation → general
Re-prioritizing all 1.1-targeted feature requests to 1.2.
Target Milestone: 1.1 → 1.2
(Pushing all open bugs to the --- milestone for the new triage system)
Target Milestone: 1.2 → ---
This apparently never got closed. Rectifying.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: