WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
45554
compositing/iframes/iframe-src-change.html test fails on Windows
https://bugs.webkit.org/show_bug.cgi?id=45554
Summary
compositing/iframes/iframe-src-change.html test fails on Windows
Simon Fraser (smfr)
Reported
2010-09-10 11:51:25 PDT
This test fails on Windows (when building with compositing). The reason is that the test sets the iframe source, and immediately dumps layers. On windows, it seems that resource loading is timer-based, so the iframe load doesn't happen until after the test completes. We can fix this with a setTimeout in the test.
Attachments
Patch
(1.78 KB, patch)
2010-09-10 11:55 PDT
,
Simon Fraser (smfr)
no flags
Details
Formatted Diff
Diff
Patch
(3.78 KB, patch)
2010-09-10 14:17 PDT
,
Simon Fraser (smfr)
aroben
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Adam Roben (:aroben)
Comment 1
2010-09-10 11:53:24 PDT
(In reply to
comment #0
)
> On windows, it seems that resource loading is timer-based, so the iframe load doesn't happen until after the test completes.
How does this work on Mac? Are we just getting lucky?
Simon Fraser (smfr)
Comment 2
2010-09-10 11:55:19 PDT
Created
attachment 67215
[details]
Patch
Simon Fraser (smfr)
Comment 3
2010-09-10 12:18:56 PDT
I see the "about:blank" load happening via WebKit.dll!WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader * loader=0x046959d8, WebCore::FrameLoadType type=FrameLoadTypeRedirectWithLockedBackForwardList, WTF::PassRefPtr<WebCore::FormState> prpFormState={...}) Line 1488 C++ WebKit.dll!WebCore::FrameLoader::loadWithNavigationAction(const WebCore::ResourceRequest & request={...}, const WebCore::NavigationAction & action={...}, bool lockHistory=false, WebCore::FrameLoadType type=FrameLoadTypeRedirectWithLockedBackForwardList, WTF::PassRefPtr<WebCore::FormState> formState={...}) Line 1411 C++ WebKit.dll!WebCore::FrameLoader::loadURL(const WebCore::KURL & newURL={...}, const WTF::String & referrer={...}, const WTF::String & frameName={...}, bool lockHistory=false, WebCore::FrameLoadType newLoadType=FrameLoadTypeRedirectWithLockedBackForwardList, WTF::PassRefPtr<WebCore::Event> event={...}, WTF::PassRefPtr<WebCore::FormState> prpFormState={...}) Line 1354 C++ WebKit.dll!WebCore::FrameLoader::loadFrameRequest(const WebCore::FrameLoadRequest & request={...}, bool lockHistory=false, bool lockBackForwardList=true, WTF::PassRefPtr<WebCore::Event> event={...}, WTF::PassRefPtr<WebCore::FormState> formState={...}, WebCore::ReferrerPolicy referrerPolicy=SendReferrer) Line 1293 C++ WebKit.dll!WebCore::FrameLoader::urlSelected(const WebCore::ResourceRequest & request={...}, const WTF::String & passedTarget={...}, WTF::PassRefPtr<WebCore::Event> triggeringEvent={...}, bool lockHistory=false, bool lockBackForwardList=true, bool userGesture=false, WebCore::ReferrerPolicy referrerPolicy=SendReferrer, WebCore::ShouldReplaceDocumentIfJavaScriptURL shouldReplaceDocumentIfJavaScriptURL=ReplaceDocumentIfJavaScriptURL) Line 304 C++ WebKit.dll!WebCore::FrameLoader::changeLocation(const WebCore::KURL & url={...}, const WTF::String & referrer={...}, bool lockHistory=false, bool lockBackForwardList=true, bool userGesture=false, bool refresh=false) Line 273 + 0x40 bytes C++
> WebKit.dll!WebCore::ScheduledURLNavigation::fire(WebCore::Frame * frame=0x046640e0) Line 98 + 0x43 bytes C++
WebKit.dll!WebCore::RedirectScheduler::timerFired(WebCore::Timer<WebCore::RedirectScheduler> * __formal=0x04664390) Line 360 + 0x20 bytes C++ WebKit.dll!WebCore::Timer<WebCore::RedirectScheduler>::fired() Line 98 + 0x23 bytes C++ WebKit.dll!WebCore::ThreadTimers::sharedTimerFiredInternal() Line 112 + 0xf bytes C++ This doesn't seem synchronous.
Adam Roben (:aroben)
Comment 4
2010-09-10 12:27:10 PDT
I guess about:blank only loads synchronously for new frames. I still wonder how this works on Mac.
Simon Fraser (smfr)
Comment 5
2010-09-10 12:38:09 PDT
Comment on
attachment 67215
[details]
Patch The test is wrong; I'll come up with a better one.
Simon Fraser (smfr)
Comment 6
2010-09-10 14:17:45 PDT
Created
attachment 67237
[details]
Patch
Adam Roben (:aroben)
Comment 7
2010-09-10 14:20:46 PDT
Comment on
attachment 67237
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=67237&action=prettypatch
> LayoutTests/compositing/iframes/iframe-src-change.html:52 > + results.innerText = "FAIL: should have initially had layers, and did not."
I would say "but did not" r=me
Simon Fraser (smfr)
Comment 8
2010-09-10 14:24:11 PDT
http://trac.webkit.org/changeset/67232
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug