Closed Bug 1321687 Opened 8 years ago Closed 7 years ago

Improve documentation of security checks in WebChannel code

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: rfkelly, Assigned: rfkelly)

Details

Attachments

(1 file)

In particular, document why it uses the almost-always-a-bad-idea `originNoSuffix` property in its origin check, as a followup to https://bugzilla.mozilla.org/show_bug.cgi?id=1319904#c60
It's not exactly War and Peace, but here's my attempt to clarify the choices made in the webchannel origin-checking code.  I'm happy to iterate if this doesn't seem to cover all the bases.
Attachment #8816349 - Flags: review?(ehsan)
Comment on attachment 8816349 [details] [diff] [review]
webchannel-doc-update.diff

Review of attachment 8816349 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks, looks great!
Attachment #8816349 - Flags: review?(ehsan) → review+
Component: General → DOM
Product: Toolkit → Core
Keywords: checkin-needed
In the future, please attach patches with proper commit information included.
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/7d52433eca7b
Improve documentation of security checks in WebChannel code. r=ehsan
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/7d52433eca7b
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: