Closed Bug 1759224 Opened 3 years ago Closed 3 years ago

Intermittent devtools/client/debugger/test/mochitest/browser_dbg-features-source-text-content.js | We loaded the html page once as we haven't tried to display it in the debugger - Got 2, expected 1

Categories

(DevTools :: Debugger, defect, P5)

defect

Tracking

(firefox-esr91 unaffected, firefox98 unaffected, firefox99 unaffected, firefox100 fixed)

RESOLVED FIXED
100 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox98 --- unaffected
firefox99 --- unaffected
firefox100 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: ochameau)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

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


[task 2022-03-11T19:55:20.602Z] 19:55:20     INFO - TEST-START | devtools/client/debugger/test/mochitest/browser_dbg-features-source-text-content.js
<...>
[task 2022-03-11T19:55:36.652Z] 19:55:36     INFO - TEST-PASS | devtools/client/debugger/test/mochitest/browser_dbg-features-source-text-content.js | We loaded http-error-script.js twice, only before the debugger is opened - 
[task 2022-03-11T19:55:36.653Z] 19:55:36     INFO - Leaving test bound testSourceTextContent
[task 2022-03-11T19:55:36.654Z] 19:55:36     INFO - Entering test bound testGarbageCollectedSourceTextContent
[task 2022-03-11T19:55:36.655Z] 19:55:36     INFO - Adding a new tab with URL: http://localhost:35424/garbaged-collected.html
[task 2022-03-11T19:55:36.656Z] 19:55:36     INFO - Buffered messages logged at 19:55:31
[task 2022-03-11T19:55:36.657Z] 19:55:36     INFO - Tab added and finished loading
[task 2022-03-11T19:55:36.658Z] 19:55:36     INFO - Opening the toolbox
[task 2022-03-11T19:55:36.659Z] 19:55:36     INFO - Buffered messages logged at 19:55:32
[task 2022-03-11T19:55:36.660Z] 19:55:36     INFO - Console message: Invalid chrome URI (need path): chrome://devtools/
[task 2022-03-11T19:55:36.661Z] 19:55:36     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-11T19:55:36.662Z] 19:55:36     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-11T19:55:36.663Z] 19:55:36     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 62}]
[task 2022-03-11T19:55:36.664Z] 19:55:36     INFO - Buffered messages logged at 19:55:33
[task 2022-03-11T19:55:36.665Z] 19:55:36     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-11T19:55:36.666Z] 19:55:36     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 511}]
[task 2022-03-11T19:55:36.666Z] 19:55:36     INFO - Console message: [JavaScript Error: "Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”)." {file: "chrome" line: 62}]
[task 2022-03-11T19:55:36.667Z] 19:55:36     INFO - Buffered messages logged at 19:55:34
[task 2022-03-11T19:55:36.668Z] 19:55:36     INFO - Console message: [JavaScript Warning: "Use of nsIFile in content process is deprecated." {file: "resource://gre/modules/NetUtil.jsm" line: 253}]
[task 2022-03-11T19:55:36.669Z] 19:55:36     INFO - Console message: [JavaScript Warning: "Use of nsIFile in content process is deprecated." {file: "resource://gre/modules/NetUtil.jsm" line: 253}]
[task 2022-03-11T19:55:36.669Z] 19:55:36     INFO - Toolbox opened and focused
[task 2022-03-11T19:55:36.670Z] 19:55:36     INFO - Waiting on sources: garbaged-collected.html, garbaged-script.js
[task 2022-03-11T19:55:36.671Z] 19:55:36     INFO - Waiting for state change: source garbaged-collected.html exists
[task 2022-03-11T19:55:36.672Z] 19:55:36     INFO - Waiting for state change: source garbaged-script.js exists
[task 2022-03-11T19:55:36.673Z] 19:55:36     INFO - Finished waiting for state change: source garbaged-script.js exists
[task 2022-03-11T19:55:36.674Z] 19:55:36     INFO - Buffered messages logged at 19:55:35
[task 2022-03-11T19:55:36.674Z] 19:55:36     INFO - Finished waiting for state change: source garbaged-script.js exists
[task 2022-03-11T19:55:36.675Z] 19:55:36     INFO - Finished waiting for state change: source garbaged-collected.html exists
[task 2022-03-11T19:55:36.676Z] 19:55:36     INFO - Finished waiting on sources: garbaged-collected.html, garbaged-script.js
[task 2022-03-11T19:55:36.677Z] 19:55:36     INFO - Console message: [JavaScript Warning: "‘src’ attribute of <script> element is not a valid URI: “/garbaged-script.js”" {file: "moz-nullprincipal:{b4553a3a-69b5-445f-82ac-21c3d9eb91cf}" line: 1}]
[task 2022-03-11T19:55:36.678Z] 19:55:36     INFO - Buffered messages logged at 19:55:36
[task 2022-03-11T19:55:36.678Z] 19:55:36     INFO - Waiting for state change: selected source
[task 2022-03-11T19:55:36.680Z] 19:55:36     INFO - Finished waiting for state change: selected source
[task 2022-03-11T19:55:36.681Z] 19:55:36     INFO - TEST-PASS | devtools/client/debugger/test/mochitest/browser_dbg-features-source-text-content.js | undefined assertion name - 
[task 2022-03-11T19:55:36.682Z] 19:55:36     INFO - Buffered messages finished
[task 2022-03-11T19:55:36.684Z] 19:55:36     INFO - TEST-UNEXPECTED-FAIL | devtools/client/debugger/test/mochitest/browser_dbg-features-source-text-content.js | We loaded the html page once as we haven't tried to display it in the debugger - Got 2, expected 1
[task 2022-03-11T19:55:36.685Z] 19:55:36     INFO - Stack trace:
[task 2022-03-11T19:55:36.685Z] 19:55:36     INFO - chrome://mochikit/content/browser-test.js:test_is:1422
[task 2022-03-11T19:55:36.686Z] 19:55:36     INFO - chrome://mochitests/content/browser/devtools/client/debugger/test/mochitest/browser_dbg-features-source-text-content.js:testGarbageCollectedSourceTextContent:164
[task 2022-03-11T19:55:36.687Z] 19:55:36     INFO - chrome://mochikit/content/browser-test.js:handleTask:989
[task 2022-03-11T19:55:36.687Z] 19:55:36     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1061
[task 2022-03-11T19:55:36.688Z] 19:55:36     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1189
[task 2022-03-11T19:55:36.689Z] 19:55:36     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:978
[task 2022-03-11T19:55:36.690Z] 19:55:36     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1041
[task 2022-03-11T19:55:36.691Z] 19:55:36     INFO - TEST-PASS | devtools/client/debugger/test/mochitest/browser_dbg-features-source-text-content.js | We loaded the garbaged script twice as we lost its content - 
[task 2022-03-11T19:55:36.692Z] 19:55:36     INFO - Leaving test bound testGarbageCollectedSourceTextContent
Regressed by: 1754407

Set release status flags based on info from the regressing bug 1754407

:ochameau, since you are the author of the regressor, bug 1754407, could you take a look?
For more information, please visit auto_nag documentation.

Flags: needinfo?(poirot.alex)
Assignee: nobody → poirot.alex
Flags: needinfo?(poirot.alex)
Has Regression Range: --- → yes

The HTML page was sometime GC-ed, but not always.
This led to intermittent.
Now the test always ensure that we open the debugger when
both the HTMl and the JS script are GC-ed.

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8021329633d6 [devtools] Better cover garbaged HTML page in browser_dbg-features-source-text-content.js. r=bomsy
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: