[Webkit-unassigned] [Bug 36721] New: Use Chromium's plugins/get-url-with-blank-target.html for all platforms
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Mar 28 06:08:34 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=36721
Summary: Use Chromium's plugins/get-url-with-blank-target.html
for all platforms
Product: WebKit
Version: 528+ (Nightly build)
Platform: Other
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: robert at webkit.org
plugins/get-url-with-blank-target.html is currently skipped by all platforms
except Mac. Chromium introduced a new version of test that works for Qt and
possibly other platforms.
The Mac result expects an NP_ERROR_GENERIC whereas Chromium/Qt expect
NP_NO_ERROR, which looking at PluginView.cpp is how it should be:
NPError PluginView::load(const FrameLoadRequest& frameLoadRequest, bool
sendNotification, void* notifyData)
{
ASSERT(frameLoadRequest.resourceRequest().httpMethod() == "GET" ||
frameLoadRequest.resourceRequest().httpMethod() == "POST");
KURL url = frameLoadRequest.resourceRequest().url();
if (url.isEmpty())
return NPERR_INVALID_URL;
// Don't allow requests to be made when the document loader is stopping all
loaders.
if (m_parentFrame->loader()->documentLoader()->isStopping())
return NPERR_GENERIC_ERROR;
const String& targetFrameName = frameLoadRequest.frameName();
String jsString = scriptStringIfJavaScriptURL(url);
if (!jsString.isNull()) {
// Return NPERR_GENERIC_ERROR if JS is disabled. This is what Mozilla
does.
if
(!m_parentFrame->script()->canExecuteScripts(NotAboutToExecuteScript))
return NPERR_GENERIC_ERROR;
// For security reasons, only allow JS requests to be made on the frame
that contains the plug-in.
if (!targetFrameName.isNull() &&
m_parentFrame->tree()->find(targetFrameName) != m_parentFrame)
return NPERR_INVALID_PARAM;
} else if (!SecurityOrigin::canLoad(url, String(),
m_parentFrame->document()))
return NPERR_GENERIC_ERROR;
PluginRequest* request = new PluginRequest(frameLoadRequest,
sendNotification, notifyData, arePopupsAllowed());
scheduleRequest(request);
return NPERR_NO_ERROR;
}
--
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