Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1311

Issues with osapi and caja in firefox-3.6

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Javascript
    • Labels:
      None
    • Environment:
      Firefox 3.6

      Description

      When using osapi and caja in firefox, you will see RPC requests containing an empty post body. The response of the request is:

      {"message":"badRequest: Invalid batch - No Content-Type specified. One of application/json, text/x-json, application/javascript, application/x-javascript, text/javascript, text/ecmascript, application/json-rpc, application/jsonrequest, multipart/form-data is required","code":400}

      Same gadget will render fine in Chrome.

      Sample gadget:
      <?xml version="1.0" encoding="UTF-8"?>
      <Module>
      <ModulePrefs title="osapi">
      <Require feature="caja"/>
      <Require feature="osapi"/>
      </ModulePrefs>
      <Content type="html">
      <![CDATA[
      <script type="text/javascript">
      function render(data) {
      }

      gadgets.util.registerOnLoadHandler(function()

      { osapi.people.getViewer().execute(render); }

      );
      </script>
      ]]>
      </Content>
      </Module>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chirag Chirag Shah
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: