Closed Bug 577712 Opened 14 years ago Closed 14 years ago

Tutorial example (visiting Mozilla website on click) doesn't work

Categories

(Add-on SDK Graveyard :: General, defect)

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 577622

People

(Reporter: t, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; ro; rv:1.9.2.3) Gecko/20100403 Fedora/3.6.3-4.fc13 Firefox/3.6.3
Build Identifier: Jetpack 0.5; Mozilla/5.0 (X11; U; Linux x86_64; ro; rv:1.9.2.3) Gecko/20100403 Fedora/3.6.3-4.fc13 Firefox/3.6.3

This example doesn't work:

var widgets = require("widget");

  widgets.add(widgets.Widget({
    label: "Visit The Mozilla Website",
	image: "http://www.mozilla.org/favicon.ico",
	onClick: function(event) {
      require("tabs").open(require("url").URL("http://www.mozilla.org"));
    }}));

instead, it should be:

require("tabs").open("http://www.mozilla.org");

Reproducible: Always
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
The Add-on SDK is no longer a Mozilla Labs experiment and has become a big enough project to warrant its own Bugzilla product, so the "Add-on SDK" product has been created for it, and I am moving its bugs to that product.

To filter bugmail related to this change, filter on the word "looptid".
Component: Jetpack SDK → General
Product: Mozilla Labs → Add-on SDK
QA Contact: jetpack-sdk → general
You need to log in before you can comment on or make changes to this bug.