* Subscribes to the 'network.fetchError' event and handles it with the provided callback. * * @param {Function} callback - The callback function to handle the event. * @returns {Promise } - A promise that resolves when the subscription is successful.
(callback)
| 141 | * @returns {Promise<void>} - A promise that resolves when the subscription is successful. |
| 142 | */ |
| 143 | async fetchError(callback) { |
| 144 | await this.subscribeAndHandleEvent('network.fetchError', callback) |
| 145 | } |
| 146 | |
| 147 | async subscribeAndHandleEvent(eventType, callback) { |
| 148 | if (this._browsingContextIds != null) { |
no test coverage detected