Bug 161353 - Yahoo mail doesn't fill in the 'to:', 'cc:', 'bcc:' fields on the 'reply' page.
Summary: Yahoo mail doesn't fill in the 'to:', 'cc:', 'bcc:' fields on the 'reply' page.
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-28 02:00 UTC by alex14641
Modified: 2023-01-12 05:16 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alex14641 2008-04-28 02:00:39 UTC
Version:            (using KDE 3.5.9)
Installed from:    Compiled From Sources
Compiler:          gcc 3.4.6 
OS:                Linux

When you reply to an e-mail in Yahoo, the To: field is no longer filled in with the name of
the user who sent the e-mail. Yahoo changed their page layout about 2 weeks ago and are using
some new javascript that KJS doesn't handle correctly. I've created a test case to demonstrate
the issue.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>Test</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	</head>
	<body>
		<script type='text/javascript'>
			function adjustFieldHeight(D){
				var C=document.getElementById(D);
				var B=parseInt(C.style.height);
				C.style.overflow = "hidden";
				if(C.scrollHeight>B){
					if(C.scrollHeight<102){
						C.style.height=C.scrollHeight+"px";
						C.style.overflow = "hidden";
					}
					else{
						C.style.height="102px";
						C.style.overflow = "scroll";
					}
				}
			}

			function repTxtField(C){
				var A=document.getElementById(C);
				var B=A.parentNode;
				var D=document.createElement("textarea");
				B.removeChild(A);
				D.name=A.name;
				D.id=A.id;
				D.className=A.className;
				D.setAttribute("autocomplete","off");
				D.tabIndex=A.tabIndex;
				// When 'defaultValue' is set, the 'To:' field is populated.
//				D.defaultValue = A.value;
				D.value=A.value;
				D.style.height="19px";
				B.appendChild(D);
				adjustFieldHeight(C);
				return false;
			}
		</script>
		<form>
			<div id="toid" class="row">
				<label for="to" id="compose_to">
					<b id="lb_to">To:</b>
				</label>
				<input type="text" class="txtfield" name="to" id="to" autocomplete="off"
					   tabindex="1" value="&quot;Test User&quot; &lt;testuser@gmail.com&gt;">
			</div>
			<input type='submit' value='replace' onclick='return repTxtField("to");'>
			<input type='submit' value='submit'>
		</form>
	</body>
</html>


This is the javascript code that Yahoo is now using. Viewing this in Firefox and clicking the 
'replace' button changes the text field to a text area and populates it the data from the
original text field; in KDE, the text area is blank. If you comment out the line starting with
'D.value' and uncomment the line above it, KDE populates the text area.

Currently this can be worked around by changing the User Agent to 'Opera' for the mail.yahoo.com
domain.
Comment 1 Maksim Orlovich 2009-05-05 17:00:05 UTC
Works now, but the attachment button looks funny.
Comment 2 Andrew Crouthamel 2018-11-02 22:58:53 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-11-16 05:37:50 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 4 Justin Zobel 2022-12-13 02:53:20 UTC
Thank you for reporting this issue in KDE software. As it was reported on an older version, can we please ask you to see if you cazn reproduce the issue with a more recent software version?  
  
If you can confirm this issue still exists in a recent version, please change the version field and the status to "REPORTED" when replying. Thank you!
Comment 5 Bug Janitor Service 2022-12-28 05:23:25 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2023-01-12 05:16:25 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!