I also remember the guy jumping on you to correct you in your other post. Seems like the internet brings out the "best" in some folks.
To answer your question, propellants like black powder and smokeless powder burn, not explode. Firecrackers are a mixed lot, some contain black powder, others contain flash powder (like they used to use in the late 1800s for taking photographs). Black powder burns because saltpeter releases oxygen when heated, flash powder burns because the chemicals in it oxidize very rapidly when heated. This rapid burning is called a conflagration (con= together, flagration= burning up, so burning all at once), caused by the heat and released oxygen from nitrates in the compound burning the hydrocarbon base materials. Burning propellants unconfined slows the release of oxygen and slows the burning. To stop a conflagration, just relieve pressure, and the material just burns.
Explosives explode, whether they are confined or not, caused by heat and shock. If you set fire to dynamite, for example, it will burn. If you shoot it or hit it while it is burning it will explode. Detonating caps, used to set off explosives, provide both heat and shock to detonate the material. Other sources of shock are electromagnetic radiation (like radio waves) or impact (like a rifle round), or a shock wave (from another explosion). Enough of a shock, and explosives will explode. Once an explosion starts, there is no stopping it.
I know, long story.