Skip to content

Conversation

@sideshowbarker
Copy link
Member

No description provided.

source Outdated
<li><p>Let <var>request</var> be a new <span data-x="concept-request">request</span> whose
<span data-x="concept-request-url">url</span> is <var>url</var>, <span
data-x="concept-request-destination">destination</span> is "<code data-x="">subresource</code>",
data-x="concept-request-destination">destination</span> is "",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer "the empty string" spelled out.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I think the various algorithms using "create a potential-CORS request" might have different destinations. So this might have to become an argument that is passed in. Did you check the various call sites?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I think the various algorithms using "create a potential-CORS request" might have different destinations. So this might have to become an argument that is passed in. Did you check the various call sites?

I did not yet, but I will.

@annevk
Copy link
Member

annevk commented Jun 29, 2016

There's also the 'destination is "unknown"' case we should change. Those need to become "embed" and "object" as far as I can tell.

@annevk
Copy link
Member

annevk commented Jun 29, 2016

The issue this fixes is #731.

@sideshowbarker
Copy link
Member Author

There's also the 'destination is "unknown"' case we should change. Those need to become "embed" and "object" as far as I can tell.

Yes, just noticed those to. Will push another commit here to fix them.

@sideshowbarker
Copy link
Member Author

Also, I think the various algorithms using "create a potential-CORS request" might have different destinations. So this might have to become an argument that is passed in.

See b89cd82

source Outdated
<li><p>Let <var>request</var> be the result of <span
data-x="create a potential-CORS request">creating a potential-CORS request</span> given
<var>url</var> and <var>corsAttributeState</var>.
<var>url</var>, <var>destination</var> and <var>corsAttributeState</var>.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline "the empty string" here and add the Oxford comma.

@annevk
Copy link
Member

annevk commented Jun 30, 2016

Sorry for belated review, couldn't do much yesterday.

@sideshowbarker
Copy link
Member Author

Sorry for belated review, couldn't do much yesterday.

Sorry for the belated response to the review—was working on landing an implementation of validator/validator#284 for the validator.

But I believe now have all the updates pushed here for the responses to the review.

source Outdated
data-x="create a potential-CORS request">creating a potential-CORS request</span> given
<var>url</var>, <var>destination</var> and <var>corsAttributeState</var>.
<var>url</var>, <var>destination</var> set to the empty string, and
<var>corsAttributeState</var>.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just have "the empty string" here. We generally don't do named arguments. Sorry for the ongoing nits.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for the remainder. So "... given url, the empty string, and corsAttributeState."

@annevk annevk merged commit 5e8f96a into master Jul 4, 2016
@annevk annevk deleted the destination-subresource branch July 4, 2016 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants