X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

Caret not shown for designmode iframe which is empty

Posted

I am running into the problem described in https://bugzilla.mozilla.org/show_bug.cgi?id=308736 and can reproduce the problem using Firefox 19.0 for the two examples provided in the bug posting. The bug however is marked "Fixed" in a very old version of Firefox.

This is a case where we have an iframe and it is setup to be in designmode to act as a html editor. The editor starts off with no content (i.e. the <body> element contains no children). When the user clicks inside the iframe no caret appears. If the user types even one character the caret will then appear as expected. This however confuses users since after the initial click in the iframe they should be provided some sort of feedback to let them know that they can start typing.

Chosen solution

I've opened a bug and the Mozilla developers have confirmed that this problem is a regression in Firefox 15 and later releases.

Original bugs: https://bugzilla.mozilla.org/show_bug.cgi?id=308736 – Caret is invisible when entering an empty designmode field https://bugzilla.mozilla.org/show_bug.cgi?id=395965 – Caret drawn vertically offset in designMode IFrame

Posting of regression in Firefox 15: https://bugzilla.mozilla.org/show_bug.cgi?id=846943 - Caret is invisible when entering an empty designmode field - regression

Read this answer in context 0

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.6 r602
  • Next Generation Java Plug-in 10.15.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Google Update
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.01
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • 5.1.10411.0
  • ActiveTouch General Plugin Container Version 105
  • Genesys Meeting Center Installer Module
  • Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
  • Office Plugin for Netscape Navigator
  • Yahoo! activeX Plug-in Bridge

Application

  • Firefox 19.0
  • User Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
  • Support URL: http://support.mozilla.org/1/firefox/19.0/WINNT/en-US/

Extensions

  • Charles Autoconfiguration 3.6.4 ({3e9a3920-1b27-11da-8cd6-0800200c9a66})
  • Firebug 1.11.2 (firebug@software.joehewitt.com)
  • Genesys Meeting Center 4.11.7.244 (meetinglauncher@iconf.net)
  • Google Web Toolkit Developer Plugin for Firefox 1.19 (gwt-dev-plugin@google.com)
  • Troubleshooter 1.0a (troubleshooter@mozilla.org)
  • Web Developer 1.2.2 ({c45c406e-ab73-11d8-be73-000a95be3b12})
  • YSlow 3.1.4 (yslow@yahoo-inc.com)
  • Java Console 6.0.33 ({CAFEEFAC-0016-0000-0033-ABCDEFFEDCBA}) (Inactive)
  • Java Console 6.0.35 ({CAFEEFAC-0016-0000-0035-ABCDEFFEDCBA}) (Inactive)
  • Java Console 6.0.37 ({CAFEEFAC-0016-0000-0037-ABCDEFFEDCBA}) (Inactive)
  • Java Console 6.0.38 ({CAFEEFAC-0016-0000-0038-ABCDEFFEDCBA}) (Inactive)
  • Microsoft .NET Framework Assistant 1.2.1 ({20a82645-c095-46ed-80e3-08825760534b}) (Inactive)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: ATI FireGL V3600
  • adapterDescription2:
  • adapterDeviceID: 0x958d
  • adapterDeviceID2:
  • adapterDrivers: ati2dvag
  • adapterDrivers2:
  • adapterRAM: Unknown
  • adapterRAM2:
  • adapterVendorID: 0x1002
  • adapterVendorID2:
  • direct2DEnabled: False
  • direct2DEnabledMessage: [u'tryNewerDriver', u'10.6']
  • directWriteEnabled: False
  • directWriteVersion: 0.0.0.0
  • driverDate: 2-8-2008
  • driverDate2:
  • driverVersion: 8.440.4.0
  • driverVersion2:
  • info: {u'AzureContentBackend': u'none', u'AzureCanvasBackend': u'cairo', u'AzureFallbackCanvasBackend': u'none'}
  • isGPU2Active: False
  • numAcceleratedWindows: 0
  • numAcceleratedWindowsMessage: [u'tryNewerDriver', u'10.6']
  • numTotalWindows: 1
  • webglRendererMessage: [u'tryNewerDriver', u'10.6']
  • windowLayerManagerType: Basic

Modified Preferences

  • accessibility.typeaheadfind.flashBar: 0
  • browser.cache.disk.capacity: 1048576
  • browser.cache.disk.enable: False
  • browser.cache.disk.smart_size.first_run: False
  • browser.cache.disk.smart_size_cached_value: 1048576
  • browser.cache.memory.enable: False
  • browser.places.importBookmarksHTML: False
  • browser.places.importDefaults: False
  • browser.places.leftPaneFolderId: -1
  • browser.places.migratePostDataAnnotations: False
  • browser.places.smartBookmarksVersion: 4
  • browser.places.updateRecentTagsUri: False
  • browser.startup.homepage_override.buildID: 20130215130331
  • browser.startup.homepage_override.mstone: 19.0
  • extensions.lastAppVersion: 19.0
  • font.internaluseonly.changed: False
  • general.useragent.extra.microsoftdotnet: ( .NET CLR 3.5.30729)
  • gfx.blacklist.suggested-driver-version: 10.6
  • network.cookie.prefsMigrated: True
  • places.database.lastMaintenance: 1361847006
  • places.history.expiration.transient_current_max_pages: 104858
  • places.history.expiration.transient_optimal_database_size: 167772160
  • places.last_vacuum: 1306271978
  • plugin.disable_full_page_plugin_for_types: application/pdf
  • privacy.sanitize.migrateFx3Prefs: True
  • security.warn_viewing_mixed: False

Misc

  • User JS: No
  • Accessibility: No
John99
  • Top 25 Contributor
  • Moderator
622 solutions 8037 answers

You may get an answer here but probably stand a better chance on the Mozillazine fora or AMO. I am not even sure the test case and STR on the linked bug are still valid.

Try

Chosen Solution

I've opened a bug and the Mozilla developers have confirmed that this problem is a regression in Firefox 15 and later releases.

Original bugs: https://bugzilla.mozilla.org/show_bug.cgi?id=308736 – Caret is invisible when entering an empty designmode field https://bugzilla.mozilla.org/show_bug.cgi?id=395965 – Caret drawn vertically offset in designMode IFrame

Posting of regression in Firefox 15: https://bugzilla.mozilla.org/show_bug.cgi?id=846943 - Caret is invisible when entering an empty designmode field - regression

John99
  • Top 25 Contributor
  • Moderator
622 solutions 8037 answers

Well done.

Thanks for doing the research and posting back.