WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
7989
Win32: User Agent shouldn't be hardcoded in TransferJobWin
https://bugs.webkit.org/show_bug.cgi?id=7989
Summary
Win32: User Agent shouldn't be hardcoded in TransferJobWin
Justin Haygood
Reported
2006-03-25 18:32:56 PST
Since Frame will return a userAgent, TransferJobWin should use that instead of hardcoding Spinneret. Fairly trivial fix, requires changes to TransferJobWin and Spinneret though. Patches coming soon.
Attachments
WebCore part of fix...
(1.24 KB, patch)
2006-03-25 18:37 PST
,
Justin Haygood
eric
: review-
Details
Formatted Diff
Diff
Spinneret part of fix
(1.68 KB, patch)
2006-03-25 18:39 PST
,
Justin Haygood
eric
: review-
Details
Formatted Diff
Diff
Follows guidelines, adds copyright and changelog
(2.04 KB, patch)
2006-03-27 08:52 PST
,
Justin Haygood
darin
: review-
Details
Formatted Diff
Diff
Spinneret part of fix.. updated to follow guidelines
(2.12 KB, patch)
2006-03-27 09:01 PST
,
Justin Haygood
eric
: review-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Justin Haygood
Comment 1
2006-03-25 18:37:03 PST
Created
attachment 7302
[details]
WebCore part of fix... WebCore part of fix. Requires Spinneret part if you don't want Spinneret to crash.. coming soon
Justin Haygood
Comment 2
2006-03-25 18:39:34 PST
Created
attachment 7303
[details]
Spinneret part of fix Spinneret part of fix. Also contains a one liner fix to set the main frame of a page, which crashes Spinneret on alot of pages.
Eric Seidel (no email)
Comment 3
2006-03-26 02:57:00 PST
Comment on
attachment 7303
[details]
Spinneret part of fix This patch fails to follow style guidelines, has tabs, is missing a copyright header, and changelog. It also looks like it leaks a DocLoader on every request. Otherwise the code itself looks sane.
Eric Seidel (no email)
Comment 4
2006-03-26 03:01:52 PST
Comment on
attachment 7302
[details]
WebCore part of fix... Ah! So this is why maps.google doesn't work! This still has tabs, and strange spacing between lines. It's also missing your copyright and a changelog.
Justin Haygood
Comment 5
2006-03-27 08:52:22 PST
Created
attachment 7335
[details]
Follows guidelines, adds copyright and changelog
Justin Haygood
Comment 6
2006-03-27 09:01:10 PST
Created
attachment 7336
[details]
Spinneret part of fix.. updated to follow guidelines Still contains the crasher fix.
Eric Seidel (no email)
Comment 7
2006-03-27 11:04:12 PST
Comment on
attachment 7335
[details]
Follows guidelines, adds copyright and changelog Looks good. Still has tabs in changelog, but I'll fix those when I land. r=me.
Eric Seidel (no email)
Comment 8
2006-03-27 11:07:20 PST
Comment on
attachment 7336
[details]
Spinneret part of fix.. updated to follow guidelines This is the wrong place for this code. The WebView should be the one setting the main frame on the page. Also the Document owns a doc loader, you shouldn't create one in Frame like that. Also deleting the DocLoader right after calling start() will just cause things to crash.
Darin Adler
Comment 9
2006-03-29 05:05:52 PST
Comment on
attachment 7335
[details]
Follows guidelines, adds copyright and changelog This uses String::ascii, but this is what PlatformString.h says: #ifndef NDEBUG // For debugging only, leaks memory. const char *ascii() const; #endif So this won't even compile when NDEBUG is set. We need a solution that doesn't involve the ascii() function. A short term hack would be to use DeprecatedString's ascii() function. A better fix would be to add an appropriate conversion for String for this case; perhaps a way to convert to an ASCII string that doesn't leak memory or a way to convert to a Windows wchar_t* so we can use InternetOpen rather than InternetOpenA?
Eric Seidel (no email)
Comment 10
2006-03-29 13:15:32 PST
InternetOpenW is not implemented. We learned that the hard way when originally writing this code. so string.deprecatedString().ascii() is a fine option here.
Eric Seidel (no email)
Comment 11
2006-03-30 22:19:17 PST
I fixed this in a slightly different way in TOT.
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