That is... unlikely.
First off, having to pay more isn't the same as not being able to get it at all. This is a problem for China, but it's not an existential threat. It's costly, but not nearly as costly as war.
For another, though, the situation with Japan vs. China really isn't remotely equivalent. Japan didn't attack Pearl Harbor for revenge against our oil embargo. They attacked Pearl Harbor because they wanted to seize oil resources in Southeast Asia and wanted to prevent the US from interfering with those efforts. The attack was intended to solve their oil problem. It didn't end up working, but the idea was at least rational.
Could China do likewise? No, it couldn't. They do not have the military capability to project significant power into the middle east. They could not open up Hormuz by force even if they wanted to. They could not stop our attacks on Iran even if they wanted to. So what can their military do? Well, they've been building it with the express purpose of invading Taiwan. It's not a given that they could succeed, but that's what their capabilities are built for. Would invading Taiwan secure any oil? No, it wouldn't. Taiwan has no oil. Would it give them easier access to oil? No, it wouldn't. Oil trade doesn't run through Taiwan either. Open war would much more likely restrict the oil imports they're already getting.
So why would this drive China to go to war?