[Webkit-unassigned] [Bug 43797] New: Navigating to a plug-in document fails if plug-ins are disabled
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 10 10:23:28 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=43797
Summary: Navigating to a plug-in document fails if plug-ins are
disabled
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Plug-ins
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: bauerb at chromium.org
CC: eric at webkit.org, fishd at chromium.org
Steps to reproduce:
* Disable plug-ins
* Go to a URL that's displayed by a plug-in (e.g. a PDF or SWF file)
In Safari, you get the rather unhelpful error message 'Safari can’t open <URL> because Mac OS X doesn’t recognize Internet addresses starting with “http:”.', Chrome just silently fails (or crashes if the navigation happens to open a new tab, but that's another bug).
The navigation fails because Page::pluginData returns 0 if plug-ins are disabled, so the checks to see if a plug-in can handle the document fail. I think we should simply return the pluginData object here. There are additional checks later on to make sure the plug-in is not actually loaded, and I added checks in DOMPluginArray and DOMMimeTypeArray to return empty lists there.
For Chrome, the result is that you get an empty page and the plug-in blocked indicator, which is more helpful than silently failing. I couldn't check the result for Safari.
This is also a bit more consistent with the behavior in SubFrameLoader::shouldUsePlugin, which returns true if plug-ins are disabled, so that we try to load the plug-in and fail, notifying the FrameLoaderClient about it.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list