Bug 121269 Allow displaying HTML source for debugging
With the new AJAX-based viewer, one can no longer see the HTML source of the page. This is extremely inconvenient for debugging engine problems, because there is not an easy way to see the HTML source code. This might fall into the category an enhancement, but since it significantly reduces other people's work efficiency, I listed its severity as a "major".
viewer/org.eclipse.birt.report.viewer/src/org/eclipse/birt/report/viewer/utilities/WebViewer.java
/**
	 * Get web viewer base url.
	 * 
	 * @return base web viewer application url
	 */
	private static String getBaseURL( )
	{
		return "http://" + WebappAccessor.getHost( ) + ":" 
			+ WebappAccessor.getPort( )	+ "/viewer/"; 
	}
	
	/**
	 * Create web viewer url to run the report.
	 * 
	 * @param servletName servlet name to viewer report
	 * @param report report file name 
	 * @param format report format
	 * @return valid web viewer url
	 */
	private static String createURL( String servletName, String report, String format )
	{
		String encodedReportName = null;
		String encodedDocumentName = null;
		
		try
		{
			encodedReportName = URLEncoder.encode( report, "utf-8" ); 
		}
		catch ( UnsupportedEncodingException e )
		{