Closed
Bug 1490858
Opened 6 years ago
Closed 6 years ago
Streamline nsISHEntry
Categories
(Core :: DOM: Navigation, enhancement)
Core
DOM: Navigation
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
Details
Attachments
(5 files)
57.88 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
13.11 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
8.07 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
15.35 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
1.51 KB,
patch
|
frg
:
review+
|
Details | Diff | Splinter Review |
Still more shistory clean-ups.
Assignee | ||
Comment 1•6 years ago
|
||
The patch also removes some NS_ENSURE_ARG_POINTER checks from these attributes' getters. Most of these getters already lack such checks, and as long as the infallible getters are used a non-null pointer is guaranteed. In the worst case we'll safely null-crash anyway.
Attachment #9008575 -
Flags: review?(nika)
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → n.nethercote
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•6 years ago
|
||
By marking some C++-only nsISHistory methods as [noscript] or [noscript, notxpcom].
Attachment #9008576 -
Flags: review?(nika)
Assignee | ||
Comment 3•6 years ago
|
||
Both nsISHEntry.URI and nsISHEntry isSubFrame are readonly, but also have a setter. This is silly, so this patch removes the setter and makes them modifiable. The patch also renames nsISHEntry.setAsHistoryLoad() as setLoadTypeAsHistory(), which makes it clearer that it modifies the loadType attribute.
Attachment #9008579 -
Flags: review?(nika)
Assignee | ||
Comment 4•6 years ago
|
||
nsISHEntry's attributes and methods are thoroughly mixed. This patch separates them, making it easier to understand.
Attachment #9008580 -
Flags: review?(nika)
Comment 5•6 years ago
|
||
Comment on attachment 9008575 [details] [diff] [review] Make most nsISHEntry attributes infallible Review of attachment 9008575 [details] [diff] [review]: ----------------------------------------------------------------- File a bug for supporting infallible on string class types and refer to it?
Attachment #9008575 -
Flags: review?(nika) → review+
Updated•6 years ago
|
Attachment #9008576 -
Flags: review?(nika) → review+
Updated•6 years ago
|
Attachment #9008579 -
Flags: review?(nika) → review+
Updated•6 years ago
|
Attachment #9008580 -
Flags: review?(nika) → review+
Assignee | ||
Comment 6•6 years ago
|
||
> File a bug for supporting infallible on string class types and refer to it? Bug 1491187.
Assignee | ||
Comment 7•6 years ago
|
||
nsISHEntry.{URI,isSubFrame} both lost an explicit setter, but became mutable.
Attachment #9008989 -
Flags: review?(frgrahl)
Pushed by nnethercote@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/cc1de79de88f Make most nsISHEntry attributes infallible. r=nika https://hg.mozilla.org/integration/mozilla-inbound/rev/abf70961a783 Streamline nsISHEntry a little more. r=nika https://hg.mozilla.org/integration/mozilla-inbound/rev/505759d44fda Simplify some nsISHEntry attributes. r=nika https://hg.mozilla.org/integration/mozilla-inbound/rev/c6a68b5804d5 Reorder nsISHEntry. r=nika
Comment 9•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/cc1de79de88f https://hg.mozilla.org/mozilla-central/rev/abf70961a783 https://hg.mozilla.org/mozilla-central/rev/505759d44fda https://hg.mozilla.org/mozilla-central/rev/c6a68b5804d5
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Comment 10•6 years ago
|
||
Comment on attachment 9008989 [details] [diff] [review] Update comm-central for nsISHEntry changes Looks good. Big thanks.
Attachment #9008989 -
Flags: review?(frgrahl) → review+
Comment 11•6 years ago
|
||
Pushed by frgrahl@gmx.net: https://hg.mozilla.org/comm-central/rev/4fa52926ba4c Update comm-central for nsISHEntry changes. r=frg
You need to log in
before you can comment on or make changes to this bug.
Description
•