The default bug view has changed. See this FAQ.

Intermittent browser_webconsole_netlogging.js | TypeError: content.wrappedJSObject.testXhrGet is not a function

RESOLVED FIXED in Firefox 16

Status

()

Firefox
Developer Tools: Console
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: rc, Assigned: msucan)

Tracking

({intermittent-failure})

unspecified
Firefox 16
intermittent-failure
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/devtools/webconsole/test/browser_webconsole_netlogging.js | an unexpected uncaught JS exception reported through window.onerror - TypeError: content.wrappedJSObject.testXhrGet is not a function at chrome://mochitests/content/browser/browser/devtools/webconsole/test/browser_webconsole_netlogging.js:101
(Assignee)

Comment 1

5 years ago
Created attachment 629825 [details] [diff] [review]
[in-fx-team] proposed fix

Proposed fix.

Potential problem: the network request callback is invoked before the page completes loading, before testXhrGet() is available.

Solution: also wait for page load.

Try push:
https://tbpl.mozilla.org/?tree=Try&rev=3b7f99b34142
Assignee: nobody → mihai.sucan
Status: NEW → ASSIGNED
Attachment #629825 - Flags: review?(rcampbell)
(Reporter)

Comment 2

5 years ago
Comment on attachment 629825 [details] [diff] [review]
[in-fx-team] proposed fix

yeah, I think that should cover it. I don't think you can have requestCallbackInvoked == false and still get your load event.
Attachment #629825 - Flags: review?(rcampbell) → review+
(Assignee)

Comment 3

5 years ago
Comment on attachment 629825 [details] [diff] [review]
[in-fx-team] proposed fix

https://hg.mozilla.org/integration/fx-team/rev/51c36b7f783b
Attachment #629825 - Attachment description: proposed fix → [in-fx-team] proposed fix
(Assignee)

Updated

5 years ago
Whiteboard: [fixed-in-fx-team]
(Assignee)

Updated

5 years ago
Blocks: 438871
Whiteboard: [fixed-in-fx-team] → [orange][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/51c36b7f783b
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 16
Whiteboard: [orange][fixed-in-fx-team] → [orange]
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Keywords: intermittent-failure
Whiteboard: [orange]
You need to log in before you can comment on or make changes to this bug.