Closed Bug 1057555 Opened 10 years ago Closed 9 years ago

(shumway) Implement loadMovieNum() AVM1 API

Categories

(Firefox Graveyard :: Shumway, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mwobensmith, Assigned: yury)

References

Details

Attachments

(1 file)

The following APIs will be needed, most likely, to allow SWFs to load other SWFs:

AVM1:
loadMovie (instance)
loadMovie (_root)
loadMovieNum (0)
loadMovieNum (int)
loadMovieNum (window)

AVM2:
Loader.load (URLRequest)
Loader.loadBytes (byteArray)

Other APIs/mechanisms exist but may or may not be needed to achieve our M3 goal:
loadMovie/loadMovieNum with optional 3rd parameter for data
Runtime shared library (RSL)
HTML-formatted text field
External JS API methods LoadMovie/LoadMovieNum
Yes, we need these for M3.
Blocks: shumway-m3
OS: Mac OS X → All
Hardware: x86 → All
Attached file swf_load.zip
Media for above basic APIs.
AVM2's Loader.load now seems to fully work. I fixed an issue with the order of events in pull request #1618[1] and added a reftest so it (hopefully) doesn't regress again.

Loader.loadBytes is blocked on [Embed] not working for bytearrays, meaning I cannot write a good test. I'll dig into that next.


[1]: https://github.com/mozilla/shumway/pull/1618
As of PR #1646[1], Loader.loadBytes is also fully implemented. On to AVM1 APIs!

[1]: https://github.com/mozilla/shumway/pull/1646
Assignee: nobody → till
Status: NEW → ASSIGNED
Priority: -- → P1
Priority: P1 → P3
Yury, do we have the AVM1 APIs fully implemented now? If so, please close. Otherwise, we should implement them for m4.
Blocks: shumway-m4
No longer blocks: shumway-m3
Flags: needinfo?(ydelendik)
Not all functions are implemented properly -- we don't support or fully implement level loading functions (loadMovieNum).
Flags: needinfo?(ydelendik)
Summary: (shumway) Enable SWF loading APIs to make ads work → (shumway) Implement loadMovieNum() AVM1 API
loadMovieNum is implemented in https://github.com/mozilla/shumway/pull/2356. For now, closing this bug since it's too broad to catch nuances in the functions/APIs above implementations -- we need to file new bugs with specific examples/test cases.
Assignee: till → ydelendik
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: