What is this plane from WWII (probably French or Allied forces)?
It's an RAF Coastal Command Vickers Wellington, a maritime patrol variant, with a chin radome for its search radar and the nose turret removed and just greenhouse for observing.  The dark projection on top just above the cowling is a fairing for a Direction Finding loop antenna on the fuselage.  The dark shapes farther back are just dark painted areas.  Here's a shot of a similar one:

If you're sure the picture was taken near Morocco, it was probably doing sub hunting in the Mediterranean and nearby Atlantic.  Likely with 179 Squadron, based at Gibraltar.