Bug 1050164 - Investigate to implement standalone shrinking library

https://bugzilla.mozilla.org/show_bug.cgi?id=1050164
new method