Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Fix #4338, fix regression in Library link #4343

Merged
merged 1 commit into from
Apr 17, 2018
Merged

Conversation

ianb
Copy link
Contributor

@ianb ianb commented Apr 16, 2018

The commit https://hg.mozilla.org/mozilla-central/diff/3182593eb59a/browser/base/content/utilityOverlay.js regressed this, requiring a principal for calls to openUILinkIn(). This changes that to the function openWebLinkIn() that provides a null principal.

Note the relevant commit was by @jonathanKingston (r=@gijsk), but since he's not in this project I can't explicitly ask him for a review (though I'd take his review too ;)

I chose openWebLinkIn() instead of openTrustedLinkIn(), because a lower permission principal seemed safer.

The commit https://hg.mozilla.org/mozilla-central/diff/3182593eb59a/browser/base/content/utilityOverlay.js regressed this, requiring a principal for calls to openUILinkIn(). This changes that to the function openWebLinkIn() that provides a null principal.
@ianb ianb requested a review from gijsk April 16, 2018 19:58
Copy link
Collaborator

@gijsk gijsk left a comment

Choose a reason for hiding this comment

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

I mean, rs=me, but this will only work if we don't intend to put this in a version of screenshots that'll run against Firefox 60 or below... Is that the case?

@gijsk
Copy link
Collaborator

gijsk commented Apr 16, 2018

Otherwise you may want to "feature-test" for openWebLinkIn, and use that if available, falling back to openUILinkIn if not.

@jaredhirsch jaredhirsch self-assigned this Apr 17, 2018
@ianb
Copy link
Contributor Author

ianb commented Apr 17, 2018

We're just riding the trains, so we should be good with no compatibility check.

Copy link
Member

@jaredhirsch jaredhirsch left a comment

Choose a reason for hiding this comment

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

LGTM, fixes the bug locally for me. 🍻

@jaredhirsch jaredhirsch merged commit c823b10 into master Apr 17, 2018
@jaredhirsch jaredhirsch deleted the update-library-link branch April 17, 2018 19:39
testeaxeax pushed a commit to testeaxeax/screenshots that referenced this pull request Jun 7, 2018
…rvices#4343)

The commit https://hg.mozilla.org/mozilla-central/diff/3182593eb59a/browser/base/content/utilityOverlay.js regressed this, requiring a principal for calls to openUILinkIn(). This changes that to the function openWebLinkIn() that provides a null principal.
testeaxeax pushed a commit to testeaxeax/screenshots that referenced this pull request Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants