Bug 34702

Summary: [Qt] Make possible Qt DRT dump frame load callbacks
Product: WebKit Reporter: Diego Gonzalez <diegohcg>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eric, kenneth, tonikitoo
Priority: P2 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Bug Depends on: 34898    
Bug Blocks: 34839    
Attachments:
Description Flags
Active dump frame loader callbacks
none
Proposed patch none

Description Diego Gonzalez 2010-02-08 04:47:47 PST
Implement dumpFrameLoadCallbacks in LayoutTestController

LayoutTests:
http/tests/security/mixedContent
Comment 1 Diego Gonzalez 2010-02-08 04:54:34 PST
The main point of this bugs is to find the exactly place to enable the dump frame loader callbacks. I'm doing some tests and getting some differences with
the expected results.
I'm investigating how to sync the Qt dumpFrameLoadCallbacks() with the expected results and evaluating the possibility to make specifics results for Qt port.
Comment 2 Diego Gonzalez 2010-02-10 06:14:24 PST
Created attachment 48497 [details]
Active dump frame loader callbacks
Comment 3 Diego Gonzalez 2010-02-10 12:56:54 PST
Activating the dumpFrameLoadCallbacks the following LayoutTest now pass:

http/tests/security/mixedContent/data-url-script-in-iframe.html
http/tests/security/mixedContent/empty-url-plugin-in-frame.html
http/tests/security/mixedContent/insecure-css-in-iframe.html
http/tests/security/mixedContent/insecure-iframe-in-iframe.html
http/tests/security/mixedContent/insecure-image-in-iframe.html
http/tests/security/mixedContent/insecure-plugin-in-iframe.html
http/tests/security/mixedContent/insecure-script-in-iframe.html
http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe.html
http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe.html
Comment 4 Diego Gonzalez 2010-02-10 13:06:59 PST
The fallowing tests are still failing:

http/tests/security/mixedContent/about-blank-iframe-in-main-frame.html
http/tests/security/mixedContent/data-url-iframe-in-main-frame.html
http/tests/security/mixedContent/insecure-css-in-main-frame.html
http/tests/security/mixedContent/insecure-iframe-in-main-frame.html
http/tests/security/mixedContent/insecure-image-in-main-frame.html
http/tests/security/mixedContent/redirect-http-to-https-iframe-in-main-frame.html
http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame.html

Needs to evaluate the expected files are correct for Qt or there
is a sync problem to get the results as expected. There is a pattern in the results
of failed tests.

the tests:
http/tests/security/mixedContent/insecure-css-in-main-frame.html
http/tests/security/mixedContent/insecure-iframe-in-main-frame.html

have the added two more lines as expected:
+main frame - didFailProvisionalLoadWithError
+main frame - didStartProvisionalLoadForFrame

the tests:
http/tests/security/mixedContent/about-blank-iframe-in-main-frame.html
http/tests/security/mixedContent/data-url-iframe-in-main-frame.html
http/tests/security/mixedContent/insecure-image-in-main-frame.html
http/tests/security/mixedContent/redirect-http-to-https-iframe-in-main-frame.html
http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame.html

also have the lines:
+main frame - didFailProvisionalLoadWithError
+main frame - didStartProvisionalLoadForFrame

but is missing the:
-main frame - didFinishLoadForFrame

The Qt FrameLoaderClient should be investigated more to get results difference
reason.
Comment 5 Diego Gonzalez 2010-02-11 06:25:39 PST
(In reply to comment #4)
> The fallowing tests are still failing:
> 
> http/tests/security/mixedContent/about-blank-iframe-in-main-frame.html
> http/tests/security/mixedContent/data-url-iframe-in-main-frame.html
> http/tests/security/mixedContent/insecure-css-in-main-frame.html
> http/tests/security/mixedContent/insecure-iframe-in-main-frame.html
> http/tests/security/mixedContent/insecure-image-in-main-frame.html
> http/tests/security/mixedContent/redirect-http-to-https-iframe-in-main-frame.html
> http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame.html
> 
> Needs to evaluate the expected files are correct for Qt or there
> is a sync problem to get the results as expected. There is a pattern in the
> results
> of failed tests.
> 
> the tests:
> http/tests/security/mixedContent/insecure-css-in-main-frame.html
> http/tests/security/mixedContent/insecure-iframe-in-main-frame.html
> 
> have the added two more lines as expected:
> +main frame - didFailProvisionalLoadWithError
> +main frame - didStartProvisionalLoadForFrame
> 
> the tests:
> http/tests/security/mixedContent/about-blank-iframe-in-main-frame.html
> http/tests/security/mixedContent/data-url-iframe-in-main-frame.html
> http/tests/security/mixedContent/insecure-image-in-main-frame.html
> http/tests/security/mixedContent/redirect-http-to-https-iframe-in-main-frame.html
> http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame.html
> 
> also have the lines:
> +main frame - didFailProvisionalLoadWithError
> +main frame - didStartProvisionalLoadForFrame
> 
> but is missing the:
> -main frame - didFinishLoadForFrame
> 
> The Qt FrameLoaderClient should be investigated more to get results difference
> reason.

created another bug to investigate this resolts:
https://bugs.webkit.org/show_bug.cgi?id=34839
Comment 6 Diego Gonzalez 2010-02-11 06:29:52 PST
Created attachment 48559 [details]
Proposed patch
Comment 7 Kenneth Rohde Christiansen 2010-02-11 06:33:10 PST
Comment on attachment 48559 [details]
Proposed patch

You rock Diego!
Comment 8 WebKit Commit Bot 2010-02-12 00:10:48 PST
Comment on attachment 48559 [details]
Proposed patch

Rejecting patch 48559 from commit-queue.

Failed to run "['WebKitTools/Scripts/run-webkit-tests', '--no-launch-safari', '--exit-after-n-failures=1', '--quiet']" exit_code: 1
Running build-dumprendertree
Running tests from /Users/eseidel/Projects/CommitQueue/LayoutTests
Testing 12150 test cases.
websocket/tests/bufferedAmount-after-close.html -> crashed

Exiting early after 1 failures. 12118 tests run.
519.04s total testing time

12117 test cases (99%) succeeded
1 test case (<1%) crashed
7 test cases (<1%) had stderr output

Full output: http://webkit-commit-queue.appspot.com/results/259586
Comment 9 Antonio Gomes 2010-02-12 05:55:18 PST
Comment on attachment 48559 [details]
Proposed patch

hum, the failing reason below seems very unrelated to this patch. lets hope it was a bot failure and give it one more change.


*****************
Failed to run "['WebKitTools/Scripts/run-webkit-tests', '--no-launch-safari',
'--exit-after-n-failures=1', '--quiet']" exit_code: 1
Running build-dumprendertree
Running tests from /Users/eseidel/Projects/CommitQueue/LayoutTests
Testing 12150 test cases.
websocket/tests/bufferedAmount-after-close.html -> crashed

Exiting early after 1 failures. 12118 tests run.
519.04s total testing time

12117 test cases (99%) succeeded
1 test case (<1%) crashed
7 test cases (<1%) had stderr output
Comment 10 WebKit Commit Bot 2010-02-12 06:22:37 PST
Comment on attachment 48559 [details]
Proposed patch

Clearing flags on attachment: 48559

Committed r54723: <http://trac.webkit.org/changeset/54723>
Comment 11 WebKit Commit Bot 2010-02-12 06:22:49 PST
All reviewed patches have been landed.  Closing bug.
Comment 12 Eric Seidel (no email) 2010-02-17 12:26:17 PST
Crash was bug 34898.