Closed Bug 920261 Opened 12 years ago Closed 12 years ago

[email] 'mailto' links including linkified e-mail addresses broken in e-mail app by support of URL sharing activity from browser (bug 821519)

Categories

(Firefox OS Graveyard :: Gaia::E-Mail, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(blocking-b2g:koi+, b2g-v1.2 verified)

RESOLVED FIXED
1.3 Sprint 3 - 10/25
blocking-b2g koi+
Tracking Status
b2g-v1.2 --- verified

People

(Reporter: asuth, Assigned: gaye)

References

Details

(Keywords: regression)

Attachments

(1 file)

From https://bugzilla.mozilla.org/show_bug.cgi?id=821519#c21: === [bug 821519] broke mailto links, including those produced by the e-mail app's own linkification logic. The bit that does this in the patch: + if (dataType === 'url') { + data.body = url; + } else { Is wrong because we (and presumably the browser?) use window.open() to open hyperlinks, including mailto URL's that we create. popup_manager.js in the system app transforms the open call to an activity of the form: { name: 'view', data: { type: 'url', url: <theurl> } } We should probably only be going into that 'copy the URL case verbatim' logic if the activity type is 'share'. === We probably want the following tests: - Higher level compose-triggered-from-an-activity unit-tests that provide known activity input types and ensure that we setup the composer appropriately. (Right now mail_app_test.js only does low level mailto URI parsing.) - Integration test for displaying a message with e-mail addresses (text/plain and text/html) that results in linkification and verifies that clicking on the links triggers prompts and appropriate compose cards. - Integration test for clicking on a mailto link from the browser and that it causes an appropriate compose card in the e-mail app.
Keywords: regression
koi+ for regression
blocking-b2g: koi? → koi+
Assignee: nobody → gaye
Target Milestone: --- → 1.3 Sprint 3 - 10/25
Depends on: 929176
Depends on: 929224
No longer depends on: 929224
Attachment #821925 - Flags: review?(jrburke)
Comment on attachment 821925 [details] Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/12992 Left a comment about a suggestion for a better encapsulated test helper method, and with that change done r+ from me. With the tests in this changeset, and my previous changeset for bug 925174, there are now an integration test for each of the "view", "share" and "new" activity entry point types. Along with existing unit tests for query_uri, I think that gets a bare minimum test coverage. If you prefer to do more tests as :asuth suggested in bug description, mainly around a more complicated mailto: link with more email parts in it, and an email message that has a mailto link, both checking what ends up in the actual Compose card, I am all for that. I leave it to you though if you have other priorities that need your attention. Feel free to ping me again for review if you decide add more tests. For any email message composition setup, email's notification_click_test.js has a sendEmail function that could be helpful.
Attachment #821925 - Flags: review?(jrburke) → review+
landed on master 5387ea6411c669a262de0914f6a196055449c5b9
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
I was not able to uplift this bug to v1.2. If this bug has dependencies which are not marked in this bug, please comment on this bug. If this bug depends on patches that aren't approved for v1.2, we need to re-evaluate the approval. Otherwise, if this is just a merge conflict, you might be able to resolve it with: git checkout v1.2 git cherry-pick -x -m1 5387ea6411c669a262de0914f6a196055449c5b9 <RESOLVE MERGE CONFLICTS> git commit
Flags: needinfo?(gaye)
I went ahead and fixed the merge conflicts manually. Thanks ford-bot!
Flags: needinfo?(gaye)
For reference, 473b6570521fa04eecec83a27cd7c4bbe25d0555 is the commit on v1.2
Verified Fixed: Utilizing mailto links in browser invokes email app to compose message and returns afterwards. Environmental Variables Device: Buri v1.2 COM RIL Build ID: 20131107004003 Gecko: http://hg.mozilla.org/releases/mozilla-b2g26_v1_2/rev/26f1e160e696 Gaia: 590eb598aacf1e2136b2b6aca5c3124557a365ca Platform Version: 26.0 RIL Version: 01.01.00.019.281 Firmware Version: US_20131104
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: