Skip to content

refactor(platform-browser): clean up legacy way of getting a relative path#53097

Closed
crisbeto wants to merge 1 commit intoangular:mainfrom
crisbeto:browser-adapter-workaround-2
Closed

refactor(platform-browser): clean up legacy way of getting a relative path#53097
crisbeto wants to merge 1 commit intoangular:mainfrom
crisbeto:browser-adapter-workaround-2

Conversation

@crisbeto
Copy link
Copy Markdown
Member

Currently the way we extract the pathname of a URL is by creating an anchor node, assigning the URL to its href and reading the pathname. This is inefficient and it triggers an internal security check that doesn't allow the href attribute to be set which ends up blocking angular/components#28155.

These changes switch to using the browser's built-in URL parsing instead.

@crisbeto crisbeto force-pushed the browser-adapter-workaround-2 branch from 80575a4 to 614e91f Compare November 21, 2023 18:00
@crisbeto crisbeto force-pushed the browser-adapter-workaround-2 branch from 614e91f to f2b618b Compare November 21, 2023 18:25
@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Nov 21, 2023
@crisbeto crisbeto marked this pull request as ready for review November 21, 2023 18:39
@crisbeto
Copy link
Copy Markdown
Member Author

I'll TGP this tomorrow just in case.

Copy link
Copy Markdown
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@crisbeto crisbeto added action: global presubmit The PR is in need of a google3 global presubmit and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 21, 2023
@crisbeto crisbeto self-assigned this Nov 21, 2023
@crisbeto
Copy link
Copy Markdown
Member Author

Passing TGP

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker hotlist: components team Related to Angular CDK or Angular Material and removed action: global presubmit The PR is in need of a google3 global presubmit labels Nov 22, 2023
@alan-agius4 alan-agius4 added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Nov 22, 2023
… path

Currently the way we extract the pathname of a URL is by creating an anchor node, assigning the URL to its `href` and reading the `pathname`. This is inefficient and it triggers an internal security check that doesn't allow the `href` attribute to be set which ends up blocking angular/components#28155.

These changes switch to using the browser's built-in URL parsing instead.
@crisbeto crisbeto force-pushed the browser-adapter-workaround-2 branch from f2b618b to 6d7a5d0 Compare November 23, 2023 06:35
@crisbeto
Copy link
Copy Markdown
Member Author

Second TGP. This one has a couple of failing targets, but they're broken in the same way at head so I doubt that it's related to my change.

@pkozlowski-opensource
Copy link
Copy Markdown
Member

This PR was merged into the repository by commit 162d940.

pkozlowski-opensource pushed a commit that referenced this pull request Nov 27, 2023
… path (#53097)

Currently the way we extract the pathname of a URL is by creating an anchor node, assigning the URL to its `href` and reading the `pathname`. This is inefficient and it triggers an internal security check that doesn't allow the `href` attribute to be set which ends up blocking angular/components#28155.

These changes switch to using the browser's built-in URL parsing instead.

PR Close #53097
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 28, 2023
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
… path (angular#53097)

Currently the way we extract the pathname of a URL is by creating an anchor node, assigning the URL to its `href` and reading the `pathname`. This is inefficient and it triggers an internal security check that doesn't allow the `href` attribute to be set which ends up blocking angular/components#28155.

These changes switch to using the browser's built-in URL parsing instead.

PR Close angular#53097
rlmestre pushed a commit to rlmestre/angular that referenced this pull request Jan 26, 2024
… path (angular#53097)

Currently the way we extract the pathname of a URL is by creating an anchor node, assigning the URL to its `href` and reading the `pathname`. This is inefficient and it triggers an internal security check that doesn't allow the `href` attribute to be set which ends up blocking angular/components#28155.

These changes switch to using the browser's built-in URL parsing instead.

PR Close angular#53097
amilamen pushed a commit to amilamen/angular that referenced this pull request Jan 26, 2024
… path (angular#53097)

Currently the way we extract the pathname of a URL is by creating an anchor node, assigning the URL to its `href` and reading the `pathname`. This is inefficient and it triggers an internal security check that doesn't allow the `href` attribute to be set which ends up blocking angular/components#28155.

These changes switch to using the browser's built-in URL parsing instead.

PR Close angular#53097
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker hotlist: components team Related to Angular CDK or Angular Material target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants