how about merging 2 conditions into one statement?
```
if (!isMainFrame || errorCode == NetError.ERR_ABORTED) {
  return;
}
```
ping @junmin-zhu