Closed Bug 1071613 Opened 10 years ago Closed 6 years ago

Sometimes a CSS stylesheet is loaded twice

Categories

(DevTools :: Style Editor, defect, P3)

32 Branch
x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1306892

People

(Reporter: s-tozidipukihe, Unassigned)

Details

Attachments

(1 file)

432 bytes, application/x-bzip2
Details
Attached file demo.tar.bz2
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0
Build ID: 20140912222815

Steps to reproduce:

tl;dr: Iff `devtools.styleeditor.source-maps-enabled` and a CSS
selector is `*`, then the stylesheet is loaded twice.


Set up the files `twice.html`, `twice.css`, `once.css` from the
attachment to be served by a web server.  These are minimal working
examples toreproduce the bug.

In Firefox, visit `about:config`, check that
`devtools.styleeditor.source-maps-enabled: false`.

New tab.

<right-click>-[Inspect Element], select [Network].  Then
load `twice.html` from the server.

    twice.html  -loaded once
    twice.css   -loaded once

In `about:config`, check that
`devtools.styleeditor.source-maps-enabled: true`.

Reload the `twice.html` tab (happens automatically here).

    twice.html  -loaded once
    twice.css   -loaded twice <- !!!

Change `twice.html` to use `once.css` instead.  Reload the
`twice.html` tab.
    
    twice.html  -loaded once
    once.css    -loaded once









devtools.styleeditor.source-maps-enabled: true
http://stefan-klinger.de/once.css   -loaded once
http://stefan-klinger.de/twice.css   -loaded twice



Actual results:

Under the described conditions, the stylesheet was loaded twice.


Expected results:

The stylesheet should have been loaded only once.
Component: Untriaged → Developer Tools: Style Editor
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P3
Product: Firefox → DevTools
I believe this is a dup of bug 1306892.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: