Closed Bug 1490858 Opened 6 years ago Closed 6 years ago

Streamline nsISHEntry

Categories

(Core :: DOM: Navigation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: n.nethercote, Assigned: n.nethercote)

Details

Attachments

(5 files)

Still more shistory clean-ups.
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: nobody → n.nethercote
Status: NEW → ASSIGNED
By marking some C++-only nsISHistory methods as [noscript] or [noscript,
notxpcom].
Attachment #9008576 - Flags: review?(nika)
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)
nsISHEntry's attributes and methods are thoroughly mixed. This patch separates
them, making it easier to understand.
Attachment #9008580 - Flags: review?(nika)
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+
Attachment #9008576 - Flags: review?(nika) → review+
Attachment #9008579 - Flags: review?(nika) → review+
Attachment #9008580 - Flags: review?(nika) → review+
> File a bug for supporting infallible on string class types and refer to it?

Bug 1491187.
nsISHEntry.{URI,isSubFrame} both lost an explicit setter, but became mutable.
Attachment #9008989 - Flags: review?(frgrahl)
Comment on attachment 9008989 [details] [diff] [review]
Update comm-central for nsISHEntry changes

Looks good. Big thanks.
Attachment #9008989 - Flags: review?(frgrahl) → review+
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.

Attachment

General

Created:
Updated:
Size: