Closed Bug 393401 Opened 19 years ago Closed 16 years ago

allow cross-site XMLHttpRequest for tinderbox JSON output

Categories

(Webtools Graveyard :: Tinderbox, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ted, Assigned: rhelmer)

References

Details

Attachments

(1 file, 2 obsolete files)

bug 389508 implemented cross-site XMLHttpRequest on trunk, we should allow this for the tinderbox JSON output, which would mean that people could build their own waterfall displays on any random webpage. I believe all we have to send is: Content-Access-Control: allow <*> per http://www.w3.org/TR/access-control/#content-access-control Patch is attached, I haven't tested it since I don't really want to setup a tinderbox server.
Attachment #277896 - Flags: review?(bear)
Assignee: morgamic → ted.mielczarek
(In reply to comment #0) > I haven't tested it since I don't really want to setup a > tinderbox server. You know you want to set one up yourself! :)
Attachment #277896 - Flags: review?(bear) → review+
Checking in showbuilds.pl; /cvsroot/mozilla/webtools/tinderbox/showbuilds.pl,v <-- showbuilds.pl new revision: 1.25; previous revision: 1.24 done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
It would appear the spec has changed since this was fixed. The new header should be: Access-Control-Allow-Origin: * (I think, from looking at the spec. Didn't test.)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch Patch v.2 (obsolete) — Splinter Review
Updates the header the original patch added, to match the current XS-XHR spec. Untested, but obvious enough.
Attachment #358771 - Flags: review?(bear)
Comment on attachment 358771 [details] [diff] [review] Patch v.2 >+ print "Access-Control-Allow-Origin: *\n\n"; "*", no? Also, this needs adding to INSTALL, too (it's currently in tinderbox's vhost but not documented anywhere).
Attachment #358771 - Flags: review?(bear) → review-
(In reply to comment #5) > "*", no? No. > Also, this needs adding to INSTALL, too (it's currently in tinderbox's vhost > but not documented anywhere). I'm only fixing the original patch. I'm not going to document Tinderbox.
Assignee: ted.mielczarek → dolske
Comment on attachment 358771 [details] [diff] [review] Patch v.2 Why wasn't this landed? Cross-site XHR isn't working and we need it for bug 586123. What is the documentation issue?
Blocks: 586123
Set Access-Control-Allow-Origin for both json and json2.
Assignee: dolske → robert
Attachment #277896 - Attachment is obsolete: true
Attachment #358771 - Attachment is obsolete: true
Attachment #465701 - Flags: review?(bear)
Comment on attachment 465701 [details] [diff] [review] set Access-Control-Allow-Origin for json and json2 The example given in the INSTALL document should be updated to reflect this change
Attachment #465701 - Flags: review?(bear) → review-
Comment on attachment 465701 [details] [diff] [review] set Access-Control-Allow-Origin for json and json2 bah - I need to get my glasses fixed ;) The INSTALL doc already has it listed I just can't read
Attachment #465701 - Flags: review- → review+
Checking in showbuilds.pl; /cvsroot/mozilla/webtools/tinderbox/showbuilds.pl,v <-- showbuilds.pl new revision: 1.43; previous revision: 1.42 done
Status: REOPENED → RESOLVED
Closed: 19 years ago16 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: