Bug 120763 - [GTK][WK2] Update ContextMenu Download API
Summary: [GTK][WK2] Update ContextMenu Download API
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brian Holt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-05 02:10 PDT by Brian Holt
Modified: 2013-09-09 06:04 PDT (History)
5 users (show)

See Also:


Attachments
Patch (5.86 KB, patch)
2013-09-05 09:24 PDT, Brian Holt
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Holt 2013-09-05 02:10:00 PDT
From https://bugs.webkit.org/show_bug.cgi?id=120459.

The new tags to download media to disk should be merged into the 2.2 release so the docs need updating.

Also, a new unit test for the audio tag should be added.
Comment 1 Brian Holt 2013-09-05 09:24:30 PDT
Created attachment 210627 [details]
Patch
Comment 2 Brian Holt 2013-09-05 09:27:07 PDT
Comment on attachment 210627 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=210627&action=review

> Source/WebKit2/UIProcess/API/gtk/WebKitContextMenuActions.h:75
> + * @WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_VIDEO_TO_DISK: Download video to disk. Since 2.2

Unfortunately this doesn't result in the enum appearing under the Since 2.2 section of the docs...  Perhaps there is a different way, or it doesn't matter?

> Source/WebKit2/UIProcess/API/gtk/tests/TestContextMenu.cpp:324
> +            iter = checkCurrentItemIsStockActionAndGetNext(iter, WEBKIT_CONTEXT_MENU_ACTION_ENTER_VIDEO_FULLSCREEN, Visible);

This surprised me, but without it the test will not pass!
Comment 3 WebKit Commit Bot 2013-09-05 09:27:39 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment 4 WebKit Commit Bot 2013-09-09 06:04:27 PDT
Comment on attachment 210627 [details]
Patch

Clearing flags on attachment: 210627

Committed r155345: <http://trac.webkit.org/changeset/155345>
Comment 5 WebKit Commit Bot 2013-09-09 06:04:32 PDT
All reviewed patches have been landed.  Closing bug.