Closed Bug 565767 Opened 15 years ago Closed 15 years ago

XHR doesn't return values from delegated methods

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zpao, Assigned: zpao)

Details

Attachments

(1 file)

For example, XMLHttpRequest.getResponseHeaders() returns a value, but using xhr.XMLHttpRequest.getResponseHeaders() returns undefined (since the original return value isn't also returned.
Oops, thanks for the report. Since you've assigned this to yourself, I assume you'd like to fix it?
Attached patch Patch v0.1Splinter Review
I did forget to attach it... blocked by bug 565767 because the test is depending on assertEqual distinguishing between null and undefined. I could do > assert(null !== undefined) but I'd rather do this "correctly". If it's taking too long to track down everything in bug 565767 then I'll do this the alternate way.
Attachment #445410 - Flags: review?(avarma)
Comment on attachment 445410 [details] [diff] [review] Patch v0.1 Sounds good. This patch looks fine, so feel free to land it once the blocker does.
Attachment #445410 - Flags: review?(avarma) → review+
I'm just going to land this with assert(a === null) since the discussion in bug 565765 is not resolving itself quick enough. If that gets fixed, it'll just have to include changing this assert as well.
No longer depends on: 565765
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: -- → 0.4
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
Flags: in-testsuite+
Product: Mozilla Labs → Add-on SDK
QA Contact: jetpack-sdk → general
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: