fix regression of Bug 877675
Merge pull request #10459 from gasolin/issue-877675-2

fix regression of Bug 877675, r=alive