Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSend servo version in mozbrowser error. #12136
Conversation
highfive
commented
Jul 1, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jul 1, 2016
efe3bbb
to
1ce73cc
| @@ -354,10 +354,12 @@ impl MozBrowserEventDetailBuilder for HTMLIFrameElement { | |||
| rval.set(NullValue()); | |||
| } | |||
| MozBrowserEvent::Error(error_type, description, report) => { | |||
| let version = format!("Servo {}{}", env!("CARGO_PKG_VERSION"), env!("GIT_INFO")); | |||
This comment has been minimized.
This comment has been minimized.
aneeshusa
Jul 1, 2016
Member
This could get out of sync with the version string in components/servo/main.rs - can we define it in one place and reference it from both? (Maybe util, not sure which crate is right here.)
This comment has been minimized.
This comment has been minimized.
Also moved servo version to util for usage by the --version flag and for sending the version to browser.html with mozbrowsererror
1ce73cc
to
ed678cb
|
It would be nice if we could use the user agent string for this, as it's a more standardized representation of the user string. Unfortunately, the version in util/opts.rs is hardwired to be be Reviewed 1 of 3 files at r1, 3 of 3 files at r3. Comments from Reviewable |
|
IRC chat: http://logs.glob.uno/?c=mozilla%23servo&s=1+Jul+2016&e=1+Jul+2016#c471331 @aneeshusa and @larsbergstrom would prefer to keep the git revision out of the UA string. |
|
@bors-servo r+ |
|
|
…effrey Send servo version in mozbrowser error. <!-- Please describe your changes on the following line: --> Adds support for sending a version string to b.html so we can put the servo version in the auto generated issue reports. r? @asajeffrey --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12083 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because sending servo version on mozbrwosererror for issue reporter. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12136) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
…effrey Send servo version in mozbrowser error. <!-- Please describe your changes on the following line: --> Adds support for sending a version string to b.html so we can put the servo version in the auto generated issue reports. r? @asajeffrey --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12083 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because sending servo version on mozbrwosererror for issue reporter. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12136) <!-- Reviewable:end -->
|
|
cbrewster commentedJul 1, 2016
•
edited by larsbergstrom
Adds support for sending a version string to b.html so we can put the servo version in the auto generated issue reports.
r? @asajeffrey
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is