Closed Bug 1713627 Opened 3 years ago Closed 3 years ago

Remove code that is no longer relevant without the Text Encoding submenu

Categories

(Core :: Internationalization, task)

task

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: hsivonen, Assigned: hsivonen)

References

Details

Attachments

(1 file)

Bug 1687635 causes a whole lot of code become dead code. Let's remove that dead code.

Attachment #9224313 - Attachment description: Bug 1713627 - Remove code obsoleted by the replacing the Text Encoding menu with one item. → WIP: Bug 1713627 - Remove code obsoleted by the replacing the Text Encoding menu with one item.

It turns out that a bunch of code that I expected to remove provides a theoretical protection that, strictly, isn't obsoleted by bug 1687635: If the detector causes a reload, we have code to ensure that if the document after reload has somehow changed to have different HTTP headers or metas, we still don't actuate a dangerous override.

That code causes enough complexity to address a theoretical threat that I want to remove that code, but let's do it in a different bug.

(In reply to Henri Sivonen (:hsivonen) from comment #7)

That code causes enough complexity to address a theoretical threat that I want to remove that code, but let's do it in a different bug.

Filed as bug 1716290.

Attachment #9224313 - Attachment description: WIP: Bug 1713627 - Remove code obsoleted by the replacing the Text Encoding menu with one item. → Bug 1713627 - Remove code obsoleted by the replacing the Text Encoding menu with one item.
Attachment #9224313 - Attachment description: Bug 1713627 - Remove code obsoleted by the replacing the Text Encoding menu with one item. → WIP: Bug 1713627 - Remove code obsoleted by the replacing the Text Encoding menu with one item.
Attachment #9224313 - Attachment description: WIP: Bug 1713627 - Remove code obsoleted by the replacing the Text Encoding menu with one item. → Bug 1713627 - Remove code obsoleted by the replacing the Text Encoding menu with one item.
Pushed by hsivonen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4891a17c55e2 Remove code obsoleted by the replacing the Text Encoding menu with one item. r=jaws,emk

The error is:

JavaScript error: resource://specialpowers/SpecialPowersChild.jsm, line 1562: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXPCComponents_Utils.getFunctionSourceLocation]

from

  spawn(target, args, task) {
    let browsingContext = this._browsingContextForTarget(target);

    return this.sendQuery("Spawn", {
      browsingContext,
      args,
      task: String(task),
      caller: Cu.getFunctionSourceLocation(task),
      hasHarness: typeof this.SimpleTest === "object",
      imports: this._spawnTaskImports,
    });
  }

When reducing the number of arguments for a testing function, I had failed to remove an argument passed by one caller. Pushed a trivial fix.

Flags: needinfo?(hsivonen)
Pushed by hsivonen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/640ad102b316 Remove code obsoleted by the replacing the Text Encoding menu with one item. r=jaws,emk
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Blocks: 1717523

Filed bug 1717523 for the C-C port.

Regressions: 1718119
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: