<table><tr><td style="">broulik created this revision.<br />broulik added reviewers: Plasma, fvogt, davidedmundson, nicolasfella, apol.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />broulik requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23151">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This implements Web Share API Level 1 [1] through Purpose and also adds a generic "Share..." context menu entry.<br />
It can be tested on [2].</p>
<p>[1] <a href="https://w3c.github.io/web-share/" class="remarkup-link" target="_blank" rel="noreferrer">https://w3c.github.io/web-share/</a><br />
[2] <a href="https://w3c.github.io/web-share/demos/share.html" class="remarkup-link" target="_blank" rel="noreferrer">https://w3c.github.io/web-share/demos/share.html</a></p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Successfully shared a tweet via E-Mail on Twitter's mobile site (unfortunately the Desktop site doesn't make use of it)</li>
<li class="remarkup-list-item">Sending to KDE Connect works</li>
<li class="remarkup-list-item">Verified that calling it without user interaction isn't possible</li>
</ul>
<p><a href="https://phabricator.kde.org/F7246859" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F7246859: Screenshot_20190814_131126.png</a><br />
<a href="https://phabricator.kde.org/F7246860" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F7246860: Screenshot_20190814_131148.png</a><br />
I couldn't figure out how to pass both a title and contents simultaneously to it since it seems to abuse the "urls" field for all kinds of random purposes like email *body*.</p>
<p>The browser context menu also gets a "Share..." entry where you can share whatever page, link, image, video, etc you're pointing at. Unfortunately, when both this and KDE Connect Devices are present, you now get a "Plasma Browser Integration" sub menu with both entries in it.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R856 Plasma Browser Integration</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23151">https://phabricator.kde.org/D23151</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
extension/_locales/en/messages.json<br />
extension/constants.js<br />
extension/content-script.js<br />
extension/extension-purpose.js<br />
extension/manifest.json<br />
extension/options.html<br />
host/CMakeLists.txt<br />
host/main.cpp<br />
host/purposeplugin.cpp<br />
host/purposeplugin.h</div></div></div><br /><div><strong>To: </strong>broulik, Plasma, fvogt, davidedmundson, nicolasfella, apol<br /><strong>Cc: </strong>plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>