Closed Bug 502570 Opened 15 years ago Closed 15 years ago

Shell DomainObject::getClass() does not search entire domain chain

Categories

(Tamarin Graveyard :: Tools, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED
flash10.1

People

(Reporter: daumling, Assigned: lhansen)

References

Details

Attachments

(1 file)

Above method uses the domain found in Shell's CodeContext, and ignores the domain chain created by the DomainObject itself.
Attachment #386961 - Flags: superreview?(stejohns)
Attachment #386961 - Flags: review?(lhansen)
I'll have to do some poking in the Flash codebase to ensure this change is compatible there.
OK, it appears that DomainClass.cpp is not used by Flash or AIR, only avmshell, so no risk of breakage there.
Attachment #386961 - Flags: review?(lhansen) → review?(edwsmith)
Comment on attachment 386961 [details] [diff] [review]
Fix that uses the DOmainObject's local DomainEnv

I'm not competent; forwarding to Edwin.
Blocks: 490622
Comment on attachment 386961 [details] [diff] [review]
Fix that uses the DOmainObject's local DomainEnv

the old code was using the caller's domain to begin the search, but i agree that's not right.  getClass() is an instance method and should look in that domain's table.

Domain.currentDomain() is already available for getting the caller's domain.

please add some comments to this effect.

I concur that this is shell-only code.
Attachment #386961 - Flags: review?(edwsmith) → review+
If this is approved and ready to go we should land it.  sr open to stejohns.
Priority: -- → P3
Target Milestone: --- → flash10.1
Comment on attachment 386961 [details] [diff] [review]
Fix that uses the DOmainObject's local DomainEnv

land that sucker.
Attachment #386961 - Flags: superreview?(stejohns) → superreview+
Assignee: daumling → lhansen
redux changeset:   2729:31beadd17dba
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: