Bug 57572

Summary: WebKitTestRunner needs layoutTestController.setAllowFileAccessFromFileURLs
Product: WebKit Reporter: Chang Shu <cshu>
Component: Tools / TestsAssignee: Chang Shu <cshu>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, darin, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Bug Depends on: 59638    
Bug Blocks:    
Attachments:
Description Flags
fix patch
darin: review+, cshu: commit-queue-
fix patch 2: follow review
none
fix patch: code refactory none

Description Chang Shu 2011-03-31 13:40:10 PDT
Fails at least:
fast/frames/location-change-no-file-access.html
fast/xmlhttprequest/xmlhttprequest-no-file-access.html
Comment 1 Chang Shu 2011-04-04 08:00:03 PDT
Created attachment 88059 [details]
fix patch
Comment 2 Darin Adler 2011-04-04 08:34:13 PDT
Comment on attachment 88059 [details]
fix patch

View in context: https://bugs.webkit.org/attachment.cgi?id=88059&action=review

> LayoutTests/platform/mac-wk2/Skipped:1443
> -# WebKitTestRunner needs layoutTestController.setAllowFileAccessFromFileURLs
> -# <https://bugs.webkit.org/show_bug.cgi?id=57572>
> -fast/frames/location-change-no-file-access.html
>  fast/xmlhttprequest/xmlhttprequest-no-file-access.html
> -
>  fast/xmlhttprequest/xmlhttprequest-nonexistent-file.html

This orphans these still-skipped tests in a section with no label. It’s better to move them to an appropriately-labeled section.
Comment 3 Chang Shu 2011-04-04 08:43:20 PDT
Created attachment 88064 [details]
fix patch 2: follow review
Comment 4 Chang Shu 2011-04-04 09:06:03 PDT
Darin, can you r+ again? thx
Comment 5 WebKit Commit Bot 2011-04-04 10:18:40 PDT
The commit-queue encountered the following flaky tests while processing attachment 88059 [details]:

http/tests/websocket/tests/multiple-connections.html bug 53825 (author: abarth@webkit.org)
The commit-queue is continuing to process your patch.
Comment 6 WebKit Commit Bot 2011-04-04 11:27:24 PDT
The commit-queue encountered the following flaky tests while processing attachment 88064 [details]:

java/lc3/JSBoolean/boolean-002-n.html bug 57769 (author: ap@webkit.org)
The commit-queue is continuing to process your patch.
Comment 7 WebKit Commit Bot 2011-04-04 11:29:38 PDT
Comment on attachment 88064 [details]
fix patch 2: follow review

Clearing flags on attachment: 88064

Committed r82848: <http://trac.webkit.org/changeset/82848>
Comment 8 WebKit Commit Bot 2011-04-04 11:29:44 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Chang Shu 2011-04-20 10:44:14 PDT
It is not necessary to update Webkit2 preference while calling LayoutTestController.setAllowFileAccessFromFileURLs and LayoutTestController.setAllowUniveralAccessFromFileURLs. I am going to upload a patch for code refactory.
Comment 10 Chang Shu 2011-04-20 10:49:26 PDT
Created attachment 90360 [details]
fix patch: code refactory
Comment 11 Laszlo Gombos 2011-04-26 16:04:35 PDT
Comment on attachment 90360 [details]
fix patch: code refactory

lgtm, r+.
Comment 12 WebKit Commit Bot 2011-04-26 16:43:14 PDT
Comment on attachment 90360 [details]
fix patch: code refactory

Clearing flags on attachment: 90360

Committed r84980: <http://trac.webkit.org/changeset/84980>
Comment 13 WebKit Commit Bot 2011-04-26 16:43:20 PDT
All reviewed patches have been landed.  Closing bug.