Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-27287

HTML Form Markup Breaks Edit Mode Cancel and Save Button Functionality in Google Chrome

    XMLWordPrintable

Details

    Description

      While in edit mode using Google Chrome, if a page contains a HTML macro with HTML form markup inside, clicking "Cancel" or "Save" will result in a blank screen. This is tested in Google Chrome (Google Chrome version 19 and 23 tested).

      Steps to Reproduce

      1. Create a page and enter this HTML form
        <form enctype="multipart/form-data" method="post" action="http://www.test.com/mail.php" accept-charset="UTF-8">
        	<div>
        		<input type="hidden" name="acctid" id="acctid" value="7ksurkrkzxyj5epi" />
        		<input type="hidden" name="formid" id="formid" value="1155349" />
        		<input type="hidden" name="required_vars" id="required_vars" value="name,email" />
        	</div>
        	<table cellspacing="5" cellpadding="5" border="0">
        		<tr>
        			<td valign="top">
        				<strong>Name:</strong>
        			</td>
        			<td valign="top">
        				<input type="text" name="name" id="name" size="40" value="" />
        				
        			</td>
        		</tr>
        		<tr>
        			<td valign="top">
        				<strong>Email Address:</strong>
        			</td>
        			<td valign="top">
        				<input type="text" name="email" id="email" size="40" value="" />
        				
        			</td>
        		</tr>
        		<tr>
        			<td colspan="2" align="center">
        				<input type="submit" value=" Submit Form " />
        			</td>
        		</tr>
        	</table>
        </form>
        
      2. Attempt to Save the page
        • Expected behaviour - the page saves and the form is visible
        • Actual behaviour - the browser redirects to 'about:blank'

      NB: The page is actually saved. You can go to the Dashboard and find the page, and the form is visible and correct

      Workaround

      1. Follow the steps above, then go to the Dashboard or the parent page after the blank page is displayed
      2. You will see the page is in the recent updates (or listed in the child pages of the parent page), and it works correctly

      Attachments

        Activity

          People

            Unassigned Unassigned
            527feab301ff Eddie Connatser
            Votes:
            9 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: