Closed Bug 1387805 Opened 7 years ago Closed 7 years ago

Remove [deprecated] nsIScriptSecurityManager.getCodebasePrincipal()

Categories

(Core :: Security: CAPS, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: emk, Assigned: emk)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Blocks: 1387803
Comment on attachment 8894161 [details] Bug 1387805 - Remove [deprecated] nsIScriptSecurityManager.getCodebasePrincipal(). https://reviewboard.mozilla.org/r/165234/#review170908 There are several uses of this function in comm-central. Please make sure a bug is filed to fix those. This function is used in a huge number of addons. You should probably wait a few days until we turn off old-style addons altogether, to save a bunch of people the time it will take them to figure out why their browser is broken... r+ with those caveats and the bit about symbol visibility below double-checked. ::: dom/security/test/gtest/TestCSPParser.cpp:101 (Diff revision 1) > nsCOMPtr<nsIURI> selfURI; > rv = NS_NewURI(getter_AddRefs(selfURI), "http://www.selfuri.com"); > NS_ENSURE_SUCCESS(rv, rv); > > nsCOMPtr<nsIPrincipal> selfURIPrincipal; > - // Can't use BasePrincipal::CreateCodebasePrincipal here > + mozilla::OriginAttributes attrs; Is this comment no longer true?
Attachment #8894161 - Flags: review?(bzbarsky) → review+
Comment on attachment 8894161 [details] Bug 1387805 - Remove [deprecated] nsIScriptSecurityManager.getCodebasePrincipal(). https://reviewboard.mozilla.org/r/165234/#review170908 > Is this comment no longer true? Yes, I can compile it without any problems. It failed until I added mozilla::, so the compiler actually compiles this file. Automation did not fail with this change either. I don't know why the original author thought it was impossible to use BasePrincipal::CreateCodebasePrincipal here.
Blocks: 1388347
Blocks: 1388350
Depends on: 1388355
Comment on attachment 8894161 [details] Bug 1387805 - Remove [deprecated] nsIScriptSecurityManager.getCodebasePrincipal(). https://reviewboard.mozilla.org/r/165234/#review170908 > There are several uses of this function in comm-central. Please make sure a bug is filed to fix those. Filed bug 1388347 and bug 1388350. > This function is used in a huge number of addons. You should probably wait a few days until we turn off old-style addons altogether, to save a bunch of people the time it will take them to figure out why their browser is broken... Filed bug 1388355 to track this.
Pushed by VYV03354@nifty.ne.jp: https://hg.mozilla.org/integration/autoland/rev/42cf6375ccfd Remove [deprecated] nsIScriptSecurityManager.getCodebasePrincipal(). r=bz
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: