Bug 19349 - Can't change body background-color in onunload event
Summary: Can't change body background-color in onunload event
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-01 08:42 PDT by David Kilzer (:ddkilzer)
Modified: 2008-06-01 08:42 PDT (History)
0 users

See Also:


Attachments
Test case (502 bytes, text/html)
2008-06-01 08:42 PDT, David Kilzer (:ddkilzer)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 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).
Comment 1 David Kilzer (:ddkilzer) 2008-06-01 08:42:49 PDT
Created attachment 21455 [details]
Test case