Closed
Bug 801257
Opened 13 years ago
Closed 13 years ago
System Message API: Page would wrongly handle messages to be sent to other pages
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
People
(Reporter: airpingu, Assigned: airpingu)
References
Details
Attachments
(1 file, 2 obsolete files)
|
1.20 KB,
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
This only happens within the same App. When calling SystemMessageInternal.sendMessage(), it would send the message to all the pages that used to be registered in the _listeners[aManifestURI.spec], which is wrong. I think we need to add a check in the SystemMessageManager to handle only the message that has the matched page URI; otherwise, ignore it. This fix can also prevent this page from wrongly clearing the pending messages in other pages when sending back an acknowledgement later.
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → clian
Blocks: 777206, system-message-api
| Assignee | ||
Comment 1•13 years ago
|
||
Hi Fabrice,
Could you please review this when you have a chance? Changes are trivial. Please see comment #0 for why we need to fix that. In summary, pageA would wrongly handle the message that should be sent to pageB (within the same App).
Thanks Fabrice again!
Attachment #671050 -
Flags: review?(fabrice)
| Assignee | ||
Comment 2•13 years ago
|
||
NIT: add braces for one line if-block.
Attachment #671050 -
Attachment is obsolete: true
Attachment #671050 -
Flags: review?(fabrice)
Attachment #671051 -
Flags: review?(fabrice)
| Assignee | ||
Comment 3•13 years ago
|
||
Attachment #671051 -
Attachment is obsolete: true
Attachment #671051 -
Flags: review?(fabrice)
Attachment #671052 -
Flags: review?(fabrice)
Updated•13 years ago
|
Attachment #671052 -
Flags: review?(fabrice) → review+
Updated•13 years ago
|
blocking-basecamp: --- → ?
| Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Updated•13 years ago
|
blocking-basecamp: ? → +
Comment 4•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/37fead15ae60
Should this have a test?
Flags: in-testsuite?
Keywords: checkin-needed
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Comment 7•13 years ago
|
||
status-firefox18:
--- → fixed
status-firefox19:
--- → fixed
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•