mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Fixed image loading problem in composer. Bug 312056. Reviewed and checkin permission by gagan
This commit is contained in:
parent
3858b3fd8f
commit
6f585babe9
@ -1936,10 +1936,12 @@ NET_GetURL (URL_Struct *URL_s,
|
||||
|
||||
/* Hack to allow special URL for new Editor doc
|
||||
* and still allow filtering of non-editable doc types
|
||||
* All editor GetUrl calls should use FO_CACHE_AND_EDIT
|
||||
* except in the case of the new document URL
|
||||
* All editor GetUrl calls should use FO_EDIT or FO_CACHE_AND_EDIT
|
||||
* When we know we have a new document, we change it to FO_CACHE_AND_PRESENT
|
||||
* so it can load the "about:" url without complaining
|
||||
*/
|
||||
if( EDT_IS_EDITOR(window_id) && window_id->is_new_document ) {
|
||||
if( EDT_IS_EDITOR(window_id) && window_id->is_new_document &&
|
||||
(output_format == FO_EDIT || output_format == FO_CACHE_AND_EDIT) ){
|
||||
output_format = FO_CACHE_AND_PRESENT;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user