Bug: Intermittent browser/components/urlbar/tests/browser/browser_stop_pending.js | uncaught exception - TypeError: can't access property "hasAttribute", this.mTab is undefined at onStateChange@chrome://browser/content/tabbrowser.js:6541:13
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-02-08 21:41:43+00:00
Resolved: 2022-07-25 23:16:45+00:00

**Filed by:** mlaza [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=367110383&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/BRkjAFYzSXSmTayC7UtDMQ/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2022-02-08T20:54:49.847Z] 20:54:49     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_stop_pending.js | The URL bar change handler should have been called by the time the page was loaded - 
[task 2022-02-08T20:54:49.849Z] 20:54:49     INFO - Buffered messages logged at 20:54:48
[task 2022-02-08T20:54:49.850Z] 20:54:49     INFO - Leaving test bound testCorrectUrlBarAfterGoingBackDuringAnotherLoad
[task 2022-02-08T20:54:49.851Z] 20:54:49     INFO - Entering test bound testCorrectUrlBarAfterReloadingDuringSlowPageLoad
[task 2022-02-08T20:54:49.853Z] 20:54:49     INFO - Buffered messages finished
[task 2022-02-08T20:54:49.854Z] 20:54:49     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_stop_pending.js | uncaught exception - TypeError: can't access property "hasAttribute", this.mTab is undefined at onStateChange@chrome://browser/content/tabbrowser.js:6541:13
[task 2022-02-08T20:54:49.855Z] 20:54:49     INFO - 
[task 2022-02-08T20:54:49.857Z] 20:54:49     INFO - Stack trace:
[task 2022-02-08T20:54:49.857Z] 20:54:49     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:1957
[task 2022-02-08T20:54:49.859Z] 20:54:49     INFO - GECKO(1584) | JavaScript error: chrome://browser/content/tabbrowser.js, line 6541: TypeError: can't access property "hasAttribute", this.mTab is undefined
[task 2022-02-08T20:54:49.865Z] 20:54:49     INFO - Console message: [JavaScript Error: "TypeError: can't access property "hasAttribute", this.mTab is undefined" {file: "chrome://browser/content/tabbrowser.js" line: 6541}]
[task 2022-02-08T20:54:49.866Z] 20:54:49     INFO - onStateChange@chrome://browser/content/tabbrowser.js:6541:13
[task 2022-02-08T20:54:49.867Z] 20:54:49     INFO - 
[task 2022-02-08T20:54:49.868Z] 20:54:49     INFO - GECKO(1584) | JavaScript error: resource://gre/modules/URLQueryStrippingListService.jsm, line 90: TypeError: can't access property "removeEventListener", Services.cpmm.sharedData is null
[task 2022-02-08T20:54:49.869Z] 20:54:49     INFO - GECKO(1584) | ###!!! [Parent][PImageBridgeParent] Error: RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost
[task 2022-02-08T20:54:49.870Z] 20:54:49     INFO - GECKO(1584) | ###!!! [Parent][PImageBridgeParent] Error: RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost
[task 2022-02-08T20:54:49.872Z] 20:54:49     INFO - GECKO(1584) | Saw state f0001 and status 0
[task 2022-02-08T20:54:49.874Z] 20:54:49     INFO - GECKO(1584) | -----------------------------------------------------
[task 2022-02-08T20:54:49.875Z] 20:54:49     INFO - GECKO(1584) | Suppressions used:
[task 2022-02-08T20:54:49.876Z] 20:54:49     INFO - GECKO(1584) |   count      bytes template
[task 2022-02-08T20:54:49.877Z] 20:54:49     INFO - GECKO(1584) |      13        416 nsComponentManagerImpl
[task 2022-02-08T20:54:49.879Z] 20:54:49     INFO - GECKO(1584) |       2        288 libfontconfig.so
[task 2022-02-08T20:54:49.880Z] 20:54:49     INFO - GECKO(1584) | -----------------------------------------------------
[task 2022-02-08T20:54:49.881Z] 20:54:49     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "http://example.com/" line: 0}]
[task 2022-02-08T20:54:49.882Z] 20:54:49     INFO - GECKO(1584) | Saw state c0010 and status 0
[task 2022-02-08T20:54:49.883Z] 20:54:49     INFO - GECKO(1584) | Browser got expected state change http://example.com/
[task 2022-02-08T20:54:49.884Z] 20:54:49     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_stop_pending.js | Should not revert URL bar value! -
```