Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve devtools output for console APIs #26346

Merged
merged 1 commit into from Apr 29, 2020
Merged

Conversation

@jdm
Copy link
Member

jdm commented Apr 28, 2020

These changes use the new API from servo/rust-mozjs#508 to report meaningful filenames and line numbers for APIs that trigger devtools output. They also cause error messages originating from uncompiled event handlers to report a more relevant filename; this differs from Gecko's behaviour, but provides a more useful debugging experience in my opinion.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #9604 and fix #26344.
  • These changes do not require tests because devtools aren't tested.
@highfive
Copy link

highfive commented Apr 28, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/eventtarget.rs, components/script/dom/htmlelement.rs, components/script/dom/console.rs, components/script/dom/htmlbodyelement.rs, components/script/devtools.rs
  • @KiChjang: components/script/dom/eventtarget.rs, components/script/dom/htmlelement.rs, components/script/dom/console.rs, components/script/dom/htmlbodyelement.rs, components/script/devtools.rs
@jdm
Copy link
Member Author

jdm commented Apr 28, 2020

@bors-servo try=wpt

@highfive
Copy link

highfive commented Apr 28, 2020

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify script code, but no tests are modified. Please consider adding a test!
@bors-servo
Copy link
Contributor

bors-servo commented Apr 28, 2020

Trying commit f0751e4 with merge c91e233...

bors-servo added a commit that referenced this pull request Apr 28, 2020
Console caller

These changes use the new API from servo/rust-mozjs#508 to report meaningful filenames and line numbers for APIs that trigger devtools output. They also cause error messages originating from uncompiled event handlers to report a more relevant filename; this differs from Gecko's behaviour, but provides a more useful debugging experience in my opinion.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #9604 and #26344.
- [x] These changes do not require tests because devtools aren't tested.
@jdm jdm changed the title Console caller Improve devtools output for console APIs Apr 28, 2020
@jdm jdm force-pushed the jdm:console-caller branch from f0751e4 to 1aaa932 Apr 29, 2020
@jdm
Copy link
Member Author

jdm commented Apr 29, 2020

@bors-servo r=SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2020

📌 Commit 1aaa932 has been approved by SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2020

Testing commit 1aaa932 with merge 02878a6...

bors-servo added a commit that referenced this pull request Apr 29, 2020
Improve devtools output for console APIs

These changes use the new API from servo/rust-mozjs#508 to report meaningful filenames and line numbers for APIs that trigger devtools output. They also cause error messages originating from uncompiled event handlers to report a more relevant filename; this differs from Gecko's behaviour, but provides a more useful debugging experience in my opinion.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #9604 and fix #26344.
- [x] These changes do not require tests because devtools aren't tested.
@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2020

💔 Test failed - status-taskcluster

@jdm jdm force-pushed the jdm:console-caller branch from 1aaa932 to ab7ade4 Apr 29, 2020
@jdm
Copy link
Member Author

jdm commented Apr 29, 2020

@bors-servo r=Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2020

📌 Commit ab7ade4 has been approved by Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2020

Testing commit ab7ade4 with merge aa9a8d8...

bors-servo added a commit that referenced this pull request Apr 29, 2020
Improve devtools output for console APIs

These changes use the new API from servo/rust-mozjs#508 to report meaningful filenames and line numbers for APIs that trigger devtools output. They also cause error messages originating from uncompiled event handlers to report a more relevant filename; this differs from Gecko's behaviour, but provides a more useful debugging experience in my opinion.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #9604 and fix #26344.
- [x] These changes do not require tests because devtools aren't tested.
@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member Author

jdm commented Apr 29, 2020

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2020

Testing commit ab7ade4 with merge ba0df48...

@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2020

☀️ Test successful - status-taskcluster
Approved by: Manishearth
Pushing ba0df48 to master...

@bors-servo bors-servo merged commit ba0df48 into servo:master Apr 29, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.