Closed Bug 993321 Opened 11 years ago Closed 7 years ago

Calling WebActivity “share” doesn't show menu of the activities if application declares activity by itself

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: bluszcz, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 (Beta/Release)
Build ID: 20140314220517

Steps to reproduce:

I have declared activity share in app manifest (I want my application to work as handler for share activity, but I want also my application to be able delegate share to another application).

My activities looks like below:

 "activities": {
        "share": {
      "href": "./share-activity.html",
      "disposition": "inline",
      "filters": {
        "type": ["image/*","image/jpeg","image/png"]
      },
      "returnValue": false
    },
    "pick": {
      "href": "./pick-activity.html",
      "disposition": "inline",
      "filters": {
        "type": ["image/*","image/jpeg","image/png"]
      },
      "returnValue": true
    }
  },

Inside the application, I want to share image using delegation to another application.

$('#sharePicture').click(function() {
  var activity = new MozActivity({
    name: "share",
    data: {
      type: ["image/png", "image/jpg", "image/jpeg", "image/gif", "image/bmp"],
    }
  });
});




Actual results:

Content of share-activity.html has been displayed.


Expected results:

Menu of application providing handler for "share" activitiy.
I have updated example app here: 

https://github.com/bluszcz/webactivity-bug-993321
Firefox OS is not being worked on
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.