Closed
Bug 1147668
Opened 10 years ago
Closed 10 years ago
Correctly reflect "video" and "track" RequestContext values
Categories
(Core :: DOM: Service Workers, defect)
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file, 1 obsolete file)
12.14 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Request.context can reflect "audio" and "video" separately, so we should split TYPE_MEDIA into two for this to be reflected correctly.
Assignee | ||
Comment 1•10 years ago
|
||
(Forgot about "track")
Summary: Split nsIContentPolicy::TYPE_MEDIA into TYPE_AUDIO and TYPE_VIDEO so that Request.context can reflect the correct value → Split nsIContentPolicy::TYPE_MEDIA into TYPE_AUDIO and TYPE_VIDEO and TYPE_TRACK so that Request.context can reflect the correct value
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8584726 -
Flags: review?(bugs)
Comment 3•10 years ago
|
||
Comment on attachment 8584726 [details] [diff] [review]
Split nsIContentPolicy::TYPE_MEDIA into TYPE_AUDIO and TYPE_VIDEO and TYPE_TRACK so that Request.context can reflect the correct value
>+ MOZ_ASSERT(IsHTMLElement(nsGkAtoms::audio) ||
>+ IsHTMLElement(nsGkAtoms::video));
Nit, You could use the rather nice helper method
IsAnyOfHTMLElements(nsGkAtoms::audio, nsGkAtoms::video);
Same also elsewhere.
Attachment #8584726 -
Flags: review?(bugs) → review+
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → ehsan
Assignee | ||
Comment 4•10 years ago
|
||
The new plan is to use the TYPE_INTERNAL_* content policy types I added in bug 1174307.
Component: DOM → DOM: Service Workers
Summary: Split nsIContentPolicy::TYPE_MEDIA into TYPE_AUDIO and TYPE_VIDEO and TYPE_TRACK so that Request.context can reflect the correct value → Correctly reflect "video" and "track" RequestContext values
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8622686 -
Flags: review?(bugs)
Assignee | ||
Updated•10 years ago
|
Attachment #8584726 -
Attachment is obsolete: true
Comment 6•10 years ago
|
||
Comment on attachment 8622686 [details] [diff] [review]
Correctly reflect video and track RequestContext values
Oh, we map _INTERNAL_ to something else before calling CP
Attachment #8622686 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #6)
> Comment on attachment 8622686 [details] [diff] [review]
> Correctly reflect video and track RequestContext values
>
> Oh, we map _INTERNAL_ to something else before calling CP
Yes, indeed. This function provides the mapping: <https://hg.mozilla.org/integration/mozilla-inbound/file/b7e3bb16f653/dom/base/nsContentUtils.cpp#l7818>
Assignee | ||
Comment 9•10 years ago
|
||
This triggered an assertion, so I backed it out:
http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-inbound-linux64-debug/1434420561/mozilla-inbound_ubuntu64_vm-debug_test-mochitest-3-bm117-tests1-linux64-build320.txt.gz
Flags: needinfo?(ehsan)
Comment 10•10 years ago
|
||
Assignee | ||
Comment 11•10 years ago
|
||
(In reply to :Ehsan Akhgari (not reading bugmail, needinfo? me!) from comment #9)
> This triggered an assertion, so I backed it out:
>
> http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-
> inbound-linux64-debug/1434420561/mozilla-inbound_ubuntu64_vm-debug_test-
> mochitest-3-bm117-tests1-linux64-build320.txt.gz
Bug 1175114 fixes this. This patch can be relanded with that.
Flags: needinfo?(ehsan)
Comment 12•10 years ago
|
||
Assignee | ||
Comment 13•10 years ago
|
||
This was busted the second time as well. Bug 1175299 fixes that.
Comment 14•10 years ago
|
||
Comment 15•10 years ago
|
||
Comment 16•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox41:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•