Ok, I think I'm getting closer. @lizlux you added it here https://github.com/Wikia/app/commit/bab968f850a19b0d7db155f5b621265c19ced661
and as you can see in the same commit it was used right away in ve.ui.WikiaMediaInsertDialog.js around line 395
So, I think I'm right that after reverting that change "permanent" step is not executed anymore, but... should it be?