Skip to content

Preserve sourceURL comment in parser #197

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

Merged
merged 1 commit into from
Sep 14, 2017

Conversation

tromey
Copy link
Contributor

@tromey tromey commented Sep 13, 2017

In addition to the sourceMappingURL comment, there is a second special
comment, "sourceURL", that can be used to set the "display name" of a
style sheet for developer tools. This name is also used as the base
URL for the source-map URL resolution algorithm. sourceURL is
described here:
https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/
The relevant Firefox bug is here:
https://bugzilla.mozilla.org/show_bug.cgi?id=880831


This change is Reviewable

@SimonSapin
Copy link
Member

Looks good. I assume you’re want this on crates.io, so r=me with the version number incremented.

In addition to the sourceMappingURL comment, there is a second special
comment, "sourceURL", that can be used to set the "display name" of a
style sheet for developer tools.  This name is also used as the base
URL for the source-map URL resolution algorithm.  sourceURL is
described here:
https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/
The relevant Firefox bug is here:
https://bugzilla.mozilla.org/show_bug.cgi?id=880831
@tromey tromey force-pushed the remember-source-url branch from 7cf88a7 to 7e3b85d Compare September 14, 2017 13:17
@SimonSapin
Copy link
Member

SimonSapin commented Sep 14, 2017

I saw by chance that you had updated this PR but did not receive an email notification for that. I’ve seen some github notifications for further pushes to PR but they don’t seem to always happen… I don’t know if there’s a specific situation that causes that.

Anyway, please also comment (or ping on IRC, or something) when you push.

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 7e3b85d has been approved by SimonSapin

@bors-servo
Copy link
Contributor

⌛ Testing commit 7e3b85d with merge a10acbf...

bors-servo pushed a commit that referenced this pull request Sep 14, 2017
Preserve sourceURL comment in parser

In addition to the sourceMappingURL comment, there is a second special
comment, "sourceURL", that can be used to set the "display name" of a
style sheet for developer tools.  This name is also used as the base
URL for the source-map URL resolution algorithm.  sourceURL is
described here:
https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/
The relevant Firefox bug is here:
https://bugzilla.mozilla.org/show_bug.cgi?id=880831

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/197)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💡 This pull request was already approved, no need to approve it again.

  • This pull request is currently being tested. If there's no response from the continuous integration service, you may use retry to trigger a build again.

@bors-servo
Copy link
Contributor

📌 Commit 7e3b85d has been approved by SimonSapin

@bors-servo
Copy link
Contributor

⌛ Testing commit 7e3b85d with merge 02952ea...

bors-servo pushed a commit that referenced this pull request Sep 14, 2017
Preserve sourceURL comment in parser

In addition to the sourceMappingURL comment, there is a second special
comment, "sourceURL", that can be used to set the "display name" of a
style sheet for developer tools.  This name is also used as the base
URL for the source-map URL resolution algorithm.  sourceURL is
described here:
https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/
The relevant Firefox bug is here:
https://bugzilla.mozilla.org/show_bug.cgi?id=880831

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/197)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: SimonSapin
Pushing 02952ea to master...

@bors-servo bors-servo merged commit 7e3b85d into servo:master Sep 14, 2017
@tromey tromey deleted the remember-source-url branch September 14, 2017 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants