Closed Bug 1565245 Opened 2 years ago Closed 2 years ago

View Page Source doesn't work for extension's New Tab

Categories

(Firefox :: New Tab Page, defect)

68 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1404367
Tracking Status
firefox68 --- affected

People

(Reporter: alexander, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0

Steps to reproduce:

  1. Install any extension which replace a New Tab (like https://addons.mozilla.org/en-US/firefox/addon/best-new-tab/).
  2. Open new tab with page from extension.
  3. Try to get source with context menu "View Page Source"

Actual results:

I see an empty page and console have next errors:
Security Error: Content at moz-nullprincipal:{22e3d008-9715-46c5-be91-e0c229283190} may not load data from moz-extension://5784344a-a8e2-4cd1-acb1-68058f8a0f5c/index.html.
Security Error: Content at moz-nullprincipal:{44ae3186-66d5-4f2c-8eae-3649f201e35e} may not load data from moz-extension://5784344a-a8e2-4cd1-acb1-68058f8a0f5c/index.html.
NS_ERROR_DOM_BAD_URI: Component returned failure code: 0x805303f4 [nsIWebNavigation.loadURI] viewSource-content.js:288

Expected results:

I want to see a real page source :)

Hi Alexander,
i've tried to reproduce the reported behavior using a random new tab addon and i couldn't. Anyhow, the link you've provided isn't working. Please download Firefox Nightly from here: https://nightly.mozilla.org/ and retest the problem.

If you still have the issue please create a new profile, you have the steps here:https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles?redirectlocale=en-US&redirectslug=Managing-profiles#w_starting-the-profile-manager

Please test if the issue is reproducible in safe mode, here is a link that can help you:
https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode

In case the issue is still present, please reach us out back with further details

Regards
David

Flags: needinfo?(alexander)
Attached video 2019-07-16 09-49-49.mp4

Please check a video, problem exist even in Nightly (with new profile). OS - Windows 8.1

Flags: needinfo?(alexander)

Hi again,
i have managed to reproduce the reported behavior with "Searc and New Tab by Yahoo" as described in the video. I will mark the bug as new and assign a component but feel free to modify it if you consider it wrong.

Kind regards
David

Status: UNCONFIRMED → NEW
Component: Untriaged → New Tab Page
Ever confirmed: true

I'll take a look.

Flags: needinfo?(sdowne)

I'm not sure if this is a new tab issue, an extension issue, or a view source issue. (Feels more like an extension issue) Not sure who would be best to confirm if this is an extension issue or not.

Flags: needinfo?(sdowne)

Any extension, which replace a default new tab (activity-stream) have this issue.

You can install and check console logs, will be something like:
Security Error: Content at moz-nullprincipal:{22e10743-f5e7-4594-8e85-0e8a19c34480} may not load data from moz-extension://da7088be-6809-4fff-ac46-f66088d953ac/newtab.html.
Security Error: Content at moz-nullprincipal:{5348faa4-48cd-4886-ae9e-a9baf4b6e632} may not load data from moz-extension://da7088be-6809-4fff-ac46-f66088d953ac/newtab.html.
NS_ERROR_DOM_BAD_URI: Component returned failure code: 0x805303f4 [nsIWebNavigation.loadURI] viewSource-content.js:288

Taking a stab at needinfo on some people that might know better if this is related to either security, newtab or extensions.

Flags: needinfo?(mixedpuppy)
Flags: needinfo?(gijskruitbosch+bugs)

Can't reproduce on nightly with https://addons.mozilla.org/en-GB/firefox/addon/fvd-speed-dial/ (the add-on in comment 0 seems to have been removed). So there's a per-add-on difference... It's not obvious to me what that is. Maybe Shane knows.

Flags: needinfo?(gijskruitbosch+bugs)

I was able to reproduce on all three addons I tried, New Tab Override, Search and New Tab by Yahoo, and Tabliss.

View Source doesn't work on moz-extension protocol urls.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(mixedpuppy)
Resolution: --- → DUPLICATE
Duplicate of bug: 1404367
You need to log in before you can comment on or make changes to this bug.