Bug 19349

Summary: Can't change body background-color in onunload event
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
Test case none

David Kilzer (:ddkilzer)
Reported 2008-06-01 08:42:00 PDT
* SUMMARY Changing the body's background-color in an onunload event doesn't work. * STEPS TO REPRODUCE 1. Launch Safari/WebKit. 2. Open attached test case. 3. Click link. * EXPECTED RESULTS Body background color should turn green before loading the next page. * ACTUAL RESULTS Body background color does not change before loading the next page. * REGRESSION Not a regression. Reproduces with Safari 2.0.4 with original WebKit. * NOTES Works on Firefox 2.0.0.x (although the "document.body.offsetTop;" relayout trick is required; removing that makes the test case not work on Firefox).
Attachments
Test case (502 bytes, text/html)
2008-06-01 08:42 PDT, David Kilzer (:ddkilzer)
no flags
David Kilzer (:ddkilzer)
Comment 1 2008-06-01 08:42:49 PDT
Created attachment 21455 [details] Test case
Note You need to log in before you can comment on or make changes to this bug.