(backwards)
| 273 | |
| 274 | // Returns null if no search has been performed yet. |
| 275 | static getQuery(backwards) { |
| 276 | if (!this.query) return; |
| 277 | // check if the query has been changed by a script in another frame |
| 278 | const mostRecentQuery = FindModeHistory.getQuery(); |
| 279 | if (mostRecentQuery !== this.query.rawQuery) { |
| 280 | this.updateQuery(mostRecentQuery); |
| 281 | } |
| 282 | |
| 283 | return this.getNextQueryFromRegexMatches(backwards); |
| 284 | } |
| 285 | |
| 286 | static saveQuery() { |
| 287 | FindModeHistory.saveQuery(this.query.rawQuery); |
no test coverage detected