Closed Bug 960503 Opened 10 years ago Closed 9 years ago

Example of creating a frame from frame/utils doc doesn't work

Categories

(Developer Documentation Graveyard :: Add-ons, defect, P5)

All
Other
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bruant.d, Assigned: sheppy)

References

()

Details

(Whiteboard: c=Addons u=mozdev p=0)

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

I tried the following steps:
1) cfx init
2) copy/paste the second example in main.js
3) cfx xpi
4) cfx run (Aurora 28 as binary)

As expected, a small window with "top" opens.

Actual behavior:
nothing happens

Expected behavior:
alert popping
I think the problem is that, for reasons I don't understand, alert() isn't supported in these scripts. I tried it with console.log and it works OK, so I've updated the example.

I don't think this API will work at all in multiprocess Firefox, so it's not a good idea to start using it.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.