Closed
Bug 988129
Opened 11 years ago
Closed 11 years ago
Correct the chaotic naming styles in system message codes
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: airpingu, Assigned: airpingu)
References
Details
Attachments
(4 files, 6 obsolete files)
16.34 KB,
patch
|
airpingu
:
review+
|
Details | Diff | Splinter Review |
29.73 KB,
patch
|
airpingu
:
review+
|
Details | Diff | Splinter Review |
23.56 KB,
patch
|
airpingu
:
review+
|
Details | Diff | Splinter Review |
10.44 KB,
patch
|
airpingu
:
review+
|
Details | Diff | Splinter Review |
Our naming styles are really messy and chaotic. Really hope to correct all of them at one shot.
Assignee | ||
Comment 1•11 years ago
|
||
We use manifest/manifestURI/manifestURL or url/uri/pageURI/pageURL to refer to the same thing, which are actually different!
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8396894 -
Flags: review?(fabrice)
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8396895 -
Flags: review?(fabrice)
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8396896 -
Flags: review?(fabrice)
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8396897 -
Flags: review?(fabrice)
Assignee | ||
Comment 6•11 years ago
|
||
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 8396895 [details] [diff] [review]
Part 2, s/manifest/manifestURL
Review of attachment 8396895 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/messages/SystemMessageInternal.js
@@ +500,5 @@
> switch (aSysMsg.how) {
> case "send":
> this.sendMessage(
> + aSysMsg.type, aSysMsg.msg,
> + aSysMsg.pageURI, aSysMsg.manifestURI, aSysMsg.extra);
Just a site-note for Fabrice. The _bufferedSysMsgs caches URIs not URLs. I only did alignment here.
Assignee | ||
Comment 8•11 years ago
|
||
Polished.
Attachment #8396895 -
Attachment is obsolete: true
Attachment #8396895 -
Flags: review?(fabrice)
Attachment #8397096 -
Flags: review?(fabrice)
Assignee | ||
Comment 9•11 years ago
|
||
Polished.
Attachment #8396896 -
Attachment is obsolete: true
Attachment #8396896 -
Flags: review?(fabrice)
Attachment #8397098 -
Flags: review?(fabrice)
Assignee | ||
Comment 10•11 years ago
|
||
Updated•11 years ago
|
Attachment #8396894 -
Flags: review?(fabrice) → review+
Updated•11 years ago
|
Attachment #8397096 -
Flags: review?(fabrice) → review+
Comment 11•11 years ago
|
||
Comment on attachment 8397098 [details] [diff] [review]
Part 3, s/uri/pageURL, V2
Review of attachment 8397098 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/messages/SystemMessagePermissionsChecker.jsm
@@ +267,5 @@
> if (permNames === null) {
> return false;
> }
>
> + let pageURI = Services.io.newURI(aPageURL, null, null);
you could s/pageURI/pageURL here too.
Attachment #8397098 -
Flags: review?(fabrice) → review+
Updated•11 years ago
|
Attachment #8396897 -
Flags: review?(fabrice) → review+
Assignee | ||
Comment 12•11 years ago
|
||
(In reply to Fabrice Desré [:fabrice] NOT READING BUGMAIL from comment #11)
> Comment on attachment 8397098 [details] [diff] [review]
> Part 3, s/uri/pageURL, V2
>
> Review of attachment 8397098 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: dom/messages/SystemMessagePermissionsChecker.jsm
> @@ +267,5 @@
> > if (permNames === null) {
> > return false;
> > }
> >
> > + let pageURI = Services.io.newURI(aPageURL, null, null);
>
> you could s/pageURI/pageURL here too.
I'd prefer keeping pageURI if it comes from Services.io.newURI(...). ;)
Assignee | ||
Comment 13•11 years ago
|
||
Rebased. Ready to land.
Attachment #8396894 -
Attachment is obsolete: true
Attachment #8399200 -
Flags: review+
Assignee | ||
Comment 14•11 years ago
|
||
Rebased. Ready to land.
Attachment #8397096 -
Attachment is obsolete: true
Attachment #8399201 -
Flags: review+
Assignee | ||
Comment 15•11 years ago
|
||
Rebased. Ready to land.
Attachment #8397098 -
Attachment is obsolete: true
Attachment #8399202 -
Flags: review+
Assignee | ||
Comment 16•11 years ago
|
||
Rebased. Ready to land.
Attachment #8396897 -
Attachment is obsolete: true
Attachment #8399203 -
Flags: review+
Assignee | ||
Comment 17•11 years ago
|
||
Assignee | ||
Comment 18•11 years ago
|
||
Comment 19•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2a88ffe1a565
https://hg.mozilla.org/mozilla-central/rev/8db31fe79a2d
https://hg.mozilla.org/mozilla-central/rev/2f8a469d2245
https://hg.mozilla.org/mozilla-central/rev/9d5624b9785a
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•