--===============9189976007028856977== Content-Type: multipart/alternative; boundary="===============8391629591881244181==" --===============8391629591881244181== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > On May 30, 2014, 1:15 p.m., David Edmundson wrote: > > klipper/urlgrabber.cpp, line 140 > > > > > > we lose fast mode here. > > I think this means if I drag a 100Gb file from the internet onto klipper it will start downloading it. > > > > Not sure how problematic this is. > > Martin Gräßlin wrote: > given the documentation that should be fine, see http://qt-project.org/doc/qt-5/qmimedatabase.html#mimeTypeForUrl > > my interpretation of the documentation is that it won't download Yes, it won't download, it will just return a default mimetype, which is actually pretty bad... > On May 30, 2014, 1:15 p.m., David Edmundson wrote: > > klipper/urlgrabber.cpp, line 147 > > > > > > this comment doesn't seem true, we explicitly check if the mimetype is html > > Martin Gräßlin wrote: > I read this comment different: if clipboard contents starts with http, enforce the mimetype to be html, because that's what's being done in the if Yep, it's just ensuring it's html if it's http. - Aleix ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/118423/#review58802 ----------------------------------------------------------- On May 30, 2014, 1:38 p.m., Martin Gräßlin wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://git.reviewboard.kde.org/r/118423/ > ----------------------------------------------------------- > > (Updated May 30, 2014, 1:38 p.m.) > > > Review request for Plasma. > > > Repository: plasma-workspace > > > Description > ------- > > [klipper] Port KMimeType to QMimeType > > > Diffs > ----- > > klipper/urlgrabber.cpp 4eccb7065ae2932cc548c902ab3a8c50e4972444 > > Diff: https://git.reviewboard.kde.org/r/118423/diff/ > > > Testing > ------- > > > Thanks, > > Martin Gräßlin > > --===============8391629591881244181== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit
This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/118423/

On May 30th, 2014, 1:15 p.m. UTC, David Edmundson wrote:

klipper/urlgrabber.cpp (Diff revision 1)
void URLGrabber::matchingMimeActions(const QString& clipData)
139
                                                    false,
139
    QMimeType mimetype = db.mimeTypeForUrl(url);
we lose fast mode here.
I think this means if I drag a 100Gb file from the internet onto klipper it will start downloading it.

Not sure how problematic this is.

On May 30th, 2014, 1:23 p.m. UTC, Martin Gräßlin wrote:

given the documentation that should be fine, see http://qt-project.org/doc/qt-5/qmimedatabase.html#mimeTypeForUrl

my interpretation of the documentation is that it won't download
Yes, it won't download, it will just return a default mimetype, which is actually pretty bad...

On May 30th, 2014, 1:15 p.m. UTC, David Edmundson wrote:

klipper/urlgrabber.cpp (Diff revision 1)
void URLGrabber::matchingMimeActions(const QString& clipData)
146
    // first: if clipboard contents starts with http, let's assume it's "text/html".
145
    // first: if clipboard contents starts with http, let's assume it's "text/html".
this comment doesn't seem true, we explicitly check if the mimetype is html

On May 30th, 2014, 1:35 p.m. UTC, Martin Gräßlin wrote:

I read this comment different: if clipboard contents starts with http, enforce the mimetype to be html, because that's what's being done in the if
Yep, it's just ensuring it's html if it's http.

- Aleix


On May 30th, 2014, 1:38 p.m. UTC, Martin Gräßlin wrote:

Review request for Plasma.
By Martin Gräßlin.

Updated May 30, 2014, 1:38 p.m.

Repository: plasma-workspace

Description

[klipper] Port KMimeType to QMimeType

Diffs

  • klipper/urlgrabber.cpp (4eccb7065ae2932cc548c902ab3a8c50e4972444)

View Diff

--===============8391629591881244181==-- --===============9189976007028856977== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============9189976007028856977==--