In this Wikipedia article on fictious forces, under the section Gravity as a fictitious force, is stated,
All fictitious forces are proportional to the mass of the object upon which they act, which is also true for gravity. This led Albert Einstein to wonder whether gravity was a fictitious force as well. He noted that a freefalling observer in a closed box would not be able to detect the force of gravity; hence, freefalling reference frames are equivalent to an inertial reference frame.
Is this last statement accurate? As I understood, accelerating reference frames are not inertial because the principle of inertia does not hold in them.