Closed Bug 1710756 Opened 4 years ago Closed 4 years ago

Expose preventFocusRing to error pages.

Categories

(Firefox :: Keyboard Navigation, task, P3)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

(Whiteboard: [proton-cleanup])

Attachments

(2 files)

No description provided.
Blocks: 1709050
No longer depends on: 1709050
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2f66ab2d9d10 Expose FocusOptions.preventsFocusRing to error pages. r=edgar
Whiteboard: [proton-cleanup]
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch

Hey emilio, I'm not having much luck getting this to work on server-not-found about:neterror pages. It looks like when browsing to a non-existent domain, we return false for IsCallerChromeOrErrorPage right here: https://hg.mozilla.org/integration/autoland/file/eb2e067f5266428059803f6d8ba7239ff66275ce/dom/base/nsContentUtils.cpp#l2138. Any idea why?

Flags: needinfo?(emilio)

Silly mistake.

Status: RESOLVED → REOPENED
Flags: needinfo?(emilio)
Resolution: FIXED → ---

WindowOrNull only works if the object is a window (or document,
apparently), but won't work more generally. Use the global of the
object instead so that it works for properties exposed on Element.

Attachment #9221699 - Attachment description: WIP: Bug 1710756 - Use WindowGlobalOrNull rather than WindowOrNull in IsCallerChromeOrErrorPage. → Bug 1710756 - Use WindowGlobalOrNull rather than WindowOrNull in IsCallerChromeOrErrorPage. r=nika,smaug
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cc1458da3e8f Use WindowGlobalOrNull rather than WindowOrNull in IsCallerChromeOrErrorPage. r=mccr8
Priority: -- → P3
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED
Regressions: 1712198
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: