RESOLVED FIXED 118347
Update blocked/missing plug-in UI
https://bugs.webkit.org/show_bug.cgi?id=118347
Summary Update blocked/missing plug-in UI
Antoine Quint
Reported 2013-07-03 02:57:56 PDT
We should display a more specific message when a plug-in is missing or blocked such that it's more obvious to the user what this message means and what the user can do to fix the situation.
Attachments
Patch (44.25 KB, patch)
2013-07-04 08:23 PDT, Antoine Quint
no flags
Patch (43.89 KB, patch)
2013-07-04 08:28 PDT, Antoine Quint
no flags
Patch (44.29 KB, patch)
2013-07-04 15:28 PDT, Antoine Quint
webkit-ews: commit-queue-
patch (67.44 KB, patch)
2013-07-12 20:19 PDT, Tim Horton
buildbot: commit-queue-
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2 (580.04 KB, application/zip)
2013-07-13 09:13 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion (1.01 MB, application/zip)
2013-07-14 07:04 PDT, Build Bot
no flags
patch (68.11 KB, patch)
2013-07-15 16:41 PDT, Tim Horton
no flags
patch (68.15 KB, patch)
2013-07-15 16:43 PDT, Tim Horton
no flags
patch (68.29 KB, patch)
2013-07-15 16:55 PDT, Tim Horton
sam: review+
patch (73.71 KB, patch)
2013-07-15 18:42 PDT, Tim Horton
no flags
new patch with no shadow dom (33.45 KB, patch)
2013-07-17 17:32 PDT, Tim Horton
sam: review+
Antoine Quint
Comment 1 2013-07-03 02:58:08 PDT
Antoine Quint
Comment 2 2013-07-03 03:02:50 PDT
Antoine Quint
Comment 3 2013-07-04 08:23:33 PDT
Antoine Quint
Comment 4 2013-07-04 08:28:23 PDT
Joseph Pecoraro
Comment 5 2013-07-04 13:03:15 PDT
Comment on attachment 206093 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=206093&action=review > Source/WebCore/css/unavailablePlugIns.css:28 > + * Such elements, when the plug-in is blocked or issing, will contain a Typo: "issing" => "missing"
Antoine Quint
Comment 6 2013-07-04 14:54:38 PDT
(In reply to comment #5) > (From update of attachment 206093 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=206093&action=review > > > Source/WebCore/css/unavailablePlugIns.css:28 > > + * Such elements, when the plug-in is blocked or issing, will contain a > > Typo: "issing" => "missing" Good catch! It looks like my tree is too stale for EWS bots to apply the patch too, so I'll try to send an updated patch soon.
Antoine Quint
Comment 7 2013-07-04 15:28:00 PDT
Early Warning System Bot
Comment 8 2013-07-04 15:37:06 PDT
EFL EWS Bot
Comment 9 2013-07-04 15:39:17 PDT
EFL EWS Bot
Comment 10 2013-07-04 15:43:27 PDT
Build Bot
Comment 11 2013-07-04 16:01:24 PDT
Build Bot
Comment 12 2013-07-04 16:17:58 PDT
kov's GTK+ EWS bot
Comment 13 2013-07-05 01:30:28 PDT
Tim Horton
Comment 14 2013-07-12 20:19:37 PDT
WebKit Commit Bot
Comment 15 2013-07-12 20:23:21 PDT
Attachment 206587 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/CMakeLists.txt', u'Source/WebCore/ChangeLog', u'Source/WebCore/DerivedSources.make', u'Source/WebCore/DerivedSources.pri', u'Source/WebCore/GNUmakefile.am', u'Source/WebCore/WebCore.exp.in', u'Source/WebCore/WebCore.vcxproj/WebCore.vcxproj', u'Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters', u'Source/WebCore/WebCore.xcodeproj/project.pbxproj', u'Source/WebCore/css/CSSDefaultStyleSheets.cpp', u'Source/WebCore/css/unavailablePlugIns.css', u'Source/WebCore/dom/EventListener.h', u'Source/WebCore/html/HTMLPlugInElement.cpp', u'Source/WebCore/html/HTMLPlugInImageElement.cpp', u'Source/WebCore/html/HTMLPlugInImageElement.h', u'Source/WebCore/page/ChromeClient.h', u'Source/WebCore/rendering/RenderEmbeddedObject.cpp', u'Source/WebCore/rendering/RenderEmbeddedObject.h', u'Source/WebCore/rendering/RenderWidget.h', u'Source/WebKit/mac/ChangeLog', u'Source/WebKit/mac/WebCoreSupport/WebChromeClient.h', u'Source/WebKit/mac/WebCoreSupport/WebChromeClient.mm', u'Source/WebKit2/ChangeLog', u'Source/WebKit2/Platform/CoreIPC/HandleMessage.h', u'Source/WebKit2/UIProcess/API/C/WKPage.h', u'Source/WebKit2/UIProcess/WebLoaderClient.cpp', u'Source/WebKit2/UIProcess/WebLoaderClient.h', u'Source/WebKit2/UIProcess/WebPageProxy.cpp', u'Source/WebKit2/UIProcess/WebPageProxy.h', u'Source/WebKit2/UIProcess/WebPageProxy.messages.in', u'Source/WebKit2/WebProcess/Plugins/PluginProcessConnection.cpp', u'Source/WebKit2/WebProcess/Plugins/PluginView.cpp', u'Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp', u'Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.h', u'Source/WebKit2/WebProcess/WebPage/WebPage.cpp']" exit_code: 1 Source/WebKit2/WebProcess/Plugins/PluginProcessConnection.cpp:130: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/RenderEmbeddedObject.h:75: The parameter name "description" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 2 in 34 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 16 2013-07-12 20:59:14 PDT
Comment on attachment 206587 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=206587&action=review > Source/WebCore/css/unavailablePlugIns.css:65 > + cursor: hand; These don't take effect (or even show up in the inspector) for some reason.
Build Bot
Comment 17 2013-07-13 09:13:05 PDT
Comment on attachment 206587 [details] patch Attachment 206587 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/1062465 New failing tests: css2.1/20110323/replaced-intrinsic-004.htm http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame.html http/tests/misc/acid2-pixel.html http/tests/misc/acid2.html css2.1/20110323/replaced-intrinsic-002.htm fast/css/counters/counter-traverse-table-cell.html http/tests/security/contentSecurityPolicy/object-src-url-blocked.html http/tests/inspector/inspect-element.html accessibility/plugin.html css2.1/20110323/replaced-intrinsic-005.htm http/tests/security/xss-DENIED-object-element.html http/tests/misc/object-embedding-svg-delayed-size-negotiation-2.htm css2.1/20110323/replaced-intrinsic-ratio-001.htm plugins/embed-inside-object.html editing/pasteboard/copy-image-with-alt-text.html fast/css/acid2.html fast/dom/HTMLObjectElement/beforeload-set-text-crash.xhtml editing/pasteboard/paste-noplugin.html fullscreen/anonymous-block-merge-crash.html fast/overflow/overflow-height-float-not-removed-crash3.html css2.1/20110323/replaced-intrinsic-001.htm http/tests/misc/acid3.html fast/forms/input-field-text-truncated.html css2.1/20110323/replaced-intrinsic-003.htm
Build Bot
Comment 18 2013-07-13 09:13:08 PDT
Created attachment 206608 [details] Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-14 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.3
Build Bot
Comment 19 2013-07-14 07:04:05 PDT
Comment on attachment 206587 [details] patch Attachment 206587 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/1066542 New failing tests: http/tests/security/contentSecurityPolicy/object-src-url-allowed.html css2.1/20110323/replaced-intrinsic-004.htm http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame.html http/tests/misc/acid2-pixel.html http/tests/misc/acid2.html css2.1/20110323/replaced-intrinsic-002.htm fast/css/counters/counter-traverse-table-cell.html http/tests/security/contentSecurityPolicy/object-src-url-blocked.html http/tests/inspector/inspect-element.html accessibility/plugin.html css2.1/20110323/replaced-intrinsic-005.htm http/tests/security/xss-DENIED-object-element.html http/tests/misc/object-embedding-svg-delayed-size-negotiation-2.htm css2.1/20110323/replaced-intrinsic-ratio-001.htm fast/css/acid2-pixel.html plugins/embed-inside-object.html fast/css/acid2.html http/tests/security/contentSecurityPolicy/object-src-none-allowed.html fast/dom/HTMLObjectElement/beforeload-set-text-crash.xhtml editing/pasteboard/paste-noplugin.html css2.1/20110323/replaced-intrinsic-003.htm fast/overflow/overflow-height-float-not-removed-crash3.html css2.1/20110323/replaced-intrinsic-001.htm platform/mac/editing/deleting/deletionUI-single-instance.html http/tests/misc/acid3.html fullscreen/full-screen-iframe-with-max-width-height.html fast/loader/javascript-url-in-object.html fast/forms/input-field-text-truncated.html
Build Bot
Comment 20 2013-07-14 07:04:10 PDT
Created attachment 206633 [details] Archive of layout-test-results from webkit-ews-07 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-07 Port: mac-mountainlion Platform: Mac OS X 10.8.3
Tim Horton
Comment 21 2013-07-15 13:11:46 PDT
OK, the failing layout tests have structures like this (this one from css2.1/20110323/replaced-intrinsic-003.htm): RenderView 0x7fd6a0d36778 #document 0x7fd6a4803a00 RenderBlock 0x7fd6a0c39e18 HTML 0x7fd6a0c05fe0 RenderBody 0x7fd6a0c44818 BODY 0x7fd6a0c3faa0 RenderBlock 0x7fd6a0c47828 DIV 0x7fd6a0c44da0 RenderBlock 0x7fd6a0c4a808 P 0x7fd6a0c47410 RenderEmbeddedObject 0x7fd6a0c4f378 OBJECT 0x7fd6a0c4a8f0 * RenderText 0x7fd6a0c4ae28 #text 0x7fd6a0e47980 " FAIL (SVG not supported) " The layout and paint stuff the patch adds to REO assumes the child is a RenderBox, which is silly.
Tim Horton
Comment 22 2013-07-15 16:41:55 PDT
Tim Horton
Comment 23 2013-07-15 16:43:34 PDT
WebKit Commit Bot
Comment 24 2013-07-15 16:47:56 PDT
Attachment 206703 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/CMakeLists.txt', u'Source/WebCore/ChangeLog', u'Source/WebCore/DerivedSources.make', u'Source/WebCore/DerivedSources.pri', u'Source/WebCore/GNUmakefile.am', u'Source/WebCore/WebCore.exp.in', u'Source/WebCore/WebCore.vcxproj/WebCore.vcxproj', u'Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters', u'Source/WebCore/WebCore.xcodeproj/project.pbxproj', u'Source/WebCore/css/CSSDefaultStyleSheets.cpp', u'Source/WebCore/css/unavailablePlugIns.css', u'Source/WebCore/dom/EventListener.h', u'Source/WebCore/html/HTMLPlugInElement.cpp', u'Source/WebCore/html/HTMLPlugInImageElement.cpp', u'Source/WebCore/page/ChromeClient.h', u'Source/WebCore/rendering/RenderEmbeddedObject.cpp', u'Source/WebCore/rendering/RenderEmbeddedObject.h', u'Source/WebCore/rendering/RenderWidget.h', u'Source/WebKit/mac/ChangeLog', u'Source/WebKit/mac/WebCoreSupport/WebChromeClient.h', u'Source/WebKit/mac/WebCoreSupport/WebChromeClient.mm', u'Source/WebKit2/ChangeLog', u'Source/WebKit2/Platform/CoreIPC/HandleMessage.h', u'Source/WebKit2/UIProcess/API/C/WKPage.h', u'Source/WebKit2/UIProcess/WebLoaderClient.cpp', u'Source/WebKit2/UIProcess/WebLoaderClient.h', u'Source/WebKit2/UIProcess/WebPageProxy.cpp', u'Source/WebKit2/UIProcess/WebPageProxy.h', u'Source/WebKit2/UIProcess/WebPageProxy.messages.in', u'Source/WebKit2/WebProcess/Plugins/PluginProcessConnection.cpp', u'Source/WebKit2/WebProcess/Plugins/PluginView.cpp', u'Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp', u'Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.h', u'Source/WebKit2/WebProcess/WebPage/WebPage.cpp']" exit_code: 1 Source/WebKit2/WebProcess/Plugins/PluginProcessConnection.cpp:130: One line control clauses should not use braces. [whitespace/braces] [4] Source/WebCore/rendering/RenderEmbeddedObject.h:75: The parameter name "description" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 2 in 33 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 25 2013-07-15 16:55:20 PDT
Sam Weinig
Comment 26 2013-07-15 18:02:24 PDT
Comment on attachment 206704 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=206704&action=review > Source/WebCore/ChangeLog:8 > + Patch by Anders Carlsson, Antoine Quint, Sam Weinig, and myself. Did I contribute to this? I remember this not. > Source/WebCore/rendering/RenderEmbeddedObject.cpp:299 > + LayoutRect rect; > + if (m_indicator && m_indicator->renderer()) > + rect = m_indicator->renderer()->absoluteBoundingBoxRect(); > + else > + rect = LayoutRect(); > + Is the else statement necessary?
Tim Horton
Comment 27 2013-07-15 18:06:59 PDT
(In reply to comment #26) > (From update of attachment 206704 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=206704&action=review > > > Source/WebCore/ChangeLog:8 > > + Patch by Anders Carlsson, Antoine Quint, Sam Weinig, and myself. > > Did I contribute to this? I remember this not. Some! The out-args WK2 stuff :) > > Source/WebCore/rendering/RenderEmbeddedObject.cpp:299 > > + LayoutRect rect; > > + if (m_indicator && m_indicator->renderer()) > > + rect = m_indicator->renderer()->absoluteBoundingBoxRect(); > > + else > > + rect = LayoutRect(); > > + > > Is the else statement necessary? Ha. No. Thanks, Sam!
Tim Horton
Comment 28 2013-07-15 18:42:28 PDT
Created attachment 206716 [details] patch Sam reminded me that we need to not change the signature of pluginLoadPolicy, so deprecate it and add a new one.
Tim Horton
Comment 29 2013-07-15 18:49:18 PDT
Comment on attachment 206716 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=206716&action=review > Tools/WebKitTestRunner/TestController.cpp:488 > + 0, // pluginLoadPolicy_deprecatedForUseWithV1 Typo, should say v2.
Tim Horton
Comment 30 2013-07-15 21:01:35 PDT
Comment on attachment 206716 [details] patch Landed with Sam's prior review (hopefully that's OK). http://trac.webkit.org/changeset/152701
WebKit Commit Bot
Comment 31 2013-07-17 16:23:14 PDT
Re-opened since this is blocked by bug 118821
Tim Horton
Comment 32 2013-07-17 17:32:32 PDT
Created attachment 206933 [details] new patch with no shadow dom
Tim Horton
Comment 33 2013-07-17 17:42:55 PDT
Note You need to log in before you can comment on or make changes to this bug.