Open Bug 1508757 Opened 7 years ago Updated 3 years ago

Make NOT_REMOTE a real remote type

Categories

(Core :: DOM: Content Processes, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: nika, Unassigned)

Details

Currently remoteType values are recorded as one of a series of string values. These are only set for remote browsers, so code which needs to handle the nonremote case handles it as 'E10SUtils.NOT_REMOTE', which is 'null'. Unfortunately this makes it too easy to accidentally confuse unset/not-passed and set, but not remote when passing around remoteType. It'd probably be a good idea to make E10SUtils.NOT_REMOTE be 'notremote' or similar to avoid this case.
:bobowen, IIRC you implemented this originally - so ni? for feedback on this idea.
Flags: needinfo?(bobowencode)
(In reply to :Nika Layzell from comment #1) > :bobowen, IIRC you implemented this originally - so ni? for feedback on this > idea. Yeah, I'm fine with that. I originally tried to make it some sort of enum, but I found getting that to work well between JavaScript and c++ was not easy. I also had the problem of different kinds of web content process, for which (as you know) I came up with the crude but simple hack of them starting with "web". Again maybe some sort of flag system would suit that better, but at least at the time strings seemed to be the only thing that were easy to pass around, not sure if that has changed. By the way I hated the name remoteType, but "remote" was already used so heavily as an alias for content process, that anything else seemed more confusing.
Flags: needinfo?(bobowencode)
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.