Skip to content
Permalink
Browse files
2010-10-23 Sheriff Bot <webkit.review.bot@gmail.com>
        Unreviewed, rolling out r70367.
        http://trac.webkit.org/changeset/70367
        https://bugs.webkit.org/show_bug.cgi?id=48176

        It made 8-10 tests crash on Qt bot (Requested by Ossy on
        #webkit).

        * fast/loader/decide-policy-for-mime-type-async-expected.txt: Removed.
        * fast/loader/decide-policy-for-mime-type-async.html: Removed.
        * platform/gtk/Skipped:
        * platform/mac-wk2/Skipped:
        * platform/qt-wk2/Skipped:
        * platform/qt/Skipped:
        * platform/win/Skipped:
2010-10-23  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r70367.
        http://trac.webkit.org/changeset/70367
        https://bugs.webkit.org/show_bug.cgi?id=48176

        It made 8-10 tests crash on Qt bot (Requested by Ossy on
        #webkit).

        * loader/MainResourceLoader.cpp:
        (WebCore::MainResourceLoader::MainResourceLoader):
        (WebCore::MainResourceLoader::continueAfterContentPolicy):
        (WebCore::MainResourceLoader::didReceiveResponse):
        (WebCore::MainResourceLoader::setDefersLoading):
        * loader/MainResourceLoader.h:
2010-10-23  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r70367.
        http://trac.webkit.org/changeset/70367
        https://bugs.webkit.org/show_bug.cgi?id=48176

        It made 8-10 tests crash on Qt bot (Requested by Ossy on
        #webkit).

        * DumpRenderTree/LayoutTestController.cpp:
        (setCustomPolicyDelegateCallback):
        * DumpRenderTree/LayoutTestController.h:
        * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
        (LayoutTestController::setCustomPolicyDelegate):
        * DumpRenderTree/mac/LayoutTestControllerMac.mm:
        (LayoutTestController::setCustomPolicyDelegate):
        * DumpRenderTree/mac/PolicyDelegate.h:
        * DumpRenderTree/mac/PolicyDelegate.mm:
        (-[PolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
        (-[PolicyDelegate setPermissive:]):
        (-[PolicyDelegate setControllerToNotifyDone:]):
        * DumpRenderTree/win/LayoutTestControllerWin.cpp:
        (LayoutTestController::setCustomPolicyDelegate):
        * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
        (LayoutTestController::setCustomPolicyDelegate):

Canonical link: https://commits.webkit.org/60922@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@70385 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
webkit-commit-queue committed Oct 23, 2010
1 parent 5fb9997 commit 40b8d7918e9c4eb7ab96fd8cc0906277a7bb12a6
Showing 20 changed files with 74 additions and 100 deletions.
@@ -1,3 +1,20 @@
2010-10-23 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r70367.
http://trac.webkit.org/changeset/70367
https://bugs.webkit.org/show_bug.cgi?id=48176

It made 8-10 tests crash on Qt bot (Requested by Ossy on
#webkit).

* fast/loader/decide-policy-for-mime-type-async-expected.txt: Removed.
* fast/loader/decide-policy-for-mime-type-async.html: Removed.
* platform/gtk/Skipped:
* platform/mac-wk2/Skipped:
* platform/qt-wk2/Skipped:
* platform/qt/Skipped:
* platform/win/Skipped:

2010-10-23 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r70381.

This file was deleted.

This file was deleted.

@@ -1147,7 +1147,6 @@ fast/forms/textfield-onchange-deletion.html
fast/history/history_reload.html
fast/history/window-open.html
fast/html/tab-order.html
fast/loader/decide-policy-for-mime-type-async.html
fast/loader/main-document-url-for-non-http-loads.html
fast/loader/onload-policy-ignore-for-frame.html
fast/loader/policy-delegate-action-hit-test-zoomed.html
@@ -1524,7 +1524,6 @@ fast/dom/Geolocation/timeout-zero.html

# WebKitTestRunner needs layoutTestController.setCustomPolicyDelegate
# <https://bugs.webkit.org/show_bug.cgi?id=42546>
fast/loader/decide-policy-for-mime-type-async.html
fast/loader/javascript-url-hierarchical-execution.html
fast/loader/onload-policy-ignore-for-frame.html
fast/loader/reload-policy-delegate.html
@@ -1472,7 +1472,6 @@ fast/dom/Geolocation/timeout-zero.html

# WebKitTestRunner needs layoutTestController.setCustomPolicyDelegate
# <https://bugs.webkit.org/show_bug.cgi?id=42546>
fast/loader/decide-policy-for-mime-type-async.html
fast/loader/javascript-url-hierarchical-execution.html
fast/loader/onload-policy-ignore-for-frame.html
fast/loader/reload-policy-delegate.html
@@ -100,7 +100,6 @@ accessibility
transforms/3d
compositing

fast/loader/decide-policy-for-mime-type-async.html
fast/loader/subframe-navigate-during-main-frame-load.html

# Hyphenation is not implemented yet.
@@ -1038,6 +1038,3 @@ fast/events/click-focus-control.html

# Requires WebP support.
fast/images/webp-image-decoding.html

# Needs ovelroad of setCustomPolicyDelegate
fast/loader/decide-policy-for-mime-type-async.html
@@ -1,3 +1,19 @@
2010-10-23 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r70367.
http://trac.webkit.org/changeset/70367
https://bugs.webkit.org/show_bug.cgi?id=48176

It made 8-10 tests crash on Qt bot (Requested by Ossy on
#webkit).

* loader/MainResourceLoader.cpp:
(WebCore::MainResourceLoader::MainResourceLoader):
(WebCore::MainResourceLoader::continueAfterContentPolicy):
(WebCore::MainResourceLoader::didReceiveResponse):
(WebCore::MainResourceLoader::setDefersLoading):
* loader/MainResourceLoader.h:

2010-10-22 Andy Estes <aestes@apple.com>

Reviewed by Adam Roben and Sam Weinig.
@@ -57,7 +57,6 @@ MainResourceLoader::MainResourceLoader(Frame* frame)
, m_dataLoadTimer(this, &MainResourceLoader::handleDataLoadNow)
, m_loadingMultipartContent(false)
, m_waitingForContentPolicy(false)
, m_deferLoadingCount(0)
{
}

@@ -232,10 +231,7 @@ void MainResourceLoader::continueAfterContentPolicy(PolicyAction contentPolicy,
{
KURL url = request().url();
const String& mimeType = r.mimeType();

// This is balanced by a call to setDefersLoading(true) in didReceiveResponse.
setDefersLoading(false);


switch (contentPolicy) {
case PolicyUse: {
// Prevent remote web archives from loading because they can claim to be from any domain and thus avoid cross-domain security checks (4120255).
@@ -377,10 +373,6 @@ void MainResourceLoader::didReceiveResponse(const ResourceResponse& r)
// reference to this object; one example of this is 3266216.
RefPtr<MainResourceLoader> protect(this);

// Defer loading while we're waiting for a response.
// This is balanced by a setDefersLoading(false) call in continueAfterContentPolicy.
setDefersLoading(true);

m_documentLoader->setResponse(r);

m_response = r;
@@ -603,16 +595,6 @@ bool MainResourceLoader::load(const ResourceRequest& r, const SubstituteData& su

void MainResourceLoader::setDefersLoading(bool defers)
{
if (defers) {
m_deferLoadingCount++;
if (m_deferLoadingCount > 1)
return;
} else {
ASSERT(m_deferLoadingCount);
m_deferLoadingCount--;
if (m_deferLoadingCount > 0)
return;
}
ResourceLoader::setDefersLoading(defers);

if (defers) {
@@ -108,7 +108,6 @@ namespace WebCore {
bool m_loadingMultipartContent;
bool m_waitingForContentPolicy;
double m_timeOfLastDataReceived;
unsigned m_deferLoadingCount;
};

}
@@ -1,3 +1,29 @@
2010-10-23 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r70367.
http://trac.webkit.org/changeset/70367
https://bugs.webkit.org/show_bug.cgi?id=48176

It made 8-10 tests crash on Qt bot (Requested by Ossy on
#webkit).

* DumpRenderTree/LayoutTestController.cpp:
(setCustomPolicyDelegateCallback):
* DumpRenderTree/LayoutTestController.h:
* DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
(LayoutTestController::setCustomPolicyDelegate):
* DumpRenderTree/mac/LayoutTestControllerMac.mm:
(LayoutTestController::setCustomPolicyDelegate):
* DumpRenderTree/mac/PolicyDelegate.h:
* DumpRenderTree/mac/PolicyDelegate.mm:
(-[PolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
(-[PolicyDelegate setPermissive:]):
(-[PolicyDelegate setControllerToNotifyDone:]):
* DumpRenderTree/win/LayoutTestControllerWin.cpp:
(LayoutTestController::setCustomPolicyDelegate):
* DumpRenderTree/wx/LayoutTestControllerWx.cpp:
(LayoutTestController::setCustomPolicyDelegate):

2010-10-22 Eric Seidel <eric@webkit.org>

Reviewed by Adam Barth.
@@ -971,12 +971,8 @@ static JSValueRef setCustomPolicyDelegateCallback(JSContextRef context, JSObject
if (argumentCount >= 2)
permissive = JSValueToBoolean(context, arguments[1]);

bool callIgnoreInDecidePolicyForMIMETypeAfterOneSecond = false;
if (argumentCount >= 3)
callIgnoreInDecidePolicyForMIMETypeAfterOneSecond = JSValueToBoolean(context, arguments[2]);

LayoutTestController* controller = static_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject));
controller->setCustomPolicyDelegate(JSValueToBoolean(context, arguments[0]), permissive, callIgnoreInDecidePolicyForMIMETypeAfterOneSecond);
controller->setCustomPolicyDelegate(JSValueToBoolean(context, arguments[0]), permissive);

return JSValueMakeUndefined(context);
}
@@ -84,7 +84,7 @@ class LayoutTestController : public RefCounted<LayoutTestController> {
void setApplicationCacheOriginQuota(unsigned long long quota);
void setAuthorAndUserStylesEnabled(bool);
void setCacheModel(int);
void setCustomPolicyDelegate(bool setDelegate, bool permissive, bool callIgnoreInDecidePolicyForMIMETypeAfterOneSecond);
void setCustomPolicyDelegate(bool setDelegate, bool permissive);
void setDatabaseQuota(unsigned long long quota);
void setDomainRelaxationForbiddenForURLScheme(bool forbidden, JSStringRef scheme);
void setIconDatabaseEnabled(bool iconDatabaseEnabled);
@@ -268,7 +268,7 @@ void LayoutTestController::setAlwaysAcceptCookies(bool alwaysAcceptCookies)
#endif
}

void LayoutTestController::setCustomPolicyDelegate(bool setDelegate, bool permissive, bool callIgnoreInDecidePolicyForMIMETypeAfterOneSecond)
void LayoutTestController::setCustomPolicyDelegate(bool setDelegate, bool permissive)
{
// FIXME: implement
}
@@ -319,10 +319,9 @@ - (NSInteger)tag
[[[mainFrame webView] preferences] setAuthorAndUserStylesEnabled:flag];
}

void LayoutTestController::setCustomPolicyDelegate(bool setDelegate, bool permissive, bool callIgnoreInDecidePolicyForMIMETypeAfterOneSecond)
void LayoutTestController::setCustomPolicyDelegate(bool setDelegate, bool permissive)
{
if (setDelegate) {
[policyDelegate setCallIgnoreInDecidePolicyForMIMETypeAfterOneSecond:callIgnoreInDecidePolicyForMIMETypeAfterOneSecond];
[policyDelegate setPermissive:permissive];
[[mainFrame webView] setPolicyDelegate:policyDelegate];
} else
@@ -31,13 +31,11 @@
class LayoutTestController;

@interface PolicyDelegate : NSObject {
BOOL _permissiveDelegate;
BOOL _callIgnoreInDecidePolicyForMIMETypeAfterOneSecond;
LayoutTestController* _controllerToNotifyDone;
BOOL permissiveDelegate;
LayoutTestController* controllerToNotifyDone;
}

- (void)setPermissive:(BOOL)permissive;
- (void)setCallIgnoreInDecidePolicyForMIMETypeAfterOneSecond:(BOOL)callIgnoreInDecidePolicyForMIMETypeAfterOneSecond;
- (void)setControllerToNotifyDone:(LayoutTestController*)controller;

@end
@@ -83,49 +83,31 @@ - (void)webView:(WebView *)webView decidePolicyForNavigationAction:(NSDictionary

printf("%s\n", [message UTF8String]);

if (_permissiveDelegate)
if (permissiveDelegate)
[listener use];
else
[listener ignore];

if (_controllerToNotifyDone) {
_controllerToNotifyDone->notifyDone();
_controllerToNotifyDone = 0;
if (controllerToNotifyDone) {
controllerToNotifyDone->notifyDone();
controllerToNotifyDone = 0;
}
}

- (void)webView:(WebView *)webView decidePolicyForMIMEType:(NSString *)type
request:(NSURLRequest *)request
frame:(WebFrame *)frame
decisionListener:(id<WebPolicyDecisionListener>)listener
{
if (!_callIgnoreInDecidePolicyForMIMETypeAfterOneSecond) {
[listener use];
return;
}

[(NSObject *)listener performSelector:@selector(ignore) withObject:nil afterDelay:1.0];
}

- (void)webView:(WebView *)webView unableToImplementPolicyWithError:(NSError *)error frame:(WebFrame *)frame
{
NSString *message = [NSString stringWithFormat:@"Policy delegate: unable to implement policy with error domain '%@', error code %d, in frame '%@'", [error domain], [error code], [frame name]];
printf("%s\n", [message UTF8String]);
}

- (void)setCallIgnoreInDecidePolicyForMIMETypeAfterOneSecond:(BOOL)callIgnoreInDecidePolicyForMIMETypeAfterOneSecond
{
_callIgnoreInDecidePolicyForMIMETypeAfterOneSecond = callIgnoreInDecidePolicyForMIMETypeAfterOneSecond;
}

- (void)setPermissive:(BOOL)permissive
{
_permissiveDelegate = permissive;
permissiveDelegate = permissive;
}

- (void)setControllerToNotifyDone:(LayoutTestController*)controller
{
_controllerToNotifyDone = controller;
controllerToNotifyDone = controller;
}

@end
@@ -368,7 +368,7 @@ void LayoutTestController::setAuthorAndUserStylesEnabled(bool flag)
prefsPrivate->setAuthorAndUserStylesEnabled(flag);
}

void LayoutTestController::setCustomPolicyDelegate(bool setDelegate, bool permissive , bool callIgnoreInDecidePolicyForMIMETypeAfterOneSecond)
void LayoutTestController::setCustomPolicyDelegate(bool setDelegate, bool permissive)
{
COMPtr<IWebView> webView;
if (FAILED(frame->webView(&webView)))
@@ -107,7 +107,7 @@ void LayoutTestController::setAlwaysAcceptCookies(bool alwaysAcceptCookies)
// FIXME: Implement this (and restore the default value before running each test in DumpRenderTree.cpp).
}

void LayoutTestController::setCustomPolicyDelegate(bool, bool, bool)
void LayoutTestController::setCustomPolicyDelegate(bool, bool)
{
// FIXME: implement
}

0 comments on commit 40b8d79

Please sign in to comment.