Open Bug 1732635 Opened 3 years ago Updated 8 months ago

Perma [tier2] devtools/client/netmonitor/test/browser_net_response_CORS_blocked.js | Node is not focusable via the accessibility API: id: response-tab, tagName: A, className: -

Categories

(DevTools :: Netmonitor, defect, P5)

defect

Tracking

(firefox-esr78 unaffected, firefox-esr91 unaffected, firefox92 unaffected, firefox93 unaffected, firefox94 affected)

ASSIGNED
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- unaffected
firefox92 --- unaffected
firefox93 --- unaffected
firefox94 --- affected

People

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

References

(Blocks 1 open bug, Regression)

Details

(Keywords: intermittent-failure, leave-open, regression, Whiteboard: [stockwell disabled])

Attachments

(1 file, 1 obsolete file)

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


[task 2021-09-27T07:50:02.792Z] 07:50:02     INFO - TEST-START | devtools/client/netmonitor/test/browser_net_response_CORS_blocked.js
[task 2021-09-27T07:50:04.301Z] 07:50:04     INFO - TEST-INFO | started process screentopng
[task 2021-09-27T07:50:04.694Z] 07:50:04     INFO - TEST-INFO | screentopng: exit 0
[task 2021-09-27T07:50:04.695Z] 07:50:04     INFO - Buffered messages logged at 07:50:02
[task 2021-09-27T07:50:04.696Z] 07:50:04     INFO - Entering test bound testCORSNotificationPresent
[task 2021-09-27T07:50:04.696Z] 07:50:04     INFO - Test that CORS notification is present
[task 2021-09-27T07:50:04.697Z] 07:50:04     INFO - Initializing a network monitor pane.
[task 2021-09-27T07:50:04.698Z] 07:50:04     INFO - Adding a new tab with URL: http://example.com/browser/devtools/client/netmonitor/test/html_cors-test-page.html
[task 2021-09-27T07:50:04.699Z] 07:50:04     INFO - Buffered messages logged at 07:50:03
[task 2021-09-27T07:50:04.699Z] 07:50:04     INFO - Tab added and finished loading
[task 2021-09-27T07:50:04.700Z] 07:50:04     INFO - Net tab added successfully: http://example.com/browser/devtools/client/netmonitor/test/html_cors-test-page.html
[task 2021-09-27T07:50:04.705Z] 07:50:04     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 2021-09-27T07:50:04.705Z] 07:50:04     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 2021-09-27T07:50:04.705Z] 07:50:04     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: 75}]
[task 2021-09-27T07:50:04.705Z] 07:50:04     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 2021-09-27T07:50:04.705Z] 07:50:04     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 2021-09-27T07:50:04.706Z] 07:50:04     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: 75}]
[task 2021-09-27T07:50:04.706Z] 07:50:04     INFO - Network monitor pane shown successfully.
[task 2021-09-27T07:50:04.706Z] 07:50:04     INFO - Disabling cache and reloading page.
[task 2021-09-27T07:50:04.706Z] 07:50:04     INFO - > Network event progress: NetworkEvent: 0/1, PayloadReady: 1/1, EventTimings: 0/0, got NetMonitor:PayloadReady for server0.conn125.netEvent7
[task 2021-09-27T07:50:04.706Z] 07:50:04     INFO - > Network event progress: NetworkEvent: 1/1, PayloadReady: 1/1, EventTimings: 0/1, got NetMonitor:NetworkEvent for server0.conn125.netEvent7
[task 2021-09-27T07:50:04.706Z] 07:50:04     INFO - Got marker: dom-interactive
[task 2021-09-27T07:50:04.706Z] 07:50:04     INFO - Got marker: dom-complete
[task 2021-09-27T07:50:04.707Z] 07:50:04     INFO - Got two timeline markers, done waiting
[task 2021-09-27T07:50:04.708Z] 07:50:04     INFO - Console message: [JavaScript Warning: "Relative positioning of table rows and row groups is now supported. This site may need to be updated because it may depend on this feature having no effect." {file: "resource://devtools/client/netmonitor/src/components/request-list/RequestListHeader.js" line: 545}]
[task 2021-09-27T07:50:04.709Z] 07:50:04     INFO - > Network event progress: NetworkEvent: 1/1, PayloadReady: 1/1, EventTimings: 1/1, got NetMonitor:NetworkEventUpdated:EventTimings for server0.conn125.netEvent7
[task 2021-09-27T07:50:04.710Z] 07:50:04     INFO - Clearing requests in the UI.
[task 2021-09-27T07:50:04.711Z] 07:50:04     INFO - making request to a origin that doesn't allow cross origin
[task 2021-09-27T07:50:04.711Z] 07:50:04     INFO - Buffered messages logged at 07:50:04
[task 2021-09-27T07:50:04.712Z] 07:50:04     INFO - Waiting until the requests appear in netmonitor
[task 2021-09-27T07:50:04.713Z] 07:50:04     INFO - Console message: [JavaScript Error: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://example.org/browser/devtools/client/netmonitor/test/sjs_simple-test-server.sjs. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)."]
[task 2021-09-27T07:50:04.713Z] 07:50:04     INFO - Console message: [JavaScript Error: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://example.org/browser/devtools/client/netmonitor/test/sjs_simple-test-server.sjs. (Reason: CORS request did not succeed)."]
[task 2021-09-27T07:50:04.714Z] 07:50:04     INFO - > Network event progress: NetworkEvent: 0/1, PayloadReady: 1/1, EventTimings: 0/0, got NetMonitor:PayloadReady for server0.conn125.netEvent56
[task 2021-09-27T07:50:04.715Z] 07:50:04     INFO - > Network event progress: NetworkEvent: 0/1, PayloadReady: 2/1, EventTimings: 0/0, got NetMonitor:PayloadReady for server0.conn125.netEvent26
[task 2021-09-27T07:50:04.715Z] 07:50:04     INFO - > Network event progress: NetworkEvent: 1/1, PayloadReady: 2/1, EventTimings: 0/0, got NetMonitor:NetworkEvent for server0.conn125.netEvent26
[task 2021-09-27T07:50:04.716Z] 07:50:04     INFO - selecting first request
[task 2021-09-27T07:50:04.716Z] 07:50:04     INFO - switching to response panel
[task 2021-09-27T07:50:04.717Z] 07:50:04     INFO - Buffered messages finished
[task 2021-09-27T07:50:04.719Z] 07:50:04     INFO - TEST-UNEXPECTED-FAIL | devtools/client/netmonitor/test/browser_net_response_CORS_blocked.js | Node is not focusable via the accessibility API: id: response-tab, tagName: A, className:  - 
[task 2021-09-27T07:50:04.719Z] 07:50:04     INFO - Stack trace:
[task 2021-09-27T07:50:04.719Z] 07:50:04     INFO - chrome://mochikit/content/browser-test.js:test_ok:1336
[task 2021-09-27T07:50:04.719Z] 07:50:04     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:a11yFail:265
[task 2021-09-27T07:50:04.719Z] 07:50:04     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:assertFocusable:308
[task 2021-09-27T07:50:04.719Z] 07:50:04     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:assertCanBeClicked:518
[task 2021-09-27T07:50:04.719Z] 07:50:04     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:runIfA11YChecks/this.AccessibilityUtils:492
[task 2021-09-27T07:50:04.719Z] 07:50:04     INFO - chrome://mochikit/content/tests/SimpleTest/EventUtils.js:sendMouseEvent:276
[task 2021-09-27T07:50:04.719Z] 07:50:04     INFO - chrome://mochitests/content/browser/devtools/client/netmonitor/test/browser_net_response_CORS_blocked.js:testCORSNotificationPresent:51
[task 2021-09-27T07:50:04.719Z] 07:50:04     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1091
[task 2021-09-27T07:50:04.719Z] 07:50:04     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1131
[task 2021-09-27T07:50:04.719Z] 07:50:04     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:939
[task 2021-09-27T07:50:04.719Z] 07:50:04     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1041
[task 2021-09-27T07:50:04.720Z] 07:50:04     INFO - selecting CORS notification
[task 2021-09-27T07:50:04.720Z] 07:50:04     INFO - TEST-PASS | devtools/client/netmonitor/test/browser_net_response_CORS_blocked.js | CORS Notification Present - 
Flags: needinfo?(hmanilla)
Flags: needinfo?(delosrogers)

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

i'm taking a look at this. thanks

Flags: needinfo?(hmanilla)
Flags: needinfo?(hmanilla)

Using EventUtils.sendMouseEvent triggers a11y checks on TRY when --enable-a11y-checks is used.
The a11y issue here is the tab do not have a .focus styling.
There might be a reason there is no .focus styling? question to answer
and confirm with the devtools team.

But also in all other tests a <element>.click() is just used which works fine.
So i'm switching to that.

To see the failure locally use
./mach test devtools/client/netmonitor/test/browser_net_response_CORS_blocked.js --headless --enable-a11y-checks

Assignee: nobody → hmanilla
Status: NEW → ASSIGNED

Bug 1692110 will switch a11y-checks from being only triggered by EventUtils.sendMouseEvent to instead capture mouse clicks. At that point, the patch proposed in comment 6 will no longer "fix" this issue.

That said, after discussion with nchevobbe, this would seem to be a false positive. The tab is keyboard focusable, but only when it's selected; tabindex is moved when the selected tab changes.

The plan is to also address some false positives like this in bug 1692110. Unfortunately, our team is very understaffed right now and no one is currently available to push that bug to the finish line, as it's a pretty large undertaking.

Depends on: 1692110

To stop the bleeding here, I'd recommend just disabling this test for a11y-checks for now, ensuring we have a bug on file (whether this one or another) to get it fixed once but 1692110 is ready.

Attachment #9243669 - Attachment is obsolete: true
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/59e49b054aec skip browser_net_response_CORS_blocked.js on Linux opt with a11y checks until the frequent failure gets resolved. r=bomsy DONTBUILD
Flags: needinfo?(hmanilla)
Flags: needinfo?(delosrogers)
Whiteboard: [stockwell disable-recommended] → [stockwell disabled]
Has Regression Range: --- → yes
See Also: → 1870062
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: